Network Security v1beta1 API - Class AuthorizationPolicy.Types.Rule.Types.Destination (2.0.0-beta05)

public sealed class AuthorizationPolicy.Types.Rule.Types.Destination : IMessage<AuthorizationPolicy.Types.Rule.Types.Destination>, IEquatable<AuthorizationPolicy.Types.Rule.Types.Destination>, IDeepCloneable<AuthorizationPolicy.Types.Rule.Types.Destination>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Security v1beta1 API class AuthorizationPolicy.Types.Rule.Types.Destination.

Specification of traffic destination attributes.

Inheritance

object > AuthorizationPolicy.Types.Rule.Types.Destination

Namespace

Google.Cloud.NetworkSecurity.V1Beta1

Assembly

Google.Cloud.NetworkSecurity.V1Beta1.dll

Constructors

Destination()

public Destination()

Destination(Destination)

public Destination(AuthorizationPolicy.Types.Rule.Types.Destination other)
Parameter
NameDescription
otherAuthorizationPolicyTypesRuleTypesDestination

Properties

Hosts

public RepeatedField<string> Hosts { get; }

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 "*".

Property Value
TypeDescription
RepeatedFieldstring

HttpHeaderMatch

public AuthorizationPolicy.Types.Rule.Types.Destination.Types.HttpHeaderMatch HttpHeaderMatch { get; set; }

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.

Property Value
TypeDescription
AuthorizationPolicyTypesRuleTypesDestinationTypesHttpHeaderMatch

Methods

public RepeatedField<string> Methods { get; }

Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.

Property Value
TypeDescription
RepeatedFieldstring

Ports

public RepeatedField<uint> Ports { get; }

Required. List of destination ports to match. At least one port should match.

Property Value
TypeDescription
RepeatedFielduint