- 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 the
nearest multi-region as the source disk, run:
gcloud compute snapshot-settings update --storage-location-policy=nearest-multi-region
To update the snapshot settings and set the storage location policy to the same region as the source disk, run:
gcloud compute snapshot-settings update --storage-location-policy=local-region
To update the snapshot settings and set the storage location policy to store snapshots in a specific location like
us-west1
, run:gcloud compute snapshot-settings update --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. You
can specify only a single location. Use this flag only when you use the
specific-locations value for the
--storage-location-policy
flag. For more information, refer to the snapshot settings documentation at https://cloud.google.com/compute/docs/disks/snapshot-settings. --storage-location-policy
=STORAGE_LOCATION_POLICY
- The storage location policy. For more information, refer to the snapshot settings documentation at https://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 full documentation for this API can be found at: https://cloud.google.com/compute/
- NOTES
-
These variants are also available:
gcloud alpha compute snapshot-settings update
gcloud beta compute snapshot-settings update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-22 UTC.