Lifecycle Rules

Configure automatic object expiration and cleanup policies for your Stook Buckets.

List lifecycle rules

get

Retrieves a list of all lifecycle rules configured for a specific storage bucket.

Path parameters
organization_uuidstringRequired

Unique identifier for the organization.

bucket_uuidstringRequired

Unique identifier for the storage bucket.

Responses
chevron-right
200

Successful response

application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle

Retrieve lifecycle rule details

get

Retrieves configuration details for a specific lifecycle rule applied to a storage bucket.

Path parameters
organization_uuidstringRequired

Unique identifier for the organization.

bucket_uuidstringRequired

Unique identifier for the storage bucket.

lifecycle_uuidstringRequired

Unique identifier for the specific lifecycle rule.

Responses
chevron-right
200

Successful response

application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Create a lifecycle rule

post

Creates a new lifecycle rule for a specific storage bucket to automate object expiration in the Medianova Control Panel.

Path parameters
organization_uuidstringRequired

Unique identifier for the organization.

bucket_uuidstringRequired

Unique identifier for the storage bucket.

Body
expiration_daysintegerRequired

Number of days before objects in the bucket expire.

filter_prefixstringOptional

Path prefix to limit the rule to specific objects.

Responses
chevron-right
200

Successful response

application/json
post
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle

Update a lifecycle rule

put

Updates the configuration of an existing lifecycle rule for a specific storage bucket in the Medianova Control Panel.

Path parameters
organization_uuidstringRequired

Unique identifier for the organization.

bucket_uuidstringRequired

Unique identifier for the storage bucket.

lifecycle_uuidstringRequired

Unique identifier for the lifecycle rule to be updated.

Body
statusbooleanOptional

Sets the active status of the lifecycle rule.

expiration_daysintegerOptional

Updated number of days before object expiration.

filter_prefixstringOptional

Updated path prefix for object filtering.

Responses
chevron-right
200

Successful response

application/json
put
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Delete a lifecycle rule

delete

Permanently removes a specific lifecycle rule from a storage bucket in the Medianova Control Panel.

Path parameters
organization_uuidstringRequired

Unique identifier for the organization.

bucket_uuidstringRequired

Unique identifier for the storage bucket.

lifecycle_uuidstringRequired

Unique identifier for the lifecycle rule to be deleted.

Responses
chevron-right
200

Successful response

application/json
delete
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}

Last updated

Was this helpful?