Get Bucket ACL用来获取某个Bucket的访问权限。
请求语法GET /?acl HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
响应元素(Response Elements)
名称 | 描述 |
AccessControlList | 存储ACL信息的容器类型:容器父节点:AccessControlPolicy |
AccessControlPolicy | 保存Get Bucket ACL结果的容器类型:容器父节点:None |
DisplayName | Bucket拥有者的名称.。(目前和ID一致)类型:字符串父节点:AccessControlPolicy.Owner |
Grant | Bucket的ACL权限。类型:枚举字符串有效值:private、public-read、public-read-write父节点:AccessControlPolicy.AccessControlList |
ID | Bucket拥有者的用户ID类型:字符串父节点:AccessControlPolicy.Owner |
Owner | 保存Bucket拥有者信息的容器。类型:容器父节点:AccessControlPolicy |
GET /?acl HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 04:11:23 GMT
Authorization: OSS qn6qrrqxo2oawuk53otfj byc:CTkuxpLAi4XZ+WwIfNm0FmgbrQ0=
HTTP/1.1 200 OK
x-oss-request-id: 534B371674E88A4D8906008B
Date: Fri, 24 Feb 2012 04:11:23 GMT
Content-Length: 253
Content-Tupe: application/xml
Connection: keep-alive
Server: AliyunOSS
<?xml version="1.0" ?>
<AccessControlPolicy>
<Owner>
<ID>00220120222</ID>
<DisplayName>user_example</DisplayName>
</Owner>
<AccessControlList>
<Grant>public-read</Grant>
</AccessControlList>
</AccessControlPolicy>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。