GET Service

Returns a list of buckets. Only buckets owned by the sender of the request are included in the list.

Request syntax

GET / HTTP/1.1
Host: rs2.StorageService.com
Date: date
Authorization: signatureValue

Request headers

You can use the following request headers with the GET Service operation:
Authorization, Content-Length, Content-Type, Date, and Host.

The Authorization, Date, and Host headers are required; the others are optional.
For more information, see Request Headers.

Response headers

Response headers in a GET Service operation may include: Content-Length, Connection, Date, ETag, and Server. 

For more information, see Response Headers.

Response elements

The GET Service operation returns the following items (item datatypes in parentheses):

Examples

Request sample

The service endpoint for this sample request is demo.cloud.it:

GET / HTTP/1.1
Host: demo.cloud.it
Date: Thu, 16 Jun 2011 15:06:25 GMT
Authorization: AWS pat:rhcjIVUs1lgxPgErOA5BTR0I8Qc=
Response sample

The response lists the buckets owned by the authenticated sender.

<?xml version="1.0" encoding="UTF-8"?>.
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
   <Owner>
      <ID>3452783832C94517345278000000004000000120</ID>
      <DisplayName>Patrick</DisplayName> 
   </Owner> 
   <Buckets>
     <Bucket>
       <Name>backup</Name>
       <CreationDate>2010-07-13T14:52:20.000Z</CreationDate>
     </Bucket>
     <Bucket>
      <Name>logmx</Name>
        <CreationDate>2011-06-14T17:16:29.000Z</CreationDate>
     </Bucket>
   </Buckets>
</ListAllMyBucketsResult>