Batch restarts specified resources immediately or at a scheduled time.
Operation description
This O&M operation currently supports only the following event type: Instance:SystemMaintenance.Reboot (instance restart due to system maintenance).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:BatchEventRebootInstance |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EventInfos |
array<object> |
No |
The list of events. |
|
|
object |
No |
The event. |
||
| EventId |
string |
No |
The system event ID. |
e-4452cec5a8f8eb9b2879a054207687d6 |
| ResourceId |
string |
No |
The resource ID. |
n-54hi3ffi63zrjt4wzx9mepeyh |
| PlanTime |
integer |
No |
The scheduled execution time. The value is a timestamp in milliseconds. This parameter is required when OpsType is set to scheduled. |
1742452232000 |
| OpsType |
string |
No |
The O&M task type. Valid values:
|
immediate |
| PlanUtcTime |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response。 |
||
| RequestId |
string |
Id of the request。 |
C0003E8B-B930-4F59-ADC0-0E209A9012A8 |
| Results |
array<object> |
The results. |
|
|
object |
The results. |
||
| Code |
integer |
The status code. |
200 |
| EventId |
string |
The system event ID. |
e-d71ff150945b9c02eb6ebc0016328468 |
| Message |
string |
The operation message. When code is 200, the message is successful. |
success |
| ResourceId |
string |
The resource ID. |
i-55qi8m11rr53c4i964md8a00l |
Examples
Success response
JSON format
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8",
"Results": [
{
"Code": 200,
"EventId": "e-d71ff150945b9c02eb6ebc0016328468",
"Message": "success",
"ResourceId": "i-55qi8m11rr53c4i964md8a00l\n"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.