GetBucketPolicy

Returns the Bucket Policy of a specified bucket.

You must have Full ACL to be able to call this action.

The following operations are related to GetBucketPolicy:

Request Syntax

1GET /?policy HTTP/1.1
2Host: <BUCKET>.s3.tebi.io

The request uses the following URI parameters:

  • <BUCKET>: Bucket name for which to get the bucket policy. Required.

The request does not have a request body.

Response Syntax

1HTTP/1.1 200
2Content-Length: ContentLength
3Content-Type: application/json
4
5{ Policy in JSON format }

If the action is successful, the service sends back an HTTP 200 response.

The data is returned in JSON format by the service.

See Also

Refer here for more information.