mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-17 14:26:34 +00:00
gcloud: Wed Dec 11 10:18:23 UTC 2024
This commit is contained in:
parent
ad2752c6c9
commit
ec6dc40f99
493 changed files with 17655 additions and 1753 deletions
|
|
@ -96,7 +96,7 @@ FLAGS
|
|||
to disable.
|
||||
|
||||
--placement=[REGION,...]
|
||||
A comma-separated list of regions that form the custom [dual-region]
|
||||
A comma-separated list of regions that form the custom dual-region
|
||||
(https://cloud.google.com/storage/docs/locations#location-dr). Only
|
||||
regions within the same continent are or will ever be valid. Invalid
|
||||
location pairs (such as mixed-continent, or with unsupported regions)
|
||||
|
|
|
|||
|
|
@ -15,25 +15,25 @@ EXAMPLES
|
|||
To move a bucket (gs://my-bucket) to the us-central1 location, use the
|
||||
following command:
|
||||
|
||||
$ gcloud storage buckets relocate gs://my-bucket \
|
||||
$ gcloud alpha storage buckets relocate gs://my-bucket \
|
||||
--location=us-central1
|
||||
|
||||
To move a bucket to a custom Dual-region, use the following command:
|
||||
To move a bucket to a custom dual-region, use the following command:
|
||||
|
||||
$ gcloud storage buckets relocate gs://my-bucket --location=us \
|
||||
--placement=us-central1,us-east1
|
||||
$ gcloud alpha storage buckets relocate gs://my-bucket \
|
||||
--location=us --placement=us-central1,us-east1
|
||||
|
||||
To validate the operation without actually moving the bucket, use the
|
||||
following command:
|
||||
|
||||
$ gcloud storage buckets relocate gs://my-bucket \
|
||||
$ gcloud alpha storage buckets relocate gs://my-bucket \
|
||||
--location=us-central1 --dry-run
|
||||
|
||||
To schedule a write lock for the move, with ttl for reverting the write
|
||||
lock after 7h, if the relocation has not succeeded, use the following
|
||||
command:
|
||||
|
||||
$ gcloud storage buckets relocate \
|
||||
$ gcloud alpha storage buckets relocate \
|
||||
--operation=projects/_/buckets/my-bucket/operations/C894F35J \
|
||||
--finalize --ttl=7h
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ POSITIONAL ARGUMENTS
|
|||
arguments in this group are specified.
|
||||
|
||||
--location=LOCATION
|
||||
The final [location]
|
||||
The final location
|
||||
(https://cloud.google.com/storage/docs/locations) where the bucket
|
||||
will be relocated to. If no location is provided, Cloud Storage
|
||||
will use the default location, which is us.
|
||||
|
|
@ -58,8 +58,7 @@ POSITIONAL ARGUMENTS
|
|||
in this group are specified.
|
||||
|
||||
--placement=[REGION,...]
|
||||
A comma-separated list of regions that form the custom
|
||||
[dual-region]
|
||||
A comma-separated list of regions that form the custom dual-region
|
||||
(https://cloud.google.com/storage/docs/locations#location-dr). Only
|
||||
regions within the same continent are or will ever be valid.
|
||||
Invalid location pairs (such as mixed-continent, or with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue