Lifecycle Rules

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

List lifecycle rules for a bucket

get
Authorizations
Path parameters
organization_uuidstringRequired

The UUID of the organization

bucket_uuidstringRequired

The UUID of the bucket

Responses
200

Successful Response

application/json
get
GET /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"
      }
    ]
  }
}

Show a specific lifecycle rule

get
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
get
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"
      }
    ]
  }
}

Update a lifecycle rule

put
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
put
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"
      }
    ]
  }
}

Delete a lifecycle rule

delete
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
delete
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"
}

Create a lifecycle rule for a bucket

post
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
post
POST /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"
      }
    ]
  }
}

Delete a credential

delete
Authorizations
Path parameters
organization_uuidstringRequired

The UUID of the organization

credential_uuidstringRequired

The UUID of the credential

Responses
200

Credential successfully deleted

application/json
delete
DELETE /api/api/v2/stook/{organization_uuid}/credential/{credential_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Credential successfully deleted

{
  "status": true,
  "message": "text"
}

Last updated

Was this helpful?