gcloud_alpha_compute_url-maps_invalidate-cdn-cache (1)
NAME
- gcloud alpha compute url-maps invalidate-cdn-cache - invalidate specified objects for a URL map in Cloud CDN caches
SYNOPSIS
-
gcloud alpha compute url-maps invalidate-cdn-cache URLMAP --path=PATH [--async] [--host=HOST] [--global | --region=REGION] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) gcloud alpha compute url-maps invalidate-cdn-cache
gcloud alpha compute url-maps invalidate-cdn-cache may succeed even if no content is cached for some or all URLs with the given path.
POSITIONAL ARGUMENTS
-
- URLMAP
-
Name of the URL map to operate on.
REQUIRED FLAGS
-
- --path=PATH
-
A path specifying which objects to invalidate. PATH must start with ``/'' and
the only place a ``*'' is allowed is at the end following a ``/''. It will be
matched against URL paths, which do not include scheme, host, or any text after
the first ``?'' or ``#'' (and those characters are not allowed here). For
example, for the URL https://example.com/whatever/x.html?a=b, the
path is /whatever/x.html.
If PATH ends with ``*'', the preceding string is a prefix, and all URLs 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
-
OPTIONAL FLAGS
-
- --async
-
Do not wait for the operation to complete.
- --host=HOST
-
If set, this invalidation will apply only to requests to the specified host.
-
At most one of these may be specified:
-
- --global
-
If set, the URL map is global.
- --region=REGION
-
Region of the URL map to operate on. If not specified, you may be prompted to
select a region.
To avoid prompting when this flag is omitted, you can set the compute/region property:
- $ gcloud config set compute/region REGION
A list of regions can be fetched by running:
- $ gcloud compute regions list
To unset the property, run:
- $ gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable CLOUDSDK_COMPUTE_REGION.
-
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud compute url-maps invalidate-cdn-cache $ gcloud beta compute url-maps invalidate-cdn-cache