GET /?policy HTTP/1.1Host:<BucketName-APPID>.cos.<Region>.myqcloud.comDate:dateAuthorization: Auth String
APPID
, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).{"Statement":[{"Principal":{"qcs":["qcs::cam::uin/100000000001:uin/100000000001"]},"Effect": "allow","Action":["name/cos:GetBucket"],"Resource":["qcs::cos:ap-guangzhou:uid/1250000000:examplebucket-1250000000/*"]}],"version": "2.0"}
GET /?policy HTTP/1.1Host:examplebucket-1250000000.cos.ap-guangzhou.myqcloud.comAuthorization:q-sign-algorithm=sha1&q-ak=AKIDWtTCBYjM5OwLB9CAwA1Qb2ThTSUj****&q-sign-time=1484814099;32557710099&q-key-time=1484814099;32557710099&q-header-list=host&q-url-param-list=policy&q-signature=0523d7c6305b6676611c44798d2c48b659e6****
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 237Connection: keep-aliveDate: Thu Jan 19 16:21:46 2017Server: tencent-cosx-cos-request-id: NTg4MDc3MWFfOWIxZjRlXzZmNDVf****{"Statement":[{"Principal":{"qcs":["qcs::cam::uin/100000000001:uin/100000000001"]},"Effect": "allow","Action":["name/cos:GetBucket"],"Resource":["qcs::cos:ap-guangzhou:uid/1250000000:examplebucket-1250000000/*"]}],"version": "2.0"}
Was this page helpful?