You can call DescribeClusterLogs to query the logs of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses the common request header only. For more information, see Common parameters.

Request syntax

GET /clusters/[ClusterId]/logs HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ClusterId String Yes c106f377e16f34eb1808d6b9362c9****

The ID of the cluster.

Response parameters

Parameter Type Example Description
cluster_id String c106f377e16f34eb1808d6b9362c9****

The ID of the cluster.

cluster_log String ""

A log of the cluster.

created String ""

The time when the log was created.

log_level String INFO

The level of the log.

Examples

Sample requests

GET /clusters/[ClusterId]/logs HTTP/1.1
Common request header
{
"ClusterId": "c106f377e16f34eb1808d6b9362c9****"
}

Sample success responses

XML format

<cluster_id>c106f377e16f34eb1808d6b9362c9****</cluster_id>
<cluster_log>""</cluster_log>
<created>""</created>
<log_level>INFO</log_level>

JSON format

{"cluster_id":"c106f377e16f34eb1808d6b9362c9****","cluster_log":"\"\"","created":"\"\"","log_level":"INFO"}

Error codes

For a list of error codes, visit the API Error Center.