Get Policy

Get the policy attached to a bucket you own.
EndpointMethodAdmin Required
/api/v1/buckets/:bucketName/policyGETNo

Returns the policy attached to a bucket you own, if any. This is the same policy enforced on the S3-compatible API.

Path Parameters

bucketName
string required
The name of the bucket.

Response

{
    "policy": "{\"Version\":\"2012-10-17\",\"Statement\":[...]}"
}

policy is the raw policy document as a JSON-encoded string, or null if no policy has been set.

Errors

StatusReason
400Missing bucket name
404Bucket not found (or not owned by you)