Understanding common Object Storage operations
Reviewed on 15 January 2025 • Published on 13 September 2018
GetServiceLink to this anchor
This operation returns a list of all buckets owned by the authenticated user that sent the request.
The operation does not list buckets created by other users, nor does it list buckets for anonymous requests.
Sample request:
GET / HTTP/1.1Host: s3.nl-ams.scw.cloudDate: Thu, 11 Apr 2019 10:16:53 GMTAuthorization: authorization string
Sample 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>'
CLI command
aws s3 ls
Was this page helpful?