All Products
Search
Document Center

Container Service for Kubernetes:ListClusterAddonInstances

Last Updated:Apr 22, 2024

You can call the ListClusterAddonInstances operation to query information about the components that are installed in a cluster.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /clusters/{cluster_id}/addon_instances

Request parameters

ParameterTypeRequiredDescriptionExample
cluster_idstringNo

The cluster ID.

c02b3e03be10643e8a644a843ffcb****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

addonsobject []

A list of components that are installed in the cluster.

namestring

The component name.

coredns
statestring

The status of the component. Valid values:

  • active: The component is installed.
  • updating: The component is being modified.
  • upgrading: The component is being updated.
  • deleting: The component is being uninstalled.
active
versionstring

The version of the component.

v1.9.3.10-7dfca203-aliyun

Examples

Sample success responses

JSONformat

{
  "addons": [
    {
      "name": "coredns",
      "state": "active",
      "version": "v1.9.3.10-7dfca203-aliyun"
    }
  ]
}

Error codes

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