| Did this page help you? Yes No Tell us about it... |
To list all of the versions of all of the objects in a bucket, you use the versions sub-resource in a GET Bucket request.
Amazon S3 can only retrieve a maximum of 1000 objects, and each object version counts
fully as an object. Therefore, if a bucket contains two keys (e.g. photo.gif
and picture.jpg), and the first key has 990 versions and
the second key has 400 versions; a single request would retrieve all 990 versions of
photo.gif and only the most recent 10 versions of picture.jpg.
Amazon S3 returns object versions in the order in which they were stored, with the most recently stored returned first.
To list all object versions in a bucket
In a GET Bucket request, include the versions sub-resource.
GET /?versions HTTP/1.1 Host:bucketName.s3.amazonaws.com Date: Wed, 28 Oct 2009 22:32:00 +0000 Authorization: AWS02236Q3V0WHVSRW0EXG2:0RQf4/cRonhpaBX5sCYVf1bNRuU=