All Products
Search
Document Center

WUYING Workspace:ResetSnapshot

Last Updated:Apr 03, 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 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

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.

Change history

Change timeSummary of changesOperation
No change history