GetBucketACL

Prev Next

개요

제공되는 파라미터와 함께 버킷에 GET 요청을 보내면 요청한 버킷에 적용된 ACL을 조회합니다.

구문

GET https://{endpoint}/{bucket-name}?acl= # path style
GET https://{bucket-name}.{endpoint}?acl= # virtual host style

예시

요청 예시

다음은 버킷에 적용된 ACL 조회를 요청하는 예입니다.

GET /apiary?acl= HTTP/1.1
Authorization: {authorization-string}
x-amz-date: 20161011T190354Z
Host: kr.object.gov-ncloudstorage.com

응답 예시

HTTP/1.1 200 OK
Date: Wed, 5 Oct 2016 14:14:34 GMT
Accept-Ranges: bytes
x-amz-request-id: eb57e60e-d84e-4237-b18a-be9c2bb0deb8
Content-Type: application/xml
Content-Length: 550
<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Owner>
    <ID>{owner-user-id}</ID>
    <DisplayName>{owner-user-id}</DisplayName>
  </Owner>
  <AccessControlList>
    <Grant>
      <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
        <ID>{owner-user-id}</ID>
        <DisplayName>{owner-user-id}</DisplayName>
      </Grantee>
      <Permission>FULL_CONTROL</Permission>
    </Grant>
  </AccessControlList>
</AccessControlPolicy>