aldy120 / s3-note

Note for Amazon S3
0 stars 0 forks source link

ListObjectV2 #11

Open aldy120 opened 4 years ago

aldy120 commented 4 years ago

ListObjectV2

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.