Lifecycle
Get Object Lifecycle Rules
GET/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle
Put Object Lifecycle Rules
PUT/accounts/{account_id}/r2/buckets/{bucket_name}/lifecycle
ModelsExpand Collapse
LifecycleGetResponse object { rules }
LifecycleGetResponse object { rules }
rules: optional array of object { id, conditions, enabled, 3 more }
rules: optional array of object { id, conditions, enabled, 3 more }
abortMultipartUploadsTransition: optional object { condition } Transition to abort ongoing multipart uploads.
abortMultipartUploadsTransition: optional object { condition }
Transition to abort ongoing multipart uploads.
deleteObjectsTransition: optional object { condition } Transition to delete objects.
deleteObjectsTransition: optional object { condition }
Transition to delete objects.
condition: optional object { maxAge, type } or object { date, type } Condition for lifecycle transitions to apply after an object reaches an age in seconds.
condition: optional object { maxAge, type } or object { date, type }
Condition for lifecycle transitions to apply after an object reaches an age in seconds.
storageClassTransitions: optional array of object { condition, storageClass } Transitions to change the storage class of objects.
storageClassTransitions: optional array of object { condition, storageClass }
Transitions to change the storage class of objects.
condition: object { maxAge, type } or object { date, type } Condition for lifecycle transitions to apply after an object reaches an age in seconds.
condition: object { maxAge, type } or object { date, type }
Condition for lifecycle transitions to apply after an object reaches an age in seconds.