Queries the cluster log to help analyze cluster issues and locate the cause.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterLogs |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{ClusterId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c106f377e16f34eb1808d6b9362c9**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The list of the returned log entries. |
||
|
object |
|||
| ID |
integer |
The ID of the log entry. |
73117232145****** |
| cluster_id |
string |
The cluster ID. |
c23421cfa74454bc8b37163fd19af*** |
| cluster_log |
string |
The log content. |
start to update cluster status to CREATE_COMPLETE |
| created |
string |
The time when the log entry was generated. |
2025-04-10T17:54:26+08:00 |
| updated |
string |
The time when the log entry was updated. |
2025-04-10T17:54:26+08:00 |
Examples
Success response
JSON format
[
{
"ID": 0,
"cluster_id": "c23421cfa74454bc8b37163fd19af***",
"cluster_log": "start to update cluster status to CREATE_COMPLETE",
"created": "2025-04-10T17:54:26+08:00",
"updated": "2025-04-10T17:54:26+08:00"
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.