All Products
Search
Document Center

Container Service for Kubernetes:DescribeClusterEvents

Last Updated:Apr 22, 2024

Queries events and event details in a Container Service for Kubernetes (ACK) cluster, including the severity level, status, and start time of each event. Events are generated when clusters created, modified, and updated, node pools are created and scaled out, and components are installed.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cs:DescribeClusterEventsRead
  • Cluster
    acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId}
    none
none

Request syntax

GET /clusters/{ClusterId}/events

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the cluster.

c82e6987e2961451182edacd74faf****
page_sizelongNo

The number of entries per page. Valid values: 1 to 50. Default value: 50.

50
page_numberlongNo

The number of the page to return.

1
task_idstringNo

The ID of the query task.

T-xascadasd*****

Response parameters

ParameterTypeDescriptionExample
object

The response body parameters.

eventsobject []

The list of events.

event_idstring

The event ID.

e-9ad04f72-8ee7-46bf-a02c-e4a06b39****
typestring

The type of event. Valid values:

nodepool_update
sourcestring

The event source.

cluster
subjectstring

The subject related to the event.

npdd89dc2b76c04f14b06774883b******
timestring

The time when the event started.

2020-12-01T17:31:00Z
cluster_idstring

The ID of the cluster.

c82e6987e2961451182edacd74faf****
dataobject

The description of the event.

levelstring

The severity level of the event.

Valid values:

  • warning

  • error

  • info

info
reasonstring

The status of the event.

Started
messagestring

The details of the event.

Start to upgrade NodePool nodePool/npdd89dc2b76c04f14b06774883b******
page_infoobject

The pagination information.

page_sizelong

The number of entries per page. Valid values: 1 to 50. Default value: 50.

50
page_numberlong

The number of the page to return.

1
total_countlong

The total number of entries returned.

3

Examples

Sample success responses

JSONformat

{
  "events": [
    {
      "event_id": "e-9ad04f72-8ee7-46bf-a02c-e4a06b39****",
      "type": "nodepool_update",
      "source": "cluster",
      "subject": "npdd89dc2b76c04f14b06774883b******",
      "time": "2020-12-01T17:31:00Z",
      "cluster_id": "c82e6987e2961451182edacd74faf****",
      "data": {
        "level": "info",
        "reason": "Started",
        "message": "Start to upgrade NodePool nodePool/npdd89dc2b76c04f14b06774883b******"
      }
    }
  ],
  "page_info": {
    "page_size": 50,
    "page_number": 1,
    "total_count": 3
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-06-06Add Operationsee changesets