All Products
Search
Document Center

Object Storage Service:0016-00000715

Last Updated:Apr 28, 2024

Problem description

When you initiate a RestoreObject request for an object that is in the restoring state, you cannot decrease the restoration priority.

Causes

You initiated a RestoreObject request for a Cold Archive object that is in the restoring state. When you change the restoration priority of the object that is in the restoring state and the specified restoration priority is lower than the current priority, an error is returned.

The restoration priority is specified by using the Tier parameter. The time required to restore a Cold Archive object to the readable state is determined based on the restoration priority of the object:

  • Expedited: The object is restored within one hour.

  • Standard: The object is restored within two to five hours. If the JobParameters parameter is not passed in, the default restoration priority is Standard.

  • Bulk: The object is restored within five to twelve hours.

When you change the priority of an ongoing restoration task, you can only increase the restoration priority of the task. You cannot decrease the restoration priority of the task. Example: If the priority of the restoration task is Standard, and you want to change the priority of the task, you can change the priority only to Expedited.

Examples

You initiated the following RestoreObject request:

POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
<RestoreRequest>
  <Days>2</Days>
  <JobParameters>
    <Tier>Standard</Tier>
  </JobParameters>
</RestoreRequest>

The following request is initiated when the restoration task is not complete.

POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
<RestoreRequest>
  <Days>2</Days>
  <JobParameters>
    <Tier>Bulk</Tier>
  </JobParameters>
</RestoreRequest>

The restoration priority specified in the second request is Bulk, which is lower than Standard specified in the first request. As a result, an error is returned.

Solutions

Make sure that the priority specified by using the Tier parameter in the XML body of the RestoreObject request is higher than the current restoration priority.

POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
<RestoreRequest>
  <Days>2</Days>
  <JobParameters>
    <Tier>Expedited</Tier>
  </JobParameters>
</RestoreRequest>

References

RestoreObject