Returns some or all (up to 1,000) of the objects in a bucket.
A 200 OK response can contain valid or invalid XML.
To use this operation, you must have READ access to the bucket.
Request
GET /?list-type=2&ContinuationToken=ContinuationToken&Delimiter=Delimiter&EncodingType=EncodingType&FetchOwner=FetchOwner&MaxKeys=MaxKeys&Prefix=Prefix&StartAfter=StartAfter HTTP/1.1
Host: Bucket.s3.amazonaws.com
x-amz-request-payer: RequestPayer
continuation-token
A token for paging.
delimiter
A delimiter to group keys together.
fetch-owner
The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true.
start after
StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket.
Response
CommonPrefixes
when you specify prefix, the objects with same prefix collapse to a single CommonPrefixes element.
ListObjectV2
Request
continuation-token
A token for paging.delimiter
A delimiter to group keys together.fetch-owner
The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true.start after
StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key. StartAfter can be any key in the bucket.Response
CommonPrefixes
when you specify prefix, the objects with same prefix collapse to a single CommonPrefixes element.