0016-00000705

Updated at:

Problem description

The XML body of the Amazon S3-compatible RestoreObject request is empty.

Causes

You sent an Amazon S3-compatible RestoreObject request without an XML body. OSS requires a valid <RestoreRequest> XML body and rejects requests that omit it.

Examples

The following request is missing the XML body, which causes an error.

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

Solutions

Include a <RestoreRequest> XML body in the request. The Days parameter specifies how long (in days) the restored object remains accessible.

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>

XML body fields:

FieldRequiredDescription
RestoreRequestYesRoot element for the restore request.
DaysYesNumber of days the restored object remains accessible.

Alternatively, use Amazon S3-compatible SDK methods to send the request. For more information, see Use Amazon S3 SDKs to access OSS.

References

RestoreObject