Retrieves a list of system events.
Operation description
-
The required
EventTypesparameter allows you to specify one or more event types in a single request.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeHistoryEvents |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| EventTypes |
array |
Yes |
The event types. |
|
|
string |
No |
The event type. Valid values:
|
Instance:SystemFailure.Reboot |
|
| EventLevels |
array |
No |
The event levels. |
|
|
string |
No |
The event level. Valid values:
|
WARN |
|
| ResourceIds |
array |
No |
The resource IDs. |
|
|
string |
No |
The resource ID. |
i-55qi8m11rr53c4i964md8a00l |
|
| EventStatus |
array |
No |
The event statuses. |
|
|
string |
No |
The event status. Valid values:
|
Inquiring |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
5359599C-F656-57BD-8A0D-329A2FD511A6 |
| Events |
array<object> |
The list of events. |
|
|
object |
The details of an event. |
||
| EventId |
string |
The event ID. |
e-d71ff150945b9c02eb6ebc0016328468 |
| EventStatus |
string |
The event status. Valid values:
|
Inquiring |
| EventType |
string |
The event type. Valid values:
|
Instance:SystemFailure.Reboot |
| ResourceId |
string |
The ID of the associated resource. |
i-55qi8m11rr53c4i964md8a00l |
| EventLevel |
string |
The event level. Valid values:
|
WARN |
| PublishTime |
integer |
The time the event was published, represented as a Unix timestamp in milliseconds. |
1715578245000 |
| ExtendedAttribute |
string |
The extended attributes of the event, in JSON format. |
{} |
| Reason |
string |
The reason for the event. |
System policy quota is insufficient |
| NotBefore |
integer |
The scheduled execution time for the event, represented as a Unix timestamp in milliseconds. |
1715578245000 |
| PublishUtcTime |
string |
The time the event was published, in UTC format. |
|
| NotBeforeUtcTime |
string |
The scheduled execution time, in UTC format. |
|
| PageNumber |
integer |
The number of the page to return. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries that match the query. |
30 |
Examples
Success response
JSON format
{
"RequestId": "5359599C-F656-57BD-8A0D-329A2FD511A6",
"Events": [
{
"EventId": "e-d71ff150945b9c02eb6ebc0016328468",
"EventStatus": "Inquiring",
"EventType": "Instance:SystemFailure.Reboot",
"ResourceId": "i-55qi8m11rr53c4i964md8a00l",
"EventLevel": "WARN",
"PublishTime": 1715578245000,
"ExtendedAttribute": "{}",
"Reason": "System policy quota is insufficient",
"NotBefore": 1715578245000,
"PublishUtcTime": "",
"NotBeforeUtcTime": ""
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 30
}
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.