| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/buckets/:bucketName/policy | GET | No |
Returns the policy attached to a bucket you own, if any. This is the same policy enforced on the S3-compatible API.
{
"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.
| Status | Reason |
|---|---|
400 | Missing bucket name |
404 | Bucket not found (or not owned by you) |