1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00
gcloud-help/gcloud/alpha/compute/snapshot-settings/update

88 lines
3.4 KiB
Text
Raw Normal View History

2023-09-13 10:32:10 +00:00
NAME
gcloud alpha compute snapshot-settings update - update snapshot settings
SYNOPSIS
2024-10-23 10:01:22 +00:00
gcloud alpha compute snapshot-settings update
[--add-access-locations=[ADD_ACCESS_LOCATIONS,...]] [--async]
[--region=REGION]
[--remove-access-locations=[REMOVE_ACCESS_LOCATIONS,...]]
2023-09-13 10:32:10 +00:00
[--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 \
2024-10-23 10:01:22 +00:00
--storage-location-policy=nearest-multi-region
2023-09-13 10:32:10 +00:00
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 \
2024-10-23 10:01:22 +00:00
--storage-location-policy=local-region
2023-09-13 10:32:10 +00:00
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 \
2024-10-23 10:01:22 +00:00
--storage-location-policy=specific-locations \
--storage-location-names=us-west1
2023-09-13 10:32:10 +00:00
FLAGS
2024-10-23 10:01:22 +00:00
--add-access-locations=[ADD_ACCESS_LOCATIONS,...]
Access locations to add to snapshot settings
2023-09-13 10:32:10 +00:00
--async
Return immediately, without waiting for the operation in progress to
complete.
2024-10-23 10:01:22 +00:00
--region=REGION
region for regional snapshot settings
--remove-access-locations=[REMOVE_ACCESS_LOCATIONS,...]
Access locations to remove from snapshot settings
2023-09-13 10:32:10 +00:00
--storage-location-names=[STORAGE_LOCATION_NAMES,...]
2024-05-01 09:26:55 +00:00
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
2023-09-13 10:32:10 +00:00
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
2024-10-23 10:01:22 +00:00
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/
2023-09-13 10:32:10 +00:00
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
2023-11-09 11:45:52 +00:00
access allowlist. These variants are also available:
$ gcloud compute snapshot-settings update
2023-09-13 10:32:10 +00:00
$ gcloud beta compute snapshot-settings update