gcloud alpha storage buckets anywhere-caches create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha storage buckets anywhere-caches create - create Anywhere Cache instances for a bucket
- SYNOPSIS
gcloud alpha storage buckets anywhere-caches createURLZONE[ZONE…][--admission-policy=ADMISSION_POLICY][--ttl=TTL][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Create Anywhere Cache instances. Only one cache instanceper zone can be created for each bucket.- EXAMPLES
- The following command creates an anywhere cache instance for bucket in
zone:asia-south2-bgcloudalphastoragebucketsanywhere-cachescreategs://my-bucketasia-south2-bThe following command creates anywhere cache instances for bucket in
, andasia-south2-bzone:asia-east1-agcloudalphastoragebucketsanywhere-cachescreategs://my-bucketasia-south2-basia-east1-aThe following command creates an anywhere cache instance for bucket in
zone, with ttl for cacheentry as 6 hours, and admission policy asasia-south2-b:ADMIT_ON_SECOND_MISSgcloudalphastoragebucketsanywhere-cachescreategs://my-bucketasia-south2-b--ttl=6h--admission-policy='ADMIT_ON_SECOND_MISS' - POSITIONAL ARGUMENTS
URL- Specifies the URL of the bucket where the Anywhere Cache should be created.
ZONE[ZONE…]- Specifies the name of the zonal locations where the Anywhere Cache should becreated.
- FLAGS
--admission-policy=ADMISSION_POLICY- The cache admission policy decides for each cache miss, whether to insert themissed block or not.
ADMISSION_POLICYmust 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 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. This variant is also available:
gcloudstoragebucketsanywhere-cachescreate
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.