Difference between revisions of "GCS lifecycle"

From wikieduonline
Jump to navigation Jump to search
Line 29: Line 29:
  
 
== See also ==
 
== See also ==
* {{GCP}}
+
* {{GCS}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Revision as of 06:42, 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
    }
  }
]
}
}

Related

See also

Advertising: