You can call the DescribeEvents operation to query events in a specified Container Service for Kubernetes (ACK) cluster.
Debugging
Request syntax
GET /events?cluster_id=String&type=String&page_size=Long&page_number=Long HTTP/1.1
Content-Type:application/json
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
cluster_id | String | No | cf62854ac2130470897be7a27ed1f**** |
The ID of the cluster. |
type | String | No | nodePool_upgrade |
The type of the event. Valid values:
|
page_size | Long | No | 50 |
The number of entries to return on each page. |
page_number | Long | No | 1 |
The number of the page to return. |
Response syntax
HTTP/1.1 200 OK
Content-Type:application/json
{
"events" : [ {
"event_id" : "String",
"type" : "String",
"source" : "String",
"subject" : "String",
"time" : "String",
"cluster_id" : "String",
"data" : {
"level" : "String",
"reason" : "String",
"message" : "String"
}
} ],
"page_info" : {
"page_size" : Long,
"page_number" : Long,
"total_count" : Long
}
}
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
events | Array of event |
The details of the event. |
|
event_id | String | A234-1234-1234 |
The ID of the event. |
type | String | nodePool_upgrade |
The type of the event. Valid values:
|
source | String | /clusters/cf62854ac2130470897be7a27ed1f****/nodepools |
The source of the event. |
subject | String | nodePool-id |
The subject of the event. |
time | String | 2020-12-01T17:31:00Z |
The time when the event started. |
cluster_id | String | cluster-id |
The ID of the cluster. |
data | object |
The description of the event. |
|
level | String | info |
The level of the event. |
reason | String | Started |
The state of the event. |
message | String | Start to upgrade NodePool nodePool/nodePool-A |
The details of the event. |
page_info | object |
The pagination details. |
|
page_size | Long | 50 |
The number of entries to return on each page. |
page_number | Long | 1 |
The number of the page to return. |
total_count | Long | 3 |
The total number of entries returned. |
Examples
Sample requests
GET /events?cluster_id=cf62854ac2130470897be7a27ed1f****&type=nodePool_upgrade&page_size=50&page_number=1 HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<events>
<event_id>A234-1234-1234</event_id>
<type>nodePool_upgrade</type>
<source>/clusters/cf62854ac2130470897be7a27ed1f****/nodepools</source>
<subject>nodePool-id</subject>
<time>2020-12-01T17:31:00Z</time>
<cluster_id>cluster-id</cluster_id>
<data>
<level>info</level>
<reason>Started</reason>
<message>Start to upgrade NodePool nodePool/nodePool-A</message>
</data>
</events>
<page_info>
<page_size>50</page_size>
<page_number>1</page_number>
<total_count>3</total_count>
</page_info>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"events" : [ {
"event_id" : "A234-1234-1234",
"type" : "nodePool_upgrade",
"source" : "/clusters/cf62854ac2130470897be7a27ed1f****/nodepools",
"subject" : "nodePool-id",
"time" : "2020-12-01T17:31:00Z",
"cluster_id" : "cluster-id",
"data" : {
"level" : "info",
"reason" : "Started",
"message" : "Start to upgrade NodePool nodePool/nodePool-A"
}
} ],
"page_info" : {
"page_size" : 50,
"page_number" : 1,
"total_count" : 3
}
}
Error codes
For a list of error codes, visit the API Error Center.