GetObjectAcl¶
Returns the access control list (ACL) of an object.
Tebi supports only 2 access modes for an object: private
and public
.
You must have ACL
or Read
ACL to be able to call this action.
The following operations are related to GetObjectAcl
:
Request Syntax¶
1GET /<KEY>?acl HTTP/1.1
2Host: <BUCKET>.s3.tebi.io
The request uses the following URI parameters:
<BUCKET>: Bucket name that contains the object for which to get the ACL information. Required.
<KEY>: Key of the object for which to get the ACL information.
The request does not have a request body.
Response Syntax¶
1HTTP/1.1 200
2Content-Length: ContentLength
3Content-Type: application/xml
4
5<?xml version="1.0" encoding="UTF-8"?>
6<AccessControlPolicy>
7 <Owner>
8 <DisplayName>string</DisplayName>
9 <ID>string</ID>
10 </Owner>
11 <AccessControlList>
12 <Grant>
13 <Grantee>
14 <DisplayName>string</DisplayName>
15 <EmailAddress>string</EmailAddress>
16 <ID>string</ID>
17 <xsi:type>string</xsi:type>
18 <URI>string</URI>
19 </Grantee>
20 <Permission>string</Permission>
21 </Grant>
22 </AccessControlList>
23</AccessControlPolicy>
If the action is successful, the service sends back an HTTP 200 response.
The response returns the following HTTP headers:
AccessControlPolicy: Root level tag for the AccessControlPolicy parameters.
Grants: List of grants.
Owner: Container for the bucket owner’s display name and ID.
See Also¶
Refer here for more information.