| Did this page help you? Yes No Tell us about it... |
To return the bucket policy on a specified bucket, use the GET
Bucket operation with the policy sub-resource.
The following request returns the bucket policy for the bucket,
mybucket.s3.amazonaws.com:
GET ?policy HTTP/1.1 Host: mybucket.s3.amazonaws.com Date: Wed, 28 Oct 2009 22:32:00 GMT Authorization: AWS AKIAIOSFODNN7EXAMPLE:VGhpcyBSAMPLEBieSBlbHZpbmc=
The bucket owner by default has permissions to retrieve bucket policies using
GET Bucket policy.
For more information, go to GET Bucket policy in the Amazon S3 API Reference.