head_object request on S3 object after restore still shows old storage class

0

I'm trying to dynamically determine the storage class of an object that was restored from GLACIER to STANDARD. But when i make this request from boto3's head_object i still keep getting the old storage class of the object. I've verified the restore completion from the url (version:null)

1 個回答
0

When you restore an object to from Glacier Flexible Retrieval (GFC) or Glacier Deep Archive (GDA) to S3 Standard, a temporary copy is stored in S3 standard and will remain there for the number of days you specified when you restored the object. The storage class will remain in Glacier, but will be made available for you to GET as you would any other S3 object. To determine if an object stored is available for GET using the S3 api, you can use the head-object api call which will tell you if the restore is on-going and when the restored object will expire out of S3 Standard. If there is no expiry time, the object must first be restored.

Restoring an archived object

profile pictureAWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南