cos_set_bucket_lifecycle
Define lifecycle rules for Cloud Object Storage buckets by setting an expiration period in days to automatically delete or transition objects, with optional prefix filtering.
Instructions
Set lifecycle rules on a bucket
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket_name": "<bucket_name>",
"expiration_days": "<expiration_days>"
},
"name": "cos_set_bucket_lifecycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | ||
| prefix | No | ||
| expiration_days | Yes | Days after which to expire objects | |
| region | No |