最近更新时间:2021-12-24
使用GetObjectACL接口返回一个Object的访问控制权限列表。
GET /ObjectName?acl HTTP/1.1 Host: examplebucket.region.unicloudsrv.com Date: GMT date Authorization: authorization string |
参数 | 描述 |
AccessControlList | 包含 Grant,Grantee,Permission 的容器。 |
AccessControlPolicy | 包含了每一个 Grantee 对于某个对象的 ACL 权限设置信息 |
Grant | 包含被授权者和其权限信息。 |
Grantee | 被授权者 |
DisplayName | Bucket拥有者的名称。 |
ID | Bucket拥有者的用户ID。 |
Owner | 包含bucket拥有者信息(DisplayName,ID)的容器。 |
Permission | 指明授予被授权者的权限信息 |
GET /my-image.jpg?acl HTTP/1.1 Host: test.oss-cn-north-1.unicloudsrv.com Date: Wed, 28 Oct 2009 22:32:00 GMT Authorization: authorization string |
HTTP/1.1 200 OK x-amz-id-2: eftixk72aD6Ap51TnqcoF8eFidJG9Z/2mkiDFu8yU9AS1ed4OpIszj7UDNEHGran x-amz-request-id: 318BC8BC148832E5 x-amz-version-id: 4HL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nrjfkd Date: Wed, 28 Oct 2009 22:32:00 GMT Last-Modified: Sun, 1 Jan 2006 12:00:00 GMT Content-Length: 124 Content-Type: text/plain Connection: close Server: los
< AccessControlPolicy > < Owner > < ID >75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a< /ID> < DisplayName>user@unicloud.com< /DisplayName> < /Owner> <AccessControlList > <Grant > <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser" > <ID >75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a< /ID> <DisplayName >user@unicloud.com< /DisplayName> < /Grantee > <Permission >FULL_CONTROL< /Permission> < /Grant> < /AccessControlList> < /AccessControlPolicy> |