Skip to main content

GetObjectAcl

Returns the access control list (ACL) of an object in a QStorage bucket.

Permissions Required

To perform this operation, you need one of the following permissions:

  • READ_ACP permission on the object
  • Bucket owner
  • Object owner

Request

Request Headers

NameDescriptionRequiredType
x-amz-request-payerConfirms that the requester knows that they will be charged for the request.NoString

URI Parameters

NameDescriptionRequiredType
versionIdVersion ID of the object whose ACL you want to retrieve.NoString

Request Body

This operation does not have a request body.

Request Syntax

GET /{object-key}?acl HTTP/1.1
Host: {bucket-name}.qstorage.quilibrium.com
x-amz-request-payer: requester

Response

Response Headers

NameDescriptionRequiredType
x-amz-request-chargedIf present, indicates that the requester was successfully charged for the request.NoString

Response Elements

NameDescriptionRequiredType
AccessControlListContainer for the ACL information.NoContainer
GrantContainer for the grantee and permissions.NoContainer
GranteeThe person being granted permissions.NoContainer
IDThe ID of the grantee.NoString
DisplayNameScreen name of the grantee.NoString
PermissionSpecifies the permission given to the grantee.NoString
OwnerContainer for the bucket owner's information.NoContainer

Error Responses

NameDescriptionRequiredType
NoSuchKeyThe specified key does not exist.NoString
NoSuchBucketThe specified bucket does not exist.NoString

Examples

Example Request

GET /example-object?acl HTTP/1.1
Host: example-bucket.qstorage.quilibrium.com

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<AccessControlPolicy>
<Owner>
<ID>*** Owner-ID ***</ID>
<DisplayName>owner-display-name</DisplayName>
</Owner>
<AccessControlList>
<Grant>
<Grantee>
<ID>*** Owner-ID ***</ID>
<DisplayName>owner-display-name</DisplayName>
</Grantee>
<Permission>FULL_CONTROL</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>

API Tester

Test

Coming Soon

This feature is currently under development and will be available soon.