Restores the data of a disk from a snapshot.
Operation 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 restore data on a disk, the disk is restored to the status at the point in time when the snapshot was created. Data that is generated between the snapshot creation time and the current time is lost. Before you restore a disk from a snapshot, make sure that you back up important data.
-
The cloud desktop whose disk you want to restore is stopped.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region. | cn-hzngahou |
SnapshotId | string | Yes | The ID of the snapshot. | s-2zeipxmnhej803x7**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
For a list of error codes, visit the Service error codes.