Merestart sebuah instance.
Deskripsi operasi
Hanya instance yang berstatus Running yang dapat direstart.
Jika operasi berhasil, status instance akan berubah menjadi Starting.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:RebootInstance |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans yang ingin Anda reboot. Anda hanya dapat menentukan satu ID instans. |
i-instanceid**** |
| ForceStop |
string |
No |
Menentukan apakah instans akan dihentikan secara paksa sebelum direstart.
|
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode layanan yang dikembalikan. Nilai 0 menunjukkan bahwa permintaan berhasil. |
0 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | |
| 400 | NoPermission | Permission denied. | |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | |
| 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.