DescribeClusterEvents
Queries the operation events of a specified cluster, including cluster creation, cluster modification, node pool creation, node pool scale-out, add-on installation, and cluster upgrade. You can call the DescribeClusterEvents operation to obtain the list of events that occurred in the specified cluster and query the event details, such as the event level, event status, and event time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterEvents |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{ClusterId}/events HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| page_size |
integer |
No |
The maximum number of results to display on each page. Valid values: 1 to 100. Default value: 50. |
50 |
| page_number |
integer |
No |
The page number. |
1 |
| next_token |
string |
No |
The pagination token. Set the value to the next_token value returned from the previous API call. |
|
| max_results |
integer |
No |
The maximum number of results to return for a single request. |
|
| task_id |
string |
No |
The ID of the task to query. |
T-6823f946ffadbb0106**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| events |
array<object> |
The list of events. |
|
|
array<object> |
|||
| event_id |
string |
The event ID. |
e-9ad04f72-8ee7-46bf-a02c-e4a06b39**** |
| type |
string |
The event type. Valid values:
|
nodepool_update |
| source |
string |
The event source. |
task |
| subject |
string |
The operation object associated with the event. |
npdd89dc2b76c04f14b06774883b****** |
| time |
string |
The start time of the event in ISO 8601 format, including time zone information. |
2025-05-14T10:00:56+08:00 |
| cluster_id |
string |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
| data |
object |
The event description. |
|
| level |
string |
The event level. Valid values:
|
info |
| reason |
string |
The event status. |
Started |
| message |
string |
The event details. |
Start to upgrade NodePool nodePool/npdd89dc2b76c04f14b06774883b****** |
| next_token |
string |
The pagination token. |
|
| page_info |
object |
The pagination information. |
|
| page_size |
integer |
The maximum number of results to display on each page. |
50 |
| page_number |
integer |
The page number. |
1 |
| total_count |
integer |
The total number of results. |
126 |
Examples
Success response
JSON format
{
"events": [
{
"event_id": "e-9ad04f72-8ee7-46bf-a02c-e4a06b39****",
"type": "nodepool_update",
"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/npdd89dc2b76c04f14b06774883b******"
}
}
],
"next_token": "",
"page_info": {
"page_size": 50,
"page_number": 1,
"total_count": 126
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.