Queries the available components based on specific conditions such as the region, cluster type, cluster subtype defined by cluster profile, and cluster version and queries the detailed information about a component. The information includes whether the component is managed, the supported custom parameter schema, and compatible operating system architecture.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cs:ListAddons | list |
|
| none |
Request syntax
GET /addons HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
region_id | string | No | 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_type | string | No | 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 |
profile | string | No | 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_spec | string | No | 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_version | string | No | 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_id | string | No | 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
Examples
Sample success responses
JSON
format
{
"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 time | Summary of changes | Operation |
---|