1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/compute/url-maps/validate
2022-03-23 08:27:29 +00:00

70 lines
2.6 KiB
Text

NAME
gcloud compute url-maps validate - validate a URL map
SYNOPSIS
gcloud compute url-maps validate
[--load-balancing-scheme=LOAD_BALANCING_SCHEME] [--source=SOURCE]
[--global | --region=REGION] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Runs static validation for the UrlMap. In particular, the tests of the
provided UrlMap will be run. Calling this method does NOT create or update
the UrlMap.
EXAMPLES
A URL map can be validated by running:
$ gcloud compute url-maps validate --source=<path-to-file>
FLAGS
--load-balancing-scheme=LOAD_BALANCING_SCHEME
Specifies the load balancer type(s) this validation request is for. Use
EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with
Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS
External Global Load Balancer.
Other load balancer types are not supported. For more information,
refer to Choosing a load balancer
(https://cloud.google.com/load-balancing/docs/choosing-load-balancer/).
If unspecified, the load balancing scheme will be inferred from the
backend service resources this URL map references. If that can not be
inferred (for example, this URL map only references backend buckets, or
this URL map is for rewrites and redirects only and doesn't reference
any backends), EXTERNAL will be used as the default type.
If specified, the scheme must not conflict with the load balancing
scheme of the backend service resources this URL map references.
LOAD_BALANCING_SCHEME must be one of: EXTERNAL, EXTERNAL_MANAGED.
--source=SOURCE
Path to a YAML file containing configuration export data. The YAML file
must not contain any output-only fields. Alternatively, you may omit
this flag to read from standard input. For a schema describing the
export/import format, see:
$CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/v1/UrlMap.yaml.
At most one of these can be specified:
--global
If set, the URL map is global.
--region=REGION
Region of the URL map to validate.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
These variants are also available:
$ gcloud alpha compute url-maps validate
$ gcloud beta compute url-maps validate