CDN加速

RestoreObject

更新时间:2021-08-18 17:35:36

RestoreObject

解冻归档文件,解冻成功后支持直接访问。需要IAM wos:RestoreObject权限。

请求语法

POST /ObjectName?restore HTTP/1
Host: Bucket.Endpoint
Date: date
Authorization: authorization

<RestoreRequest>
   <Days>2</Days>
</RestoreRequest>

URI请求参数

请求头部

使用公共请求头部

请求主体

请求主体为如下的xml信息

参数 是否必填 说明
RestoreRequest xml节点
Days 解冻后文件有效期,最小为1天。

响应语法

HTTP/1.1 status_code

x-amz-request-id: request id
Content-Type: type
Date: date
Content-Length: length
Last-Modified: time
Server: WS-web-server

响应头部

使用公共响应头部

响应元素

示例

POST /objectName?restore HTTP/1.1

User-Agent: Jakarta Commons-HttpClient/1
Host: bucket.s3-cn-east-1.wcsapi.com
Accept: */*
Date: Sat, 03 Dec 2011 09:17:57 +0000
Authorization: WOS BF6C09F302931425E9A7:++6NkzwVhw4qccNfIqf4G2vMggg=
<RestoreRequest>
   <Days>2</Days>
</RestoreRequest>


HTTP/1.1 200 OK

x-amz-request-id: 001B21A61C6C0000013403373811529D
Last-Modified: Sat, 03 Dec 2011 08:47:50 GMT
Content-Length: 30
Content-Type: binary/octet-stream
Date: Sat, 03 Dec 2011 09:17:57 GMT
Server: WS-web-server