Skip to content

/AWS1/CL_S3=>LISTBUCKETS()

About ListBuckets

This operation is not supported by directory buckets.

Returns a list of all buckets owned by the authenticated sender of the request. To use this operation, you must have the s3:ListAllMyBuckets permission.

For information about Amazon S3 buckets, see Creating, configuring, and working with Amazon S3 buckets.

Method Signature

IMPORTING

Optional arguments:

IV_MAXBUCKETS TYPE /AWS1/S3_MAXBUCKETS /AWS1/S3_MAXBUCKETS

Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response.

IV_CONTINUATIONTOKEN TYPE /AWS1/S3_TOKEN /AWS1/S3_TOKEN

ContinuationToken indicates to Amazon S3 that the list is being continued on this bucket with a token. ContinuationToken is obfuscated and is not a real key. You can use this ContinuationToken for pagination of the list results.

Length Constraints: Minimum length of 0. Maximum length of 1024.

Required: No.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_S3_LISTBUCKETSOUTPUT /AWS1/CL_S3_LISTBUCKETSOUTPUT