Home > Article > Operation and Maintenance > How to roll back to a certain stage of the disk state using historical snapshots of the disk
The content of this article is about how to roll back the historical snapshot of the disk to a certain stage of the disk state. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .
ResetDisk
Description
When calling this interface, you need to pay attention to:
The status of the disk must be In_Use.
The status of the disk-mounted instance must be Stopped.
The specified parameter SnapshotId must be a historical snapshot created by DiskId.
The OperationLocks of the ECS instance controlled by security cannot be marked as "LockReason": "security".
Request parameters
##Return parameters
are all public return parameters. See Public ParametersExample
Request Example
https://ecs.aliyuncs.com/?Action=ResetDisk &DiskId=d-23jbf2v5m &SnapshotId=s-snapshot1 &<公共请求参数>
Return Example
XML format
<ResetDiskResponse> <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId> </ResetDiskResponse>
JSON format
{ "RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to roll back to a certain stage of the disk state using historical snapshots of the disk. For more information, please follow other related articles on the PHP Chinese website!