Lifecycle Rules
Configure automatic object expiration and cleanup policies for your Stook Buckets.
Authorizations
Path parameters
organization_uuidstringRequired
The UUID of the organization
bucket_uuidstringRequired
The UUID of the bucket
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycleGET /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}Authorizations
Path parameters
organization_uuidstringRequired
The UUID of the organization
bucket_uuidstringRequired
The UUID of the bucket
lifecycle_uuidstringRequired
The UUID of the lifecycle rule
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}GET /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}Authorizations
Path parameters
organization_uuidstringRequired
The UUID of the organization
bucket_uuidstringRequired
The UUID of the bucket
Body
expiration_daysintegerRequired
filter_prefixstringOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecyclePOST /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}Authorizations
Path parameters
organization_uuidstringRequired
The UUID of the organization
bucket_uuidstringRequired
The UUID of the bucket
lifecycle_uuidstringRequired
The UUID of the lifecycle rule
Body
statusbooleanOptional
expiration_daysintegerOptional
filter_prefixstringOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
put
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}PUT /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}{
"status": true,
"data": {
"uuid": "text",
"status": true,
"expiration_days": 1,
"filter_prefix": "text",
"filter_tags": [
{
"key": "text",
"label": "text"
}
]
}
}Authorizations
Path parameters
organization_uuidstringRequired
The UUID of the organization
bucket_uuidstringRequired
The UUID of the bucket
lifecycle_uuidstringRequired
The UUID of the lifecycle rule
Responses
200
Lifecycle rule successfully deleted
application/json
422
Validation Error
application/json
delete
/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid}DELETE /api/api/v2/stook/{organization_uuid}/bucket/{bucket_uuid}/lifecycle/{lifecycle_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": true,
"message": "text",
"operation_id": "text"
}Last updated
Was this helpful?