Skip to main content

list-objects-v2

The aws s3api list-objects-v2 command is used for listing all the objects in an Astran S3 bucket using the version 2 listing type. It is more efficient and provides additional features compared to list-objects.

aws s3api list-objects-v2 --bucket BUCKET_NAME

This command will list all the objects in the specified S3 bucket using the version 2 listing type.

Syntax

aws s3api list-objects-v2 \
--bucket BUCKET_NAME

Options

  • --bucket: Specifies the Astran S3 bucket name for which objects are to be listed.

See also the original AWS documentation.