最近更新时间:2022-01-18
使用RestoreObject接口将已经归档的对象进行恢复解冻,使其可以被获取。如果在对象解冻后对对象进行追加或是更新等操作,需要重新解冻对象。
POST /{object}?restore&VersionId=VersionId HTTP/1.1 Host: Bucket.region.unicloudsrv.com Authorization: authorization string <?xml version="1.0" encoding="UTF-8"?> <RestoreRequest xmlns="http://s3.unicloud.com/doc/2006-03-01/"> <Days>integer</Days> <GlacierJobParameters> <Tier>string</Tier> </GlacierJobParameters> </RestoreRequest> |
参数 | 描述 | 是否必填 |
VersionId | 待取回归档存储对象的版本号。类型:string | 选填参数,可为空 |
名称 | 描述 | 是否必填 |
RestoreRequest | 取回信息的结构体,类型:struct | 是 |
Days | 取回对象的保存时间,最小值为1,最大值为30。类型: integer | 是 |
GlacierJobParameters | 取回选项的容器,类型:struct | 否 |
Tier | 取回选项,目前仅支持一种取值:[Expedited],类型:string | 否 |
POST /test.txt?restore&VersionId= HTTP/1.1 Host: examplebucket.region.unicloudsrv.com Date: Mon, 22 Oct 2012 01:49:52 GMT Authorization: authorization string Content-Length: content length <RestoreRequest> <Days>2</Days> <GlacierJobParameters> <Tier>Expedited</Tier> </GlacierJobParameters> </RestoreRequest> |
HTTP/1.1 202 Accepted x-amz-id-2: x-amz-request-id: Date: Sat, 20 Oct 2012 23:54:05 GMT Content-Length: 0 Server: Caddy |