Merestart batch Sumber daya tertentu secara langsung atau pada pengatur waktu terjadwal dengan mengirimkan event.
Deskripsi operasi
Operasi O&M ini saat ini hanya mendukung tipe event berikut: Instance:SystemMaintenance.Reboot (restart instans karena pemeliharaan sistem).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:BatchEventRebootInstance |
none |
*全部资源
|
None | None |
Sintaks permintaan
POST / HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EventInfos |
array<object> |
No |
Daftar event. |
|
|
object |
No |
Event. |
||
| EventId |
string |
No |
ID event sistem. |
e-4452cec5a8f8eb9b2879a054207687d6 |
| ResourceId |
string |
No |
ID Sumber daya. |
n-54hi3ffi63zrjt4wzx9mepeyh |
| PlanTime |
integer |
No |
Pengatur waktu eksekusi terjadwal. Nilai berupa timestamp dalam milidetik. Parameter ini wajib diisi ketika OpsType diatur ke scheduled. |
1742452232000 |
| OpsType |
string |
No |
Tipe tugas O&M. Nilai valid:
|
immediate |
| PlanUtcTime |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
C0003E8B-B930-4F59-ADC0-0E209A9012A8 |
| Results |
array<object> |
Hasil. |
|
|
object |
Hasil. |
||
| Code |
integer |
Kode status. |
200 |
| EventId |
string |
ID event sistem. |
e-d71ff150945b9c02eb6ebc0016328468 |
| Message |
string |
Paket operasi. Jika kode adalah 200, Paket menunjukkan keberhasilan. |
success |
| ResourceId |
string |
ID Sumber daya. |
i-55qi8m11rr53c4i964md8a00l |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8",
"Results": [
{
"Code": 200,
"EventId": "e-d71ff150945b9c02eb6ebc0016328468",
"Message": "success",
"ResourceId": "i-55qi8m11rr53c4i964md8a00l\n"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 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.