GCS lifecycle

From wikieduonline
(Redirected from GCP lifecycle)
Jump to navigation Jump to search

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: