cos_set_bucket_private
Sets a Tencent Cloud COS bucket ACL to private read-write, eliminating anonymous access to sensitive objects caused by public-read permissions.
Instructions
将腾讯云 COS 存储桶 ACL 设为「私有读写」(覆盖式 PUT,ACL='private')。用于修复因「公有读」导致敏感对象可被匿名访问的安全风险。
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": "cos_set_bucket_private"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | 存储桶名称 | |
| region | No | 存储桶地域,不填则用全局配置 region |