Retrieves a list of cluster instances.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
eflo:ListClusters | get | *Cluster
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
NextToken | string | No | The token that is used to retrieve the next page of results. Set this parameter to the NextToken value that is returned in the last response. | a3f2224a5ec7224116c4f5246120abe2 |
MaxResults | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
ResourceGroupId | string | No | The ID of the resource group. | rg-aek2bg6wyoox6jq |
| Tags | array<object> | No | The list of tags. | |
object | No | The tag object. | ||
Key | string | No | The tag key. | my_key |
Value | string | No | The tag value. | my_value |
Response elements
Parameter | Type | Description | Example |
object | |||
RequestId | string | The ID of the request. | 2FE2B22C-CF9D-59DE-BF63-DC9B9B33A9D1 |
| Clusters | array<object> | The information about the clusters. | |
object | The cluster object. | ||
Components | any | The information about the components. | {} |
ClusterId | string | The ID of the cluster. | i137590131672134915401 |
ClusterName | string | The name of the cluster. | cnp_test_cluster |
OperatingState | string | The status of the cluster. | initializing |
TaskId | string | The ID of the task. | i156365121663149566024 |
ClusterType | string | The type of the cluster. | AckEdgePro |
NodeCount | integer | The number of nodes. | 12 |
NodeGroupCount | integer | The number of node groups. | 2 |
CreateTime | string | The time when the cluster was created. | 1672134938 |
UpdateTime | string | The time when the cluster was last updated. | 1672134968 |
ClusterDescription | string | The description of the cluster. | 测试集群 |
ResourceGroupId | string | The ID of the resource group. | rg-aek2ajbjoloa23q |
VpcId | string | The ID of the virtual private cloud (VPC). | vpc-0jlx4hol2bjboafzmffvd |
HpnZone | string | The cluster number. | B1 |
ComputingIpVersion | string | The IP version of the computing network. | IPv4 |
| Tags | array<object> | The information about the tags. | |
object | The tag information. | ||
Key | string | The tag key. | env |
Value | string | The tag value. | daily |
NextToken | string | The query token value returned by this call. | f4f9a292c17072a2 |
Examples
Success response
JSON format
{
"RequestId": "2FE2B22C-CF9D-59DE-BF63-DC9B9B33A9D1",
"Clusters": [
{
"Components": "{}",
"ClusterId": "i137590131672134915401",
"ClusterName": "cnp_test_cluster",
"OperatingState": "initializing",
"TaskId": "i156365121663149566024",
"ClusterType": "AckEdgePro",
"NodeCount": 12,
"NodeGroupCount": 2,
"CreateTime": "1672134938",
"UpdateTime": "1672134968",
"ClusterDescription": "测试集群",
"ResourceGroupId": "rg-aek2ajbjoloa23q",
"VpcId": "vpc-0jlx4hol2bjboafzmffvd",
"HpnZone": "B1",
"ComputingIpVersion": "IPv4",
"Tags": [
{
"Key": "env",
"Value": "daily"
}
]
}
],
"NextToken": "f4f9a292c17072a2"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.