You can call the GetClusterAddonInstance operation to query the information of a component instance in a cluster, including the version, configurations, and log status of the component instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:GetClusterAddonInstance |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{cluster_id}/addon_instances/{instance_name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
The ID of the cluster. |
c02b3e03be10643e8a644a843ffcb**** |
| instance_name |
string |
No |
The name of the component instance. |
ack-node-problem-detector |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| name |
string |
The name of the component instance. |
ack-node-problem-detector |
| state |
string |
The status of the component. Valid values:
|
active |
| version |
string |
The version of the component instance. |
1.2.16 |
| config |
string |
The custom configurations of the component. |
{"sls_project_name":""} |
| logging |
object |
The status of Simple Log Service. |
|
| capable |
boolean |
Indicates whether Simple Log Service is supported by the component. |
false |
| enabled |
boolean |
Indicates whether Simple Log Service is enabled for the component. |
false |
| log_project |
string |
The Simple Log Service project that is used to collect logs for the component. |
k8s-log-c02b3e03be10643e8a644a843ffcb**** |
| logstore |
string |
The Simple Log Service Logstore that is used to collect logs for the component. |
my-logstore |
Examples
Success response
JSON format
{
"name": "ack-node-problem-detector",
"state": "active",
"version": "1.2.16",
"config": "{\"sls_project_name\":\"\"}",
"logging": {
"capable": false,
"enabled": false,
"log_project": "k8s-log-c02b3e03be10643e8a644a843ffcb****",
"logstore": "my-logstore"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.