ListBuckets

Prev Next

Available in Classic and VPC

Return a list of Object Storage buckets that belong to the account of the user who sent the request. No request path parameter or request body is used in the operation.

Requests

The following describes the request format for the endpoint. The request format is as follows.

Method URI
GET -

Request headers

For headers common to all Object Storage APIs, see Object Storage common headers.

Request example

The following is a sample request.

GET / HTTP/1.1
Content-Type: text/plain
Host: kr.object.ncloudstorage.com
X-amz-date: {Timestamp}
Authorization: {authorization-string}

Responses

The following describes the response format.

Response headers

For response headers common to all Object Storage APIs, see Object Storage common response headers.

Response status codes

For response status codes common to all Object Storage APIs, see Object Storage response status codes.

Response example

The following is a sample response.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <Owner>
        <ID>string</ID>
        <DisplayName>string</DisplayName>
    </Owner>
    <Buckets>
        <Bucket>
            <Name>string</Name>
            <CreationDate>string</CreationDate>
        </Bucket>
        <Bucket>
            <Name>string</Name>
            <CreationDate>string</CreationDate>
        </Bucket>
        <Bucket>
            <Name>string</Name>
            <CreationDate>string</CreationDate>
        </Bucket>
    </Buckets>
</ListAllMyBucketsResult>