mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Feb 5 10:43:28 UTC 2025
This commit is contained in:
parent
50090ced80
commit
c854ee0644
87 changed files with 3843 additions and 232 deletions
|
|
@ -9,7 +9,7 @@ SYNOPSIS
|
|||
[--default-storage-class=DEFAULT_STORAGE_CLASS,
|
||||
-c DEFAULT_STORAGE_CLASS, -s DEFAULT_STORAGE_CLASS]
|
||||
[--enable-hierarchical-namespace] [--enable-per-object-retention]
|
||||
[--location=LOCATION, -l LOCATION]
|
||||
[--lifecycle-file=LIFECYCLE_FILE] [--location=LOCATION, -l LOCATION]
|
||||
[--[no-]pap, --[no-]public-access-prevention]
|
||||
[--placement=[REGION,...]]
|
||||
[--recovery-point-objective=SETTING, --rpo=SETTING]
|
||||
|
|
@ -65,6 +65,22 @@ FLAGS
|
|||
Enables each object in the bucket to have its own retention settings,
|
||||
which prevents deletion until stored for a specific length of time.
|
||||
|
||||
--lifecycle-file=LIFECYCLE_FILE
|
||||
Sets the lifecycle management configuration on a bucket. For example,
|
||||
The following lifecycle management configuration JSON document
|
||||
specifies that all objects in this bucket that are more than 365 days
|
||||
old are deleted automatically:
|
||||
|
||||
{
|
||||
"rule":
|
||||
[
|
||||
{
|
||||
"action": {"type": "Delete"},
|
||||
"condition": {"age": 365}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
--location=LOCATION, -l LOCATION
|
||||
Location (https://cloud.google.com/storage/docs/locations) for the
|
||||
bucket. If not specified, the location used by Cloud Storage is us. A
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue