Amazon also calls them "storage classes". Will call it "s3 storage class" here.
Can do PutObject directly to Glacier or you can use CopyObject to change the s3 storage class of an existing object from "standard" to "glacier". (The docs are unclear but I guess you copy the object to itself?)
Objects in Glacier do appear in index listing. Listing includes s3 storage class for each object.
Returns a 403 error if you try GetObject on an archived object.
Use RestoreObject to make it available for GetObject on a temporary basis (you specify number of days in the request). The s3 storage class of the object is still "glacier".
A successful [RestoreObject] operation returns either the 200 OK or 202 Accepted status code.
If the object copy is not previously restored, then Amazon S3 returns 202 Accepted in the response.
If the object copy is previously restored, Amazon S3 returns 200 OK in the response.
GetObject/HeadObject include restore status in "x-amz-restore" response header. Does not appear that listing includes restore status.
Unclear from documentation if you can use CopyObject to change the s3 storage class back to "standard" after being restored.
Use S3 Batch operation to operate on many objects at once.
Updated by Nico César over 2 years ago · 6 revisions