All Products
Search
Document Center

Container Service for Kubernetes:ListAddons

Last Updated:Apr 22, 2024

You can call the ListAddons operation to query all available components in a cluster. You can query all available components in a cluster by specifying the ID of the cluster. You can also specify parameters such as the region, cluster type, cluster subtype (profile), cluster specification, and cluster version to get a list of available components in clusters that meet the conditions.

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 /addons

Request parameters

ParameterTypeRequiredDescriptionExample
region_idstringNo

The region of the cluster. If cluster_id is specified, this parameter is ignored. You must specify the region_id, cluster_type, profile, cluster_spec, and cluster_version parameters at the same time.

cn-hangzhou
cluster_typestringNo

The type of the cluster. If cluster_id is specified, this parameter is ignored. You must specify the region_id, cluster_type, profile, cluster_spec, and cluster_version parameters at the same time.

ManagedKubernetes
profilestringNo

The subtype of the cluster. If cluster_id is specified, this parameter is ignored. You must specify the region_id, cluster_type, profile, cluster_spec, and cluster_version parameters at the same time.

Default
cluster_specstringNo

The specifications of the cluster. If cluster_id is specified, this parameter is ignored. You must specify the region_id, cluster_type, profile, cluster_spec, and cluster_version parameters at the same time.

ack.pro.small
cluster_versionstringNo

The version of the cluster. If cluster_id is specified, this parameter is ignored. You must specify the region_id, cluster_type, profile, cluster_spec, and cluster_version parameters at the same time.

1.26.3-aliyun.1
cluster_idstringNo

The cluster ID. If you specify a cluster ID, only components used in the specified cluster are queried. Other parameters are ignored.

c02b3e03be10643e8a644a843ffcb****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

addonsobject []

The list of available components.

namestring

The component name.

arms-prometheus
versionstring

The version number.

1.1.9
managedboolean

Indicates whether the component is fully managed.

false
install_by_defaultboolean

Indicates whether the component is automatically installed by default.

false
categorystring

The category of the component.

monitor
config_schemastring

The schema of the custom parameters of the component.

{}
supported_actionsarray

Operations supported by the component. Valid values:

  • Install
  • Upgrade
  • Modify
  • Uninstall
string

Operations supported by the component. Valid values:

  • Install
  • Upgrade
  • Modify
  • Uninstall
Install
architecturearray

Architectures supported by the component. Valid values:

  • amd64
  • arm64
string

Operations supported by the component. Valid values:

  • Install
  • Upgrade
  • Modify
  • Uninstall
amd64

Examples

Sample success responses

JSONformat

{
  "addons": [
    {
      "name": "arms-prometheus",
      "version": "1.1.9",
      "managed": false,
      "install_by_default": false,
      "category": "monitor",
      "config_schema": "{}",
      "supported_actions": [
        "Install"
      ],
      "architecture": [
        "amd64"
      ]
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history