Torch Object Storage
Call the RestoreObject interface to restore objects stored in Archive, Cold Archive, and Deep Cold Archive storage classes.
warning
Currently, only extending the copy's validity period is supported; shortening is not supported.
POST /objectname?restore Host: bucketname.tos-cn-beijing.volces.com Date: Mon, 18 Mar 2019 08:25:17 GMT Authorization: SignatureValue
This request uses the public request header, see Common parameters.
| Name | Location | Type | Required | Sample Value | Description |
|---|---|---|---|---|---|
| restore | Query | String | Yes | - | Represents the special identifier for the RestoreObject request. |
| versionId | Query | String | No | 570773C5A7847849299D | Object version number. Specify the version to restore the object. |
| Name | Type | Required | Sample Value | Description |
|---|---|---|---|---|
Days | Integer | Yes | 10 | The number of days to restore the object. Range is 1 to 365. |
| RestoreJobParameters | Object | No | - | Restore priority information. |
Tier | String | No | Standard | Restore priority. The parent node is RestoreJobParameters.
Standard has different recovery priority meanings for archive storage, cold archive, and deep cold archive objects, explained as follows:
If RestoreJobParameters is not set, it defaults to Standard retrieval mode. |
This request returns public response message headers. See Common Parameters.
There is no message element in this request response.
Restore objects in archive storage, cold archive, or deep cold archive.
POST /objectname?restore Host: examplebucket.tos.cn-beijing.com Date: Mon, 18 Mar 2019 08:25:17 GMT Authorization: SignatureValue { "Days": 10 }
Restore archived, cold archived, or deep cold archived objects of a specified version.
POST /objectname?restore&versionId=*** Host: examplebucket.tos.cn-beijing.com Date: Mon, 18 Mar 2019 08:25:17 GMT Authorization: SignatureValue { "Days": 10, "RestoreJobParameters": { "Tier": "Standard" } }
Extend the expiration time of the copy of archive storage, cold archive, or deep cold archive objects.
POST /objectname?restore Host: examplebucket.tos.cn-beijing.com Date: Mon, 18 Mar 2019 08:25:17 GMT Authorization: SignatureValue { "Days": 12 }
First restore archive storage, cold archive, or deep cold archive objects.
HTTP/1.1 202 Accepted x-tos-id-2: 5726ce090a2d002d-a444ed0 x-tos-request-id: 5726ce090a2d002d-a444ed0 Date: Fri, 30 Jul 2021 08:05:36 GMT server: TosServer Content-Length: 0
Restore objects in archive storage, cold archive, or deep cold archive that are already in recovery status again.
HTTP/1.1 409 Conflict x-tos-id-2: 5726ce090a2d002d-a444ed0 x-tos-request-id: 5726ce090a2d002d-a444ed0 Date: Fri, 30 Jul 2021 08:05:36 GMT server: TosServer Content-Length: 0 { "Code": "RestoreAlreadyInProgress", "RequestId": "23480125cb6573606625cb65-ac1a6118-1ryjQL-RO-cb-1AZ-F-LFRZ-B-K2-1", "HostId": "jONFHoplLHsdsOxAENiZdsWlVlti****", "Message": "Object restore is already in progress", "EC": "0017-00000507" }
Extend the retention period of replicas for archive storage, cold archive, or deep cold archive objects that are in a restoration completed state.
HTTP/1.1 200 OK x-tos-id-2: 5726ce090a2d002d-a444ed0 x-tos-request-id: 5726ce090a2d002d-a444ed0 Date: Fri, 30 Jul 2021 08:05:36 GMT server: TosServer Content-Length: 0