| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/admin/buckets/:bucketName/policy | GET | Yes |
Returns the policy attached to any bucket, regardless of owner.
{
"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 |