S3 Object Storage - Common Operations

Object Storage - Common Operations

GET Service

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

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

Example Request

GET / HTTP/1.1
Host: s3.nl-ams.scw.cloud
Date: Thu, 11 Apr 2019 10:16:53 GMT
Authorization: authorization string

Example Response


<?xml version='1.0' encoding='UTF-8'?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Owner>
    <ID>04dcf44f-a6ca-4e69-a74c-f0c557d87d79:04dcf44f-a6ca-4e69-a74c-f0c557d87d79</ID>
    <DisplayName>04dcf44f-a6ca-4e69-a74c-f0c557d87d79:04dcf44f-a6ca-4e69-a74c-f0c557d87d79</DisplayName>
  </Owner>
  <Buckets>
    <Bucket>
      <Name>myfirstbucket</Name>
      <CreationDate>2018-09-12T11:54:02.000Z</CreationDate>
    </Bucket>
    <Bucket>
      <Name>myotherbucket</Name><CreationDate>2019-04-11T10:10:17.000Z</CreationDate>
    </Bucket>
  </Buckets>
</ListAllMyBucketsResult>'

Note: You can also use aws s3 ls with the command line tools to get a listing of your buckets.

Generating the Authorization String

You can generate the authorization string, following the authorization string procedure.


Discover the Cloud That Makes Sense