Knowledge base

Set Object ACL

PUT /{object}?acl
Host: {bucket}.{region}.cdn77-storage.com

Request Entities

NameDescription
AccessControlPolicynone

A container for the request.

AccessControlListnone

A container for the ACL information.

Ownernone

A container for the object owner's ID and DisplayName.

IDstring

The object owner's ID.

DisplayNamestring

The object owner's display name.

Grantnone

A container for Grantee and Permission.

Granteenone

A container for the DisplayName and ID of the user receiving a grant of permission.

Permissionstring

The permission given to the Grantee object.

Example

<AccessControlPolicy>
    <Owner>
        <ID>946570e-8532-4f3b-af51-9ak7f650d6c2</ID>
    </Owner>
    <AccessControlList>
        <Grant>
            <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
                <ID>946570e-8532-4f3b-af51-9ak7f650d6c2</ID>
            </Grantee>
            <Permission>FULL_CONTROL</Permission>
        </Grant>
        <Grant>
            <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
                <URI>http://acs.amazonaws.com/groups/global/AllUsers</URI>
            </Grantee>
            <Permission>READ</Permission>
        </Grant>
    </AccessControlList>
</AccessControlPolicy>

Updated on 10th September, 2024

Can’t find what you are looking for?