HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/lib/googlecloudsdk/schemas/networkservices/v1/HostRule.yaml
$schema: "http://json-schema.org/draft-06/schema#"

title: networkservices v1 HostRule export schema
description: A gcloud export/import command YAML validation schema.
type: object
required:
- hosts
- pathMatcher
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
  description:
    description: A human-readable description of the `HostRule` value.
    type: string
  hosts:
    description: |-
      A list of host patterns to match. Host patterns must be valid hostnames.
      Ports are not allowed. Wildcard hosts are supported in the suffix or
      prefix form. `*` matches any string of `([a-z0-9-.]*)`. It does not match
      an empty string. When multiple hosts are specified, hosts are matched in
      the following priority: 1. Exact domain names: `www.foo.com`. 2. Suffix
      domain wildcards: `*.foo.com` or `*-bar.foo.com`. 3. Prefix domain
      wildcards: `foo.*` or `foo-*`. 4. Special wildcard `*` matching any
      domain. The wildcard doesn't match the empty string. For example,
      `*-bar.foo.com` matches `baz-bar.foo.com` but not `-bar.foo.com`. The
      longest wildcards match first. Only a single host in the entire service
      can match on ``*``. A domain must be unique across all configured hosts
      within a service. Hosts are matched against the HTTP `Host` header, or for
      HTTP/2 and HTTP/3, the `:authority` header, in the incoming request. You
      can specify up to 10 hosts.
    type: array
    items:
      type: string
  pathMatcher:
    description: |-
      The name of the PathMatcher associated with this `HostRule`.
    type: string