Restoring a DCS Instance
Function
This API is used to restore the backup data to a specific DCS instance.
URI
POST /v2/{project_id}/instances/{instance_id}/restores
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
instance_id |
Yes |
String |
Instance ID. |
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
backup_id |
Yes |
String |
Backup ID. |
|
remark |
No |
String |
Description of DCS instance restoration. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
restore_id |
String |
ID of the restoration record. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Example Requests
Restoring the backup files of the DCS instance
POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/restores
{
"backup_id" : "8ba256cb-e5ac-44f6-a3da-c03d8f0e5029",
"remark" : "restore instance"
}
Example Responses
Status code: 200
Successful
{
"restore_id" : "a6155972-800c-4170-a479-3231e907d2f6"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Successful |
|
400 |
Invalid request. |
|
500 |
Internal service error. |
Error Codes
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