You can call this operation to restore a disk from one of its snapshots.


Before you call this operation, make sure that the following operations are performed:

  • The data that you want to retain in the disk is backed up.
    Note The disk restoration operation is irreversible. After you call this operation for a disk, the disk is restored to the state it was in when the snapshot was created, and you lose all the data changes that occurred between the time when the snapshot was created and the time when the disk is restored. Make sure that data is backed up before you restore the disk.
  • The cloud desktop whose disk you want to restore is stopped.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ResetSnapshot

The operation that you want to perform. Set the value to ResetSnapshot.

RegionId String Yes cn-hzngahou

The ID of the region.

SnapshotId String Yes s-2zeipxmnhej803x7****

The ID of the snapshot to be used to restore the disk.

Response parameters

Parameter Type Example Description
RequestId String F5F82BA8-92FE-49E4-AEB9-9010CE7329F3

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.