Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: chenjunjie <chenjunjie@huawei.com> Co-committed-by: chenjunjie <chenjunjie@huawei.com>
10 KiB
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 |
Error message. |
error_code |
String |
Error code. |
error_ext_msg |
String |
Extended error information. This parameter is not used currently and is set to null. |
Status code: 500
Parameter |
Type |
Description |
|---|---|---|
error_msg |
String |
Error message. |
error_code |
String |
Error code. |
error_ext_msg |
String |
Extended error information. This parameter is not used currently and is set to null. |
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
Instance restored successfully.
{
"restore_id" : "a6155972-800c-4170-a479-3231e907d2f6"
}
Status Codes
Status Code |
Description |
|---|---|
200 |
Instance restored successfully. |
400 |
Invalid request. |
500 |
Internal service error. |
Error Codes
See Error Codes.
