You can call GetBucketPolicy to query the policies configured for a specified bucket.

Request syntax

GET /? policy
Date: GMT Date
Authorization: SignatureValue


  • Sample requests
    GET /? policy
    Date: Tue, 13 Nov 2018 09:09:13 GMT
    Authorization: OSS xxxxxxxxx:xxxxxxxxxxx
  • Sample responses
    HTTP/1.1 200 OK
    server: AliyunOSS
    x-oss-server-time: 24
    connection: keep-alive
    x-oss-request-id: 5C6E9847BE0EBCD13DA90C11
    date: Thu, 21 Feb 2019 12:23:35 GMT
    content-type: application/json

Error codes

Error code HTTP status code Description
NoSuchBucketPolicy 404 No policy is configured for the requested bucket.