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 is backed up.
Note The disk restoration operation is irreversible. After you call this operation, 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 the disk based on the snapshot, make sure that you back up data. -
The cloud computer to which the disk belongs 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.
Change history
Change time | Summary of changes | Operation |
---|
No change history