Bucket Policy Status

GET https://s3.amazonaws.com/{{bucket}}/?policyStatus

Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public. In order to use this operation, you must have the s3:GetBucketPolicyStatus permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

Request Params

KeyDatatypeRequiredDescription
policyStatusnull

HEADERS

KeyDatatypeRequiredDescription
x-amz-content-sha256string

RESPONSES

status: OK

"\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cPolicyStatus xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"\u003e\u003cIsPublic\u003efalse\u003c/IsPublic\u003e\u003c/PolicyStatus\u003e"