Knowledge base

Put Bucket ACL

Sets access control to an existing bucket. The user must be the bucket owner or to have been granted WRITE_ACP permission on the bucket.

PUT /?acl HTTP/1.1
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 bucket owner's ID and DisplayName.

IDstring

The bucket owner's ID.

DisplayNamestring

The bucket 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 bucket.

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?