gcloud beta compute url-maps invalidate-cdn-cache Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta compute url-maps invalidate-cdn-cache - invalidate specified objects for a URL map in Cloud CDN caches
- SYNOPSIS
- DESCRIPTION
(BETA)gcloud beta compute url-mapsinvalidate-cdn-cacherequests that Cloud CDN stop using cached contentfor resources at a particular URL path or set of URL paths.gcloud beta compute url-maps invalidate-cdn-cachemay succeed evenif no content is cached for some or all URLs with the given path.- POSITIONAL ARGUMENTS
URLMAP- Name of the URL map to operate on.
- FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
--global- (Default) The URL map is global. Regional URL maps are not supported.
--host=HOST- If set, this invalidation will apply only to requests to the specified host.
--path=PATH- A path specifying which objects to invalidate. PATH must start with``/´´ and the only place a ``*´´ is allowed is at theend following a ``/´´. It will be matched against URL paths, whichdo not include scheme, host, or any text after the first ``?´´ or``#´´ (and those characters are not allowed here). For example, forthe URL
,the path ishttps://example.com/whatever/x.html?a=b./whatever/x.htmlIf PATH ends with ``*´´, the preceding string is a prefix, and allURLs whose paths begin with it will be invalidated. If PATH doesn't end with``*´´, then only URLs with exactly that path will be invalidated.
Examples:
- ``´´, ``*´´, anything that doesn't start with``/´´: error
- ``/´´: just the root URL
- ``/*´´: everything
- ``/x/y´´: ``/x/y´´ only (and not ``/x/y/´´)
- ``/x/y/´´: ``/x/y/´´ only (and not ``/x/y´´)
- ``/x/y/*´´: ``/x/y/´´ and everything under it
--tags=TAGS- A single tag or a comma-delimited list of tags. When multiple tags arespecified, the invalidation applies them using boolean OR logic.
Example:
--tags=abcd,user123
- 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 beta and might change without notice. Thesevariants are also available:
gcloudcomputeurl-mapsinvalidate-cdn-cachegcloudalphacomputeurl-mapsinvalidate-cdn-cache
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.