Class AuthorizationPolicy.Types.Rule.Types.Destination (1.0.0-beta02)

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

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(AuthorizationPolicy.Types.Rule.Types.Destination)

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

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
RepeatedField<String>

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
AuthorizationPolicy.Types.Rule.Types.Destination.Types.HttpHeaderMatch

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
RepeatedField<String>

Ports

public RepeatedField<uint> Ports { get; }

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

Property Value
TypeDescription
RepeatedField<UInt32>