Retrieves all managed clusters for the current user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:ListClusters |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/am/cluster/list_clusters HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| current |
integer |
No |
The current page number (starting from page 1). |
1 |
| pageSize |
integer |
No |
The number of entries per page. |
10 |
| name |
string |
No |
The name of the plug-in used to filter plug-ins. |
proxy-next-upstream |
| cluster_id |
string |
No |
The cluster ID used to filter clusters. Note
This cluster ID is not the ACK cluster ID. It is the |
cb7d4cc26c8f845fb8a8255ffd394820e |
| cluster_status |
string |
No |
|
Running |
| cluster_type |
string |
No |
|
ACK |
| id |
string |
No |
[Deprecated] Use the cluster_id parameter to filter clusters. |
cb7d4cc26c8f845fb8a8255ffd394820e |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID, which can be used for end-to-end diagnostics. |
B149FD9C-ED5C-5765-B3AD-05AA4A4D64D7 |
| code |
string |
The status code.
|
Success |
| data |
array<object> |
The returned data. |
|
|
object |
The returned data. |
||
| cluster_id |
string |
The actual cluster ID. Note
|
c666d4774f0e2440b979bf917bf100e40 |
| cluster_status |
string |
|
Running |
| cluster_type |
string |
|
ACK |
| created_at |
string |
The creation time. |
2024-12-25T15:08:19 |
| id |
string |
The cluster ID. |
5389fba5-92a1-4ff4-9b26-773b97828144 |
| name |
string |
The cluster name. |
auto-name-sbvCT |
| region |
string |
The region ID. |
cn-hangzhou |
| updated_at |
string |
The update time. |
2024-12-25T15:08:19 |
| message |
string |
The error message.
|
success |
| total |
integer |
The total number of records. |
64 |
Examples
Success response
JSON format
{
"RequestId": "B149FD9C-ED5C-5765-B3AD-05AA4A4D64D7",
"code": "Success",
"data": [
{
"cluster_id": "c666d4774f0e2440b979bf917bf100e40",
"cluster_status": "Running",
"cluster_type": "ACK",
"created_at": "2024-12-25T15:08:19",
"id": "5389fba5-92a1-4ff4-9b26-773b97828144",
"name": "auto-name-sbvCT",
"region": "cn-hangzhou",
"updated_at": "2024-12-25T15:08:19"
}
],
"message": "success",
"total": 64
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.