mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-14 00:46:53 +00:00
gcloud: Wed Aug 21 09:39:51 UTC 2024
This commit is contained in:
parent
d35819d273
commit
ed5fe34b64
163 changed files with 3541 additions and 717 deletions
|
|
@ -38,13 +38,20 @@ EXAMPLES
|
|||
$ gcloud storage objects update gs://bucket/my-object \
|
||||
--custom-metadata=key1=value1,key2=value2
|
||||
|
||||
One can use wildcards (https://cloud.google.com/storage/docs/wildcards) to
|
||||
update multiple objects in a single command. for instance to update all
|
||||
objects to have a custom-metadata key:
|
||||
|
||||
$ gcloud storage objects update gs://bucket/** \
|
||||
--custom-metadata=key1=value1,key2=value2
|
||||
|
||||
Rewrite all JPEG images to the NEARLINE storage class:
|
||||
|
||||
$ gcloud storage objects update gs://bucket/*.jpg \
|
||||
--storage-class=NEARLINE
|
||||
|
||||
You can also provide a precondition on an object's metageneration in
|
||||
order to avoid potential race conditions:
|
||||
You can also provide a precondition on an object's metageneration in order
|
||||
to avoid potential race conditions:
|
||||
|
||||
$ gcloud storage objects update gs://bucket/*.jpg \
|
||||
--storage-class=NEARLINE --if-metageneration-match=123456789
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue