Rolling Back a Snapshot to an EVS Disk (Deprecated)
Function
This API is used to roll back a snapshot to an EVS disk.
This API has been deprecated. Use another API. For details, see Rolling Back a Snapshot to an EVS Disk.
Constraints
- When you roll back a snapshot to a disk, you can only roll back the snapshot to the source disk. Rollback to a specified disk is not supported.
- You can roll back a disk from a snapshot only when the disk is in the available or error_rollbacking state.
- Snapshots whose names started with prefix autobk_snapshot_ are automatically created by the system during backup creations. Do not use these snapshots to roll back the disk data.
URI
- Parameter description
Parameter
Mandatory
Description
project_id
Yes
Specifies the project ID.
For details about how to obtain the project ID, see Obtaining a Project ID.
snapshot_id
Yes
Specifies the snapshot ID.
Request
- Parameter description
Parameter
Type
Mandatory
Description
rollback
Object
Yes
Specifies the snapshot rollback information. For details, see Parameters in the rollback field.
- Parameters in the rollback field
Parameter
Type
Mandatory
Description
volume_id
String
Yes
Specifies the ID of the target disk.
To obtain the ID of the target disk, see the volume_id value in the response of Querying Details About an EVS Snapshot.
name
String
No
Specifies the name of the target disk. The value can contain a maximum of 255 bytes.
To obtain the name of the target disk, see the name value in the response of Querying Details About an EVS Disk (Deprecated).
NOTE:Parameter name cannot be used independently. When name is going to be used, volume_id must also be specified.
- Example request
{ "rollback": { "name": "test-001", "volume_id": "5aa119a8-d25b-45a7-8d1b-88e127885635" } }
Response
- Parameter description
Parameter
Type
Description
rollback
Object
Specifies the snapshot rollback information. For details, see Parameter in the rollback field.
error
Object
Specifies the error message returned when an error occurs. For details, see Parameters in the error field.
- Parameter in the rollback field
Parameter
Type
Description
volume_id
String
Specifies the ID of the target disk.
- Parameters in the error field
Parameter
Type
Description
message
String
Specifies the error message returned when an error occurs.
code
String
Specifies the error code returned when an error occurs.
For details about the error code, see Error Codes.
- Example response
{ "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" } }
Error Codes
For details, see Error Codes.
Last Article: Querying Details About EVS Snapshots
Next Article: EVS Tag
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.