Cloudflare R2 · Example Payload

Cloudflare R2 Lifecycle Config Example

Object StorageCloud StorageS3-CompatibleEgress-FreeBucketsDeveloper PlatformCloudflare

Cloudflare R2 Lifecycle Config Example is an example object payload from Cloudflare R2, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

rules

Example Payload

Raw ↑
{
  "rules": [
    {
      "id": "expire-old-logs",
      "enabled": true,
      "conditions": {
        "type": "age",
        "maxAgeSeconds": 7776000
      },
      "prefix": "logs/",
      "action": {
        "type": "DeleteObject"
      }
    },
    {
      "id": "abort-incomplete-uploads",
      "enabled": true,
      "conditions": {
        "type": "age",
        "maxAgeSeconds": 86400
      },
      "action": {
        "type": "AbortMultipartUpload"
      }
    }
  ]
}