Restoring Data to a New Instance (a V3 API)
Function
This API is used to restore data to a new instance.
URI
POST /v3/{project_id}/instances/{instance_id}/backups/recovery
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID of a tenant in a region To obtain this value, see Obtaining a Project ID. |
| instance_id | Yes | String | DDM instance ID |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| source | Yes | RestoreInstSource object | Source instance for data restoration. |
| target | Yes | RestoreInstTarget object | Target instance for data restoration. |
| data_node_relations | Yes | Array of DataNodeRelation objects | Associated data nodes. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| restore_time | Yes | Number | Point in time to which the tables are restored. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| source_instance_id | Yes | String | Source data node ID. It can be obtained from Querying Data Nodes Associated with an Instance at a Restoration Time Point (a V3 API). |
| target_instance_id | Yes | String | Target data nodes. They can be obtained from Querying Data Nodes Available to Restore Data to a Point in Time (a V3 API). |
Response Parameters
Status code: 202
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Task ID. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code |
| error_msg | String | Error message |
Example Request
POST https://{endpoint}/v3/{project_id}/instances/{instance_id}/backups/recovery
{
"source" : {
"restore_time" : 1747732352076
},
"target" : {
"instance_id" : "2f0324a93859487eb5566d75951fcd2din09"
},
"data_node_relations" : [ {
"source_instance_id" : "f4e2949e9b9b4d60b42c89ed39bfe34cin01",
"target_instance_id" : "f4e2949e9b9b4d60b42c89ed39bfe34cin01"
} ]
} Example Response
Status code: 202
{
"job_id": "09902ee7866649b8908ec209bfee2747"
} Status code: 400
Bad request
{
"error_msg" : "Parameter error.",
"error_code" : "DBS.280001"
} Status code: 500
Server error
{
"error_msg" : "Parameter error.",
"error_code" : "DBS.280001"
} Status Codes
| Status Codes | Description |
|---|---|
| 202 | OK |
| 400 | Bad request |
| 500 | Server error |
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot