You can call this operation to restore a disk from one of its snapshots.
Description
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.
Debugging
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. |
Examples
Sample requests
https://ecd.cn-hangzhou.aliyuncs.com/?Action=ResetSnapshot
&RegionId=cn-hzngahou
&SnapshotId=s-2zeipxmnhej803x7****
&<Common request parameters>
Sample success responses
XML
format
<ResetSnapshotResponse>
<RequestId>F5F82BA8-92FE-49E4-AEB9-9010CE7329F3</RequestId>
</ResetSnapshotResponse>
JSON
format
{
"RequestId":"F5F82BA8-92FE-49E4-AEB9-9010CE7329F3"
}
Error codes
For a list of error codes, visit the API Error Center.