Retrieves all events in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeEventsForRegion |
list |
*All Resource
|
None | None |
Request syntax
GET /regions/{region_id}/events HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region_id |
string |
Yes |
The region ID. |
cn-hangzhou |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
The cluster ID. |
cf62854ac2130470897be7a27ed1f**** |
| page_size |
integer |
No |
The number of entries to return per page. Valid values: 1 to 100. Default value: 50. |
50 |
| page_number |
integer |
No |
The page number. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| events |
array<object> |
A list of event objects. |
|
|
array<object> |
An event object. |
||
| event_id |
string |
The event ID. |
e-9ad04f72-8ee7-46bf-a02c-e4a06b39**** |
| type |
string |
The event type. |
nodePool_upgrade |
| source |
string |
The event source. |
task |
| subject |
string |
The object associated with the event. |
npdd89dc2b76c04f14b06774883b****** |
| time |
string |
The time the event occurred. |
2025-05-14T10:00:56+08:00 |
| cluster_id |
string |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
| data |
object |
Additional data about the event. |
|
| level |
string |
The event level. |
info |
| reason |
string |
The event status. |
Started |
| message |
string |
A human-readable message that provides details about the event. |
Start to upgrade NodePool nodePool/nodePool-A |
| next_token |
string |
The token for the next page of results. If this parameter is empty, all results have been returned. |
|
| page_info |
object |
The pagination information. |
|
| page_size |
integer |
The number of entries returned per page. |
50 |
| page_number |
integer |
The page number. |
1 |
| total_count |
integer |
The total number of entries. |
3 |
Examples
Success response
JSON format
{
"events": [
{
"event_id": "e-9ad04f72-8ee7-46bf-a02c-e4a06b39****\n",
"type": "nodePool_upgrade",
"source": "task",
"subject": "npdd89dc2b76c04f14b06774883b******",
"time": "2025-05-14T10:00:56+08:00",
"cluster_id": "c82e6987e2961451182edacd74faf****",
"data": {
"level": "info",
"reason": "Started",
"message": "Start to upgrade NodePool nodePool/nodePool-A"
}
}
],
"next_token": "",
"page_info": {
"page_size": 50,
"page_number": 1,
"total_count": 3
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.