Product tutorials, how-tos, and fully-documented APIs.

RiakCS GET Service

    The GET Service operation returns a list of all buckets owned by the authenticated user who sent sent the request.

    Note: The GET Service operation doesn't list buckets created by other users. It also doesn't list buckets for anonymous requests.

    Requests

    Request Syntax

    GET / HTTP/1.1
    Host: data.basho.com
    Date: date
    Authorization: signature_value
    

    Response Elements

    Bucket - Container for bucket information.

    Buckets - Container for one or more buckets.

    CreationDate - Date the bucket was created.

    DisplayName - Bucket owner's display name.

    ID - Bucket owner's user ID.

    ListAllMyBucketsResult - Container for response.

    Name - Bucket's name.

    Owner - Container for bucket owner information.

    Examples

    Sample Request

    The GET operation on the Service endpoint (data.basho.com in this example) returns a list of all of the buckets owned by the authenticated sender of the request.

    Host: data.basho.com
    Date: Wed, 06 Jun 2012 20:47:15 +0000
    Authorization: AWS QMUG3D7KP5OQZRDSQWB6:4Pb+A0YT4FhZYeqMdDhYls9f9AM=
    

    Sample Response

      <?xml version="1.0" encoding="UTF-8"?>
      <ListAllMyBucketsResult xmlns="http://data.basho.com/2012-06-12">
        <Owner>
          <ID>324ABC0713CD0B420EFC086821BFAE7ED81442C</ID>
          <DisplayName>"foobar</DisplayName>
        </Owner>
        <Buckets>
          <Bucket>
            <Name>projects</Name>
            <CreationDate>2011-05-10T14:10:15.000Z</CreationDate>
          </Bucket>
          <Bucket>
            <Name>templates</Name>
            <CreationDate>2011-05-10T14:18:25.000Z</CreationDate>
          </Bucket>
        </Buckets>
      </ListAllMyBucketsResult>