gcloud beta compute url-maps validate

NAME
gcloud beta compute url-maps validate - validate a URL map
SYNOPSIS
gcloud beta compute url-maps validate[--load-balancing-scheme=LOAD_BALANCING_SCHEME][--source=SOURCE][--global    |--region=REGION][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Runs static validation for the UrlMap. In particular, thetests of the provided UrlMap will be run. Calling this method does NOT create orupdate the UrlMap.
EXAMPLES
A URL map can be validated by running:
gcloudbetacomputeurl-mapsvalidate--source=<path-to-file>
FLAGS
--load-balancing-scheme=LOAD_BALANCING_SCHEME
Specifies the load balancer type this validation request is for. UseEXTERNAL_MANAGED for global external Application Load Balancer. UseEXTERNAL for classic Application Load Balancer.

Other load balancer types are not supported. For more information, refer toChoosinga load balancer.

If unspecified, the load balancing scheme will be inferred from the backendservice resources this URL map references. If that can not be inferred (forexample, this URL map only references backend buckets, or this URL map is forrewrites 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 thebackend 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 notcontain any output-only fields. Alternatively, you may omit this flag to readfrom standard input. For a schema describing the export/import format, see:$CLOUDSDKROOT/lib/googlecloudsdk/schemas/compute/beta/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
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcomputeurl-mapsvalidate
gcloudalphacomputeurl-mapsvalidate

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.