GetBucketACL

请求语法

GET /?acl HTTP/1.1
Host: bucketname.cos.chinac.com
Date: GMT Date
Authorization: SignatureValue

响应元素

Name Type Description
Owner Object 保存Bucket拥有者信息
ID String Bucket拥有者的用户ID
DisplayName String Bucket拥有者的名称
AccessControlList Object 存储ACL信息
Grant String Bucket的ACL权限

细节分析

  1. 只有Bucket的拥有者才能使用GetBucketACL这个接口
  2. 如果用户发起GetBucketACL请求的时候,没有传入用户验证信息,返回403 Forbidden消息。错误码:AccessDenied

示例

请求示例
GET /?acl HTTP/1.1
Host: test-bucket.cos.chinac.com
Date: GMT Date
Authorization: COS qn6qrrqxo2oawuk53otfjbyc:CTkuxpLAi4XZ+WwIfNm0FmgbrQ0=
返回示例
HTTP/1.1 200 OK
x-cos-request-id: 534B371674E88A4D8906008B
Date: Fri, 24 Feb 2012 04:11:23 GMT 
Content-Type: application/json
Content-Length: 253
Connection: keep-alive
Server: ChinacCOS

{
    "Owner":{
        "ID": "cos-test",
        "DisplayName": "cos-test"
    },
    "AccessControlList":{"Grant": "private"}
}

results matching ""

    No results matching ""