list-objects

Lists objects in a bucket.

Usage

list-objects --bucket <value>

Supported Options

--bucket: Bucket name
--delimiter: Separator for object path
--prefix: Prefix of object name
--starting-token (or --marker in earlier versions of the AWS CLI): Starting point of listing (exclusive, obfuscated, could be an actual object key or a non-existent key; all listing results will be larger than this parameter)
--pages-size: Pagination size
--max-items: Total object number to retrieve for this command’s output

Example

aws s3api list-objects --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_bucket --prefix abc --starting-token abcd

Loading...