Difference between revisions of "GCS lifecycle"
Jump to navigation
Jump to search
(Created page with "https://cloud.google.com/storage/docs/lifecycle * {{GCP}}") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
+ | Official examples: https://cloud.google.com/storage/docs/lifecycle-configurations#gsutil_1 | ||
+ | <pre> | ||
+ | { | ||
+ | "lifecycle": { | ||
+ | "rule": [ | ||
+ | { | ||
+ | "action": {"type": "Delete"}, | ||
+ | "condition": { | ||
+ | "numNewerVersions": 2, | ||
+ | "isLive": false | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | "action": {"type": "Delete"}, | ||
+ | "condition": { | ||
+ | "daysSinceNoncurrentTime": 7 | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
− | * {{ | + | <pre> |
+ | { | ||
+ | "lifecycle": { | ||
+ | "rule": [ | ||
+ | { | ||
+ | "action": { | ||
+ | "type": "Delete" | ||
+ | }, | ||
+ | "condition": { | ||
+ | "age": 40, | ||
+ | "isLive": true | ||
+ | } | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | == Related == | ||
+ | * [[lifecycle]] | ||
+ | |||
+ | == See also == | ||
+ | * {{GCS}} | ||
+ | |||
+ | [[Category:GCP]] |
Latest revision as of 06:44, 2 August 2022
https://cloud.google.com/storage/docs/lifecycle
Official examples: https://cloud.google.com/storage/docs/lifecycle-configurations#gsutil_1
{ "lifecycle": { "rule": [ { "action": {"type": "Delete"}, "condition": { "numNewerVersions": 2, "isLive": false } }, { "action": {"type": "Delete"}, "condition": { "daysSinceNoncurrentTime": 7 } } ] } }
{ "lifecycle": { "rule": [ { "action": { "type": "Delete" }, "condition": { "age": 40, "isLive": true } } ] } }
Related[edit]
See also[edit]
Advertising: