gcloud compute url-maps validate [--load-balancing-scheme=LOAD_BALANCING_SCHEME] [--source=SOURCE] [--global | --region=REGION] [GCLOUD_WIDE_FLAG …]
gcloud compute url-maps validate --source=<path-to-file>--load-balancing-scheme=LOAD_BALANCING_SCHEMEEXTERNAL_MANAGED for global external Application Load Balancer. Use
EXTERNAL for classic Application Load Balancer.
Other load balancer types are not supported. For more information, refer to Choosing a 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--global--region=REGION--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.
gcloud alpha compute url-maps validategcloud beta compute url-maps validategcloud preview compute url-maps validate
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.