Recovers disk data from a snapshot.
Operation description
When calling this interface, ensure the following:
You must back up any data on the disk that you want to save.
NoteData recovery is an irreversible operation. After you call this interface, the disk will revert to its state at the time the snapshot was created. Any data created between the snapshot creation time and the current time will be lost. Therefore, back up important data.
You must shut down the cloud computer to which the disk belongs.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ecd:ResetSnapshot | update | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The region ID. | cn-hzngahou |
SnapshotId | string | Yes | The ID of the snapshot used to recover disk data. | s-2zeipxmnhej803x7**** |
StopDesktop | boolean | No | Indicates whether to shut down and recover the disk using the snapshot. |
Response elements
Element | Type | Description | Example |
object | The response elements. | ||
RequestId | string | The request ID. | 1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.