Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Returning the Bucket Policies on a Bucket

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.