S3 · Buckets
ListBuckets
/Lists the buckets in the workspace of the key.
Returns one page of buckets, in name order. A key sees only the buckets of its own workspace.
- Role
- Viewer or higher
- Support
- Supported
- Lists the buckets in the key's workspace, in name order.
- Storage ignores
prefixandbucket-region.
Query parameters
The ContinuationToken of the previous page. Send it to get the next page.
Responses
200OK
The buckets of the workspace.
application/xml
The root element.
Owner.IDstringThe workspace ID.
Buckets.BucketarrayOne element for each bucket.
IsTruncatedbooleantrue when more buckets follow.
ContinuationTokenstringPresent when IsTruncated is true. Send it as continuation-token to get the next page.
Errors
Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.
- 403AccessDenied
The key does not have the role for this operation, or the bucket is in another workspace.
What to do: Use a key of the workspace that owns the bucket, with the role above.