All Products
Search
Document Center

WUYING Workspace:ResetSnapshot

Last Updated:Mar 26, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hzngahou
SnapshotIdstringYes

The ID of the snapshot.

s-2zeipxmnhej803x7****

Response parameters

ParameterTypeDescriptionExample
object

The object that is returned.

RequestIdstring

The ID of the request.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Examples

Sample success responses

JSONformat

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}

Error codes

For a list of error codes, visit the Service error codes.