gcloud alpha compute url-maps validate Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha compute url-maps validate - validate a URL map
- SYNOPSIS
gcloud alpha compute url-maps validate[--load-balancing-scheme=LOAD_BALANCING_SCHEME][--source=SOURCE][--global|--region=REGION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)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:
gcloudalphacomputeurl-mapsvalidate--source=<path-to-file> - FLAGS
--load-balancing-scheme=LOAD_BALANCING_SCHEME- Specifies the load balancer type this validation request is for. Use
EXTERNAL_MANAGEDfor global external Application Load Balancer. UseEXTERNALfor 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),
EXTERNALwill 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_SCHEMEmust 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/alpha/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 helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudcomputeurl-mapsvalidategcloudbetacomputeurl-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.