Get Scaleway Bucket Policy
scaleway_s3_get_bucket_policyRetrieve the current JSON policy attached to a Scaleway Object Storage bucket. Use this to review access permissions or diagnose missing policy configurations by handling errors when no policy exists.
Instructions
Read the current Bucket Policy JSON attached to an Object Storage bucket. Returns an error if the bucket has no policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | Bucket name, e.g. 'payments-backups'. | |
| region | No | Region the bucket lives in. Defaults to the server's configured region (fr-par). |