GET /?acl HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
<AccessControlPolicy><Owner><ID>string</ID><DisplayName>string</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group"><URI>string</URI></Grantee><Permission>Enum</Permission></Grant><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>string</ID><DisplayName>string</DisplayName></Grantee><Permission>Enum</Permission></Grant></AccessControlList></AccessControlPolicy>
节点名称(关键字) | 父节点 | 描述 | 类型 |
AccessControlPolicy | 无 | 保存 GET Bucket acl 结果的所有信息 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Owner | AccessControlPolicy | 存储桶持有者信息 | Container |
AccessControlList | AccessControlPolicy | 被授权者信息与权限信息 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
ID | AccessControlPolicy.Owner | 存储桶持有者的完整 ID,格式为 qcs::cam::uin/[OwnerUin]:uin/[OwnerUin] ,如 qcs::cam::uin/100000000001:uin/100000000001 | string |
DisplayName | AccessControlPolicy.Owner | 存储桶持有者的名字 | string |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Grant | AccessControlPolicy.AccessControlList | 单个授权信息 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Grantee | AccessControlPolicy.AccessControlList.Grant | 被授权者信息, xsi:type 为 Group 或 CanonicalUser,当为 Group 时子节点包括且仅包括 URI,当指定为 CanonicalUser 时子节点包括且仅包括 ID 和 DisplayName | Container |
Permission | AccessControlPolicy.AccessControlList.Grant | Enum |
节点名称(关键字) | 父节点 | 描述 | 类型 |
URI | AccessControlPolicy.AccessControlList.Grant.Grantee | 预设用户组,请参见 ACL 概述 文档中预设用户组部分,如 http://cam.qcloud.com/groups/global/AllUsers 或 http://cam.qcloud.com/groups/global/AuthenticatedUsers | string |
ID | AccessControlPolicy.AccessControlList.Grant.Grantee | 被授权者的完整 ID,格式为 qcs::cam::uin/[OwnerUin]:uin/[OwnerUin] ,如 qcs::cam::uin/100000000001:uin/100000000001 | string |
DisplayName | AccessControlPolicy.AccessControlList.Grant.Grantee | 被授权者的名字 | string |
GET /?acl HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Mon, 17 Jun 2019 08:37:35 GMTAuthorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1560760655;1560767855&q-key-time=1560760655;1560767855&q-header-list=date;host&q-url-param-list=acl&q-signature=24b9d377eac860917a33c8c298042ce5b1a5****Connection: close
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 1035Connection: closeDate: Mon, 17 Jun 2019 08:37:36 GMTServer: tencent-cosx-cos-request-id: NWQwNzUxNTBfMzdiMDJhMDlfOWM0Nl85NDFk****<AccessControlPolicy><Owner><ID>qcs::cam::uin/100000000001:uin/100000000001</ID><DisplayName>qcs::cam::uin/100000000001:uin/100000000001</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group"><URI>http://cam.qcloud.com/groups/global/AllUsers</URI></Grantee><Permission>READ</Permission></Grant><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>qcs::cam::uin/100000000002:uin/100000000002</ID><DisplayName>qcs::cam::uin/100000000002:uin/100000000002</DisplayName></Grantee><Permission>WRITE</Permission></Grant><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>qcs::cam::uin/100000000002:uin/100000000002</ID><DisplayName>qcs::cam::uin/100000000002:uin/100000000002</DisplayName></Grantee><Permission>READ_ACP</Permission></Grant></AccessControlList></AccessControlPolicy>
本页内容是否解决了您的问题?