GetObjectAcl
Last Updated:2021-12-08
Interface Description
This command allows you to get the permission of access to an object.
Request
-
Request syntax
GET /<ObjectName>?acl HTTP/1.1 Host: <BucketName>.bj.bcebos.com x-bce-date: <Date> Authorization: <AuthorizationString>
-
Request header field
No special parameters.
-
Request parameters
No special parameters.
Response
-
Response header field
No special header parameter returned.
-
Response parameters
Name Type Description accessControlList Objcet Access control list (ACL) +grantee Objcet A grantee ++id String Authorized user name ID +permission String The authorized permission can be FULL_CONTROL and READ.
Example
-
Request example
GET /ObjectKey?acl HTTP/1.1 Host: BucketName.bj.bcebos.com x-bce-date: 2017-05-01T12:23:49Z Authorization: AuthorizationString
-
Response example
HTTP/1.1 200 OK Date: Wed, 01 Mar 2017 12:25:00 GMT Server: BceBos x-bce-request-id: 236A23124128905248E5A01 { "accessControlList":[ { "grantee":[{ "id":"e13b12d0131b4c8bae959df4969387b8" }], "permission":["FULL_CONTROL"] }, { "grantee":[{ "id":"8c47a952db4444c5a097b41be3f24c94" }], "permission":["READ"] } ] }