List Buckets

You can obtain the list of created buckets.

Request Syntax

GET / HTTP/1.1
Host: obs.cn-north-1.myhwclouds.com
Date: date
Authorization: authorization

Request Parameters

This request contains no parameter.

Request Headers

This request uses common headers. For details, see Common Request Headers.

Request Elements

This request contains no element.

Response Syntax

HTTP/1.1 status_code
Content-Type: type
Date: date
Content-Length: length

 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ListAllMyBucketsResult xmlns="http://obs.cn-north-1.myhwclouds.com/doc/2015-06-30/">
    <Owner>
        <ID>id</ID>
        <DisplayName>name</DisplayName>
    </Owner>
    <Buckets>
        <Bucket>
            <Name>bucketName</Name>
            <CreationDate>date</CreationDate>
        </Bucket>
        ...
    </Buckets>
</ListAllMyBucketsResult>

Response Headers

This response uses common headers. For details, see Common Response Headers.

Response Elements

This response contains a bucket list in the XML format. Table 1 describes the elements in this response.

Table 1 Response elements

Element

Description

ListAllMyBucketsResult

Indicates the bucket list.

Type: XML

Owner

Indicates the user information, including the domain ID and username.

Type: XML

ID

Indicates the domain ID.

Type: string

DisplayName

Indicates the username.

Type: string

Buckets

Indicates the buckets that a user owns.

Type: XML

Bucket

Indicates details about a bucket.

Type: XML

Name

Indicates the bucket name.

Type: string

CreationDate

Indicates the date on which a bucket was created.

Type: string

Error Responses

No special error responses are returned. For details about error responses, see Table 1.

Registration