Reboots a batch of specified resources for associated events, either immediately or at a scheduled time.
Operation description
-
This operation applies only to
Instance:SystemMaintenance.Rebootevents, which are system maintenance events that require an Instance reboot.
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 |
A list of objects, where each object specifies an Event and the associated Resource to reboot. |
|
|
object |
No |
An object that contains the details of a single Event and its associated Resource. |
||
| EventId |
string |
No |
The ID of the System Event. |
e-4452cec5a8f8eb9b2879a054207687d6 |
| ResourceId |
string |
No |
The ID of the Resource to be rebooted. |
n-54hi3ffi63zrjt4wzx9mepeyh |
| PlanTime |
integer |
No |
The scheduled execution time, specified as a Timestamp in milliseconds. This parameter is required when |
1742452232000 |
| OpsType |
string |
No |
The type of Operation. Valid values:
|
immediate |
| PlanUtcTime |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
C0003E8B-B930-4F59-ADC0-0E209A9012A8 |
| Results |
array<object> |
The results for each Operation performed on a Resource. |
|
|
object |
The result for a single Resource. |
||
| Code |
integer |
The Status Code for the Operation. A value of |
200 |
| EventId |
string |
The ID of the System Event. |
e-d71ff150945b9c02eb6ebc0016328468 |
| Message |
string |
The returned message. If the Status Code is |
success |
| ResourceId |
string |
The ID of the Resource. |
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.