gcloud alpha storage buckets anywhere-caches update

NAME
gcloud alpha storage buckets anywhere-caches update - update Anywhere Cache instances
SYNOPSIS
gcloud alpha storage buckets anywhere-caches updateID[ID …][--admission-policy=ADMISSION_POLICY][--ttl=TTL][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Update one or more Anywhere Cache instances. A cacheinstance can be updated if its state is created or pending creation.
EXAMPLES
The following command updates cache entry's ttl, and admisson policy of anywherecache instance in bucketmy-bucket havinganywhere_cache_idmy-cache-id:
gcloudalphastoragebucketsanywhere-cachesupdatemy-bucket/my-cache-id--ttl=6h--admission-policy='ADMIT_ON_SECOND_MISS'

The following command updates cache entry's ttl of anywhere cache instances inbucketbucket-1 andbucket-2 having anywhere_cache_idmy-cache-id-1, andmy-cache-id-2 respectively:

gcloudalphastoragebucketsanywhere-cachesupdatebucket-1/my-cache-id-1bucket-2/my-cache-id-2--ttl=6h
POSITIONAL ARGUMENTS
ID [ID …]
Identifiers for a Anywhere Cache Instance.They are combination ofbucket_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 themissed 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 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. This variant is also available:
gcloudstoragebucketsanywhere-cachesupdate

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.