Memulihkan disk berdasarkan snapshot.
Deskripsi operasi
-
You can call this operation only if the associated simple application server is in the Stopped state.
-
If you restore a disk from a snapshot, the incremental data written after the snapshot was created is lost. We recommend that you back up your data before you perform this operation.
Precautions
Resetting the system or changing the image of a simple application server clears the disk data on the server. Snapshots created before the reset or change are retained but cannot be used to restore disks.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:ResetDisk |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah server aplikasi sederhana tempat snapshot dibuat. |
cn-hangzhou |
| DiskId |
string |
Yes |
ID disk yang akan dipulihkan. |
d-bp14wq0149cpp2xy**** |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| SnapshotId |
string |
Yes |
ID snapshot. |
s-bp16oazlsold4dks**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F534F |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | |
| 403 | IncorrectInstanceStatus.ResetDisk | Rolling back the disk requires the instance to operate in a stopped state. | |
| 404 | InvalidDiskId.NotFound | The specified DiskId does not exist. | |
| 404 | InvalidSnapshotId.NotFound | The specified SnapshotId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.