Queries the current log configuration of control plane components, including the log retention period and the log collection component. Container Service for Kubernetes (ACK) managed clusters can collect the logs of control plane components and deliver the logs to projects in Simple Log Service. These control plane components include Kube API Server, Kube Scheduler, Kube Controller Manager, and Cloud Controller Manager.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /clusters/{ClusterId}/controlplanelog
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The cluster ID. | c5b5e80b0b64a4bf6939d2d8fbbc5**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"log_project": "k8s-log-c5b5e80b0b64a4bf6939d2d8fbbc5****",
"log_ttl": "30",
"aliuid": "162981*****",
"components": [
"[\"apiserver\", \"ccm\", \"scheduler\", \"kcm\", \"controlplane-events\"]"
]
}
Error codes
For a list of error codes, visit the Service error codes.