Set bucket lifecycle configuration
PUT/backend/api/object-storage/storage/:id/lifecycle
Host: https://core.ocplanet.cloud
Set or replace the lifecycle configuration for a bucket. Use this to automate retention and cleanup of stored objects.
Request
Path Parameters
A UUID string identifying this Object Bucket.
- application/json
Body
arrayrequired
Array of S3-compatible lifecycle rules. Pass an empty array to clear the configuration.
- Array [
- ]
Unique identifier of the rule within the bucket.
Object key prefix the rule applies to. Empty string means the rule applies to all objects.
Possible values: [Enabled, Disabled]
Whether the rule is currently active.
Expiration object
Specifies when objects are deleted (current versions).
Possible values: >= 1
Number of days after object creation when the rule takes effect.
Specific date when the rule takes effect (ISO 8601).
Whether to remove expired object delete markers.
Transition object
Defines when objects transition to a different storage class.
Possible values: [STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE]
NoncurrentVersionTransition object
Defines when noncurrent object versions transition to a different storage class.
Possible values: >= 1
Possible values: [STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE]
NoncurrentVersionExpiration object
Defines when noncurrent object versions are permanently deleted.
Possible values: >= 1
AbortIncompleteMultipartUpload object
Aborts incomplete multipart uploads after the specified number of days.
Possible values: >= 1
Responses
- 200
Lifecycle configuration updated.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Rules object[]
Unique identifier of the rule within the bucket.
Object key prefix the rule applies to. Empty string means the rule applies to all objects.
Possible values: [Enabled, Disabled]
Whether the rule is currently active.
Expiration object
Specifies when objects are deleted (current versions).
Possible values: >= 1
Number of days after object creation when the rule takes effect.
Specific date when the rule takes effect (ISO 8601).
Whether to remove expired object delete markers.
Transition object
Defines when objects transition to a different storage class.
Possible values: [STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE]
NoncurrentVersionTransition object
Defines when noncurrent object versions transition to a different storage class.
Possible values: >= 1
Possible values: [STANDARD, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE]
NoncurrentVersionExpiration object
Defines when noncurrent object versions are permanently deleted.
Possible values: >= 1
AbortIncompleteMultipartUpload object
Aborts incomplete multipart uploads after the specified number of days.
Possible values: >= 1
{}