Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination.
Specification of traffic destination attributes.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#hosts
def hosts() -> ::Array<::String>
Returns
- (::Array<::String>) — Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".
#hosts=
def hosts=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".
Returns
- (::Array<::String>) — Required. List of host names to match. Matched against the ":authority" header in http requests. At least one host should match. Each host can be an exact match, or a prefix match (example "mydomain.") or a suffix match (example ".myorg.com") or a presence (any) match "*".
#http_header_match
def http_header_match() -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
Returns
- (::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch) — Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
#http_header_match=
def http_header_match=(value) -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch
Parameter
- value (::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch) — Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
Returns
- (::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy::Rule::Destination::HttpHeaderMatch) — Optional. Match against key:value pair in http header. Provides a flexible match based on HTTP headers, for potentially advanced use cases. At least one header should match. Avoid using header matches to make authorization decisions unless there is a strong guarantee that requests arrive through a trusted client or proxy.
#methods
def methods() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
#methods=
def methods=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
Returns
- (::Array<::String>) — Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
#ports
def ports() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — Required. List of destination ports to match. At least one port should match.
#ports=
def ports=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — Required. List of destination ports to match. At least one port should match.
Returns
- (::Array<::Integer>) — Required. List of destination ports to match. At least one port should match.