View Source GoogleApi.NetworkSecurity.V1.Model.Destination (google_api_network_security v0.3.1)

Specification of traffic destination attributes.

Attributes

  • hosts (type: list(String.t), default: nil) - 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 "*".
  • httpHeaderMatch (type: GoogleApi.NetworkSecurity.V1.Model.HttpHeaderMatch.t, default: nil) - 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 (type: list(String.t), default: nil) - Optional. A list of HTTP methods to match. At least one method should match. Should not be set for gRPC services.
  • ports (type: list(integer()), default: nil) - Required. List of destination ports to match. At least one port should match.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.NetworkSecurity.V1.Model.Destination{
  hosts: [String.t()] | nil,
  httpHeaderMatch: GoogleApi.NetworkSecurity.V1.Model.HttpHeaderMatch.t() | nil,
  methods: [String.t()] | nil,
  ports: [integer()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.