Roll back Disk
Describe
Rolls back the contents of the disk using a snapshot of the specified disk itself.
This action can only be performed if the instance state must be Stopped.
The disk status must be in use (In_use) in order to perform this operation.
The specified Snapshotid must be a snapshot created by DiskId or an error.
The operationlocks of the instance is marked with the lock state of "Lockreason": "Security", an error is given.
Request parameters
| name |
type |
whether you must |
Description |
| Action |
String |
Is |
System specified parameters, values: Resetdisk |
| DiskId |
String |
Is |
The specified disk device ID |
| Snapshotid |
String |
Is |
Recovery Disk's Snapshot ID |
return parameters
All public return parameters, as detailed in the public return parameters
Error code
| Error code |
Description |
Http Status Code |
Semantics |
| Missingparameter |
The input parameter "DiskId" is mandatory to processing this request isn't supplied. |
400 |
DiskId parameter not specified |
| Missingparameter |
The input parameter "Snapshotid" is mandatory to processing this request isn't supplied. |
400 |
Snapshotid parameter not specified |
| Invaliddiskid.notfound |
The specified disk does not exist. |
404 |
The specified disk does not exist |
| Invalidsnapshotid.notfound |
The specified snapshot does not exist. |
404 |
The specified snapshot does not exist |
| Incorrectdiskstatus |
The current disk status is does not support this operation. |
403 |
Disk status is not correct |
| Incorrectinstancestatus |
The current status of the resource does is not support this operation. |
403 |
The specified instance state is not correct |
| Instancelockedforsecurity |
The instance is locked due to security. |
403 |
The specified instance is securely locked |
| Invalidparameter.mismatch |
The specified snapshot isn't created from the specified disk. |
403 |
The specified snapshot is not created from the specified disk |
| Invalidsnapshot.tooold |
The Snapshotid is created before 2013-07-15 and it cannot be restored since the "the" "the" ". |
403 |
Cannot rollback disk until the specified snapshot was created on July 15, 2013 (included) |
| Instanceexpiredorinarrears |
The specified operation is denied as your prepay instance are expired (prepay mode) or in arrears (Afterpay mode). |
403 |
The source snapshot for the specified disk has been deleted and cannot be reinitialized |
| Operationdenied |
The specified snapshot Dees not support Resetdisk. |
403 |
The specified snapshot cannot be used for rollback |
| Invalidsnapshotid.notready |
The specified snapshot has not completed yet. |
403 |
The specified snapshot is not complete |
Example
Request sample
Https://ecs.aliyuncs.com/?Action=ResetDisk
&diskid= d-23jbf2v5m
&snapshotid=s-snapshot1
&< Public Request Parameters >
Return sample
XML format
F3cd6886-d8d0-4fee-b93e-1b73239673de
JSON format
{
"RequestID": "F3cd6886-d8d0-4fee-b93e-1b73239673de"
}