listBuckets method
Written by
Updated at January 17, 2023
Returns a list of buckets available to the user.
Request
GET / HTTP/2
Headers
Use only common request headers in requests.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.
A successful response contains additional data in XML format with the schema described below.
Data schema
<ListAllMyBucketsResult>
<Buckets>
<Bucket>
<Name>bucket-name</Name>
<CreationDate>date_time</CreationDate>
</Bucket>
...
</Buckets>
</ListAllMyBucketsResult>
Element | Description |
---|---|
Bucket |
Contains a bucket description. Path: /ListAllMyBucketsResult/Buckets/Bucket . |
Buckets |
Contains a list of buckets. Path: /ListAllMyBucketsResult/Buckets . |
CreationDate |
Bucket creation time in the format yyyy-mm-ddThh:mm:ss.timezone .Path: /ListAllMyBucketsResult/Buckets/Bucket/CreationDate . |
ListAllMyBucketsResult |
Root element of a response. Path: /ListAllMyBucketsResult . |
Name |
Bucket name. Path: /ListAllMyBucketsResult/Buckets/Bucket/Name . |