This API is used to roll back a snapshot to an EVS disk.
Parameter |
Mandatory |
Description |
|---|---|---|
project_id |
Yes |
The project ID. |
snapshot_id |
Yes |
The snapshot ID. |
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
rollback |
Object |
Yes |
The snapshot rollback information. For details, see Parameters in the rollback field. |
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
volume_id |
String |
Yes |
The ID of the target disk. |
name |
String |
No |
The name of the target disk. The value can contain a maximum of 255 bytes. NOTE:
Parameter name cannot be used independently. When name is going to be used, volume_id must also be specified. |
{
"rollback": {
"name": "test-001",
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635"
}
}
Parameter |
Type |
Description |
|---|---|---|
rollback |
Object |
The snapshot rollback information. For details, see Parameter in the rollback field. |
error |
Object |
The error message returned if an error occurs. For details, see Parameters in the error field. |
Parameter |
Type |
Description |
|---|---|---|
volume_id |
String |
The ID of the target disk that the snapshot data rolled back to. |
Parameter |
Type |
Description |
|---|---|---|
message |
String |
The error message returned if an error occurs. |
code |
String |
The error code returned if an error occurs. For details about the error code, see Error Codes. |
{
"rollback": {
"volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635"
}
}
or
{
"error": {
"message": "XXXX",
"code": "XXX"
}
}
In the preceding example, error indicates a general error, for example, badRequest or itemNotFound. An example is provided as follows:
{
"badRequest": {
"message": "XXXX",
"code": "XXX"
}
}
For details, see Error Codes.