mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-15 09:25:44 +00:00
56 lines
2 KiB
Text
56 lines
2 KiB
Text
NAME
|
|
gcloud storage buckets anywhere-caches update - update Anywhere Cache
|
|
instances
|
|
|
|
SYNOPSIS
|
|
gcloud storage buckets anywhere-caches update ID [ID ...]
|
|
[--admission-policy=ADMISSION_POLICY] [--ttl=TTL]
|
|
[GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Update one or more Anywhere Cache instances. A cache instance can be
|
|
updated if its state is created or pending creation.
|
|
|
|
EXAMPLES
|
|
The following command updates cache entry's ttl, and admisson policy of
|
|
anywhere cache instance in bucket my-bucket having anywhere_cache_id
|
|
my-cache-id:
|
|
|
|
$ gcloud storage buckets anywhere-caches update \
|
|
my-bucket/my-cache-id --ttl=6h \
|
|
--admission-policy='ADMIT_ON_SECOND_MISS'
|
|
|
|
The following command updates cache entry's ttl of anywhere cache instances
|
|
in bucket bucket-1 and bucket-2 having anywhere_cache_id my-cache-id-1, and
|
|
my-cache-id-2 respectively:
|
|
|
|
$ gcloud storage buckets anywhere-caches update \
|
|
bucket-1/my-cache-id-1 bucket-2/my-cache-id-2 --ttl=6h
|
|
|
|
POSITIONAL ARGUMENTS
|
|
ID [ID ...]
|
|
Identifiers for a Anywhere Cache Instance.They are combination of
|
|
bucket_name/anywhere_cache_id. For example : test-bucket/my-cache-id.
|
|
|
|
FLAGS
|
|
--admission-policy=ADMISSION_POLICY
|
|
The cache admission policy decides for each cache miss, whether to
|
|
insert the missed block or not. ADMISSION_POLICY must be one of:
|
|
ADMIT_ON_FIRST_MISS, ADMIT_ON_SECOND_MISS.
|
|
|
|
--ttl=TTL
|
|
Cache entry time-to-live. Default to 24h if not provided.
|
|
|
|
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 variant is also available:
|
|
|
|
$ gcloud alpha storage buckets anywhere-caches update
|
|
|