1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-13 16:37:00 +00:00
gcloud-help/gcloud/alpha/compute/snapshot-settings/update
2024-05-01 09:26:55 +00:00

74 lines
2.9 KiB
Text

NAME
gcloud alpha compute snapshot-settings update - update snapshot settings
SYNOPSIS
gcloud alpha compute snapshot-settings update [--async]
[--storage-location-names=[STORAGE_LOCATION_NAMES,...]]
[--storage-location-policy=STORAGE_LOCATION_POLICY]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) 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 alpha 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 alpha 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 alpha 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 API. The full documentation for this
API can be found at: https://cloud.google.com/compute/
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. These variants are also available:
$ gcloud compute snapshot-settings update
$ gcloud beta compute snapshot-settings update