Queries the log configuration of control plane components for an ACK managed cluster. ACK managed clusters support collecting control plane component logs and delivering them to your Simple Log Service (SLS) project. Control plane components include core components such as Kube API Server, Kube Scheduler, Kube Controller Manager, and Cloud Controller Manager. You can call the CheckControlPlaneLogEnable operation to query the current log configuration of control plane components, including the log retention period and the collected components.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:CheckControlPlaneLogEnable |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{ClusterId}/controlplanelog HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c5b5e80b0b64a4bf6939d2d8fbbc5**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| log_project |
string |
The name of the Simple Log Service (SLS) project where the logs of control plane components are stored. Default value: k8s-log-$ClusterId. |
k8s-log-c5b5e80b0b64a4bf6939d2d8fbbc5**** |
| log_ttl |
string |
The retention period of logs in the SLS Logstore. Unit: days. |
30 |
| aliuid |
string |
The Alibaba Cloud account ID. |
162981***** |
| components |
array |
The list of components for which control plane logging is enabled. |
|
|
string |
The list of components for which control plane logging is enabled. By default, the control plane component logging feature collects logs from the |
["apiserver", "ccm", "scheduler", "kcm", "controlplane-events", alb] |
Examples
Success response
JSON format
{
"log_project": "k8s-log-c5b5e80b0b64a4bf6939d2d8fbbc5****",
"log_ttl": "30",
"aliuid": "162981*****",
"components": [
"[\"apiserver\", \"ccm\", \"scheduler\", \"kcm\", \"controlplane-events\", alb]"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.