All Products
Search
Document Center

Object Storage Service:0016-00000704

Last Updated:Apr 29, 2024

Problem description

The value of the Days parameter in the XML body of the RestoreObject request is invalid.

Causes

You initiated a RestoreObject request, but the value of the Days parameter in the XML body is invalid. The Days parameter specifies the duration of the restored state for Cold Archive or Deep Cold Archive objects. Valid values: 1 to 365. Unit: days.

Examples

The value of the Days parameter in the XML body of the following RestoreObject request is -1, which is invalid. As a result, a request error occurs.

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>-1</Days>
  <JobParameters>
    <Tier>Standard</Tier>
  </JobParameters>
</RestoreRequest>

Solutions

Make sure that the value of the Days parameter in the XML body of the RestoreObject request is an integer that ranges from 1 to 365.

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>Standard</Tier>
  </JobParameters>
</RestoreRequest>

References

RestoreObject