Difference between revisions of "GCS lifecycle"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
Examples: https://cloud.google.com/storage/docs/lifecycle-configurations#gsutil_1
+
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>
  
 
== Related ==
 
== Related ==

Revision as of 06:42, 2 August 2022

Advertising: