Memanggil ResetDisk untuk mengembalikan snapshot.
Deskripsi operasi
Saat memanggil antarmuka ini, Anda perlu memperhatikan hal-hal berikut:
Status disk cloud harus dalam kondisi Digunakan (In_Use) atau Tersedia (Available).
Status instance tempat disk cloud terpasang harus Dihentikan (Stopped). Anda dapat memanggil StopInstance untuk menghentikan instance.
Parameter SnapshotId yang ditentukan harus berupa snapshot historis yang dibuat oleh DiskId.
Saat mengkueri informasi instance ENS melalui DescribeInstances, jika data yang dikembalikan berisi
{"OperationLocks": {"LockReason" : "security"}}, maka semua operasi dilarang.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ResetDisk |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DiskId |
string |
Yes |
ID disk cloud dari data yang akan dikembalikan. |
d-bp199lyny9b3**** |
| SnapshotId |
string |
Yes |
ID snapshot historis yang perlu dipulihkan ke tahap disk cloud tertentu. |
sp-bp199lyny9b3**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
ID permintaan. |
C0003E8B-B930-4F59-ADC0-0E209A9012A8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | The input parameter instancdId that is not found. | |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | |
| 400 | IncorrectStatus.Disk | The status of the disk is incorrect. | |
| 400 | DISK_SNAPSHOT_STATUS_NOT_MATCH | Snapshot status mismatch. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.