bucket_object_lock_set
Set a bucket's default object retention rule using COMPLIANCE or GOVERNANCE mode with days or years, or clear the rule. Object Lock must be enabled when the bucket is created.
Instructions
Set a bucket's default retention rule: mode COMPLIANCE or GOVERNANCE and either days or years; clear_default=true removes the rule instead. Object Lock itself can only be enabled when the bucket is created (bucket_create object_lock=true). Needs confirm=true.
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": "<bucket>"
},
"name": "bucket_object_lock_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| mode | No | ||
| years | No | ||
| bucket | Yes | ||
| region | No | ||
| confirm | No | ||
| clear_default | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||