File: //snap/google-cloud-cli/current/lib/googlecloudsdk/schemas/networksecurity/v1/Destination.yaml
$schema: "http://json-schema.org/draft-06/schema#"
title: networksecurity v1 Destination export schema
description: A gcloud export/import command YAML validation schema.
type: object
required:
- hosts
- ports
additionalProperties: false
properties:
COMMENT:
type: object
description: User specified info ignored by gcloud import.
additionalProperties: false
properties:
template-id:
type: string
region:
type: string
description:
type: string
date:
type: string
version:
type: string
UNKNOWN:
type: array
description: Unknown API fields that cannot be imported.
items:
type: string
hosts:
description: |-
List of host names to match. Matched against HOST 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 "*".
type: array
items:
type: string
httpHeaderMatch:
description: |-
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.
$ref: HttpHeaderMatch.yaml
methods:
description: |-
A list of HTTP methods to match. At least one method should match.
Should not be set for gRPC services.
type: array
items:
type: string
paths:
description: |-
A list of HTTP paths to match. gRPC methods must be presented as
fully-qualified name in the form of
"/packageName.serviceName/methodName". At least one path should
match. Each path can be an exact match, or a prefix match
(example, "/packageName.serviceName/*") or a suffix match
(example, */video") or a presence(any) match "*".
type: array
items:
type: string
ports:
description: |-
List of destination ports to match. At least one port should
match.
type: array
items:
type: integer