gcloud compute snapshot-settings update

NAME
gcloud compute snapshot-settings update - update snapshot settings
SYNOPSIS
gcloud compute snapshot-settings update[--async][--storage-location-names=[STORAGE_LOCATION_NAMES,…]][--storage-location-policy=STORAGE_LOCATION_POLICY][GCLOUD_WIDE_FLAG]
DESCRIPTION
Update the snapshot settings of a project.
EXAMPLES
To update the snapshot settings and set the storage location policy to thenearest multi-region as the source disk, run:
gcloudcomputesnapshot-settingsupdate--storage-location-policy=nearest-multi-region

To update the snapshot settings and set the storage location policy to the sameregion as the source disk, run:

gcloudcomputesnapshot-settingsupdate--storage-location-policy=local-region

To update the snapshot settings and set the storage location policy to storesnapshots in a specific location likeus-west1, run:

gcloudcomputesnapshot-settingsupdate--storage-location-policy=specific-locations--storage-location-names=us-west1
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--storage-location-names=[STORAGE_LOCATION_NAMES,…]
The custom storage location that you specify for the project's snapshots. Youcan specify only a single location. Use this flag only when you use thespecific-locations value for the--storage-location-policy flag.For more information, refer to the snapshot settings documentation athttps://cloud.google.com/compute/docs/disks/snapshot-settings.
--storage-location-policy=STORAGE_LOCATION_POLICY
The storage location policy. For more information, refer to the snapshotsettings documentation athttps://cloud.google.com/compute/docs/disks/snapshot-settings.STORAGE_LOCATION_POLICY must be one of: local-region, nearest-multi-region,specific-locations.
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.

API REFERENCE
This command uses the compute/alpha or compute/beta or compute/v1 API. The fulldocumentation for this API can be found at:https://cloud.google.com/compute/
NOTES
These variants are also available:
gcloudalphacomputesnapshot-settingsupdate
gcloudbetacomputesnapshot-settingsupdate

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.