Set Scaleway bucket CORS rules (full replace)
scaleway_s3_put_bucket_corsReplace a Scaleway S3 bucket's CORS rules to control browser cross-origin access. Provide the complete rule set; existing rules are removed.
Instructions
Set a bucket's CORS rules. FULL-REPLACE semantics: the provided list becomes the complete rule set - existing rules not in the list are removed. This loosens or restricts browser cross-origin access to the 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": "<bucket>",
"rules": "<rules>"
},
"name": "scaleway_s3_put_bucket_cors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | The COMPLETE CORS rule set to apply. | |
| bucket | Yes | Bucket name. | |
| region | No | Region to operate in. Defaults to the server's configured region (fr-par). |