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 number of days that is required to restore an Archive object. Valid values: 1 to 7. Unit: days.
Examples
In the following RestoreObject request, the value of the Days parameter in the XML body is a, which is invalid. As a result, an error is reported.
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>a</Days>
</RestoreRequest>
Solutions
Make sure that the value of the Days parameter in the RestoreObject request XML is an integer between 1 and 7.
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>
</RestoreRequest>