Queries all clusters that you have created.
Request syntax
GET /clustersRequest parameters
None.
Response elements
The response is a JSON array. Each element contains the following fields.
| Parameter | Type | Description |
|---|---|---|
agent_version | String | The version of the cluster agent. |
cluster_id | String | The ID of the cluster. |
created | Datetime | The time when the cluster was created. |
external_loadbalancer_id | String | The ID of the load balancer that provides external access to the cluster. |
master_url | String | The endpoint URL of the cluster master. |
name | String | The name of the cluster. |
network_mode | String | The network mode of the cluster. |
region_id | String | The ID of the region where the cluster resides. |
security_group_id | String | The ID of the security group associated with the cluster. |
size | Number | The number of nodes in the cluster. |
state | String | The state of the cluster. |
updated | Datetime | The time when the cluster was last updated. |
vpc_id | String | The ID of the virtual private cloud (VPC) in which the cluster resides. |
vswitch_id | String | The ID of the vSwitch associated with the cluster. |
Examples
Request
aliyun cs GET /clustersResponse
[
{
"agent_version": "string",
"cluster_id": "string",
"created": "datetime",
"external_loadbalancer_id": "string",
"master_url": "string",
"name": "string",
"network_mode": "string",
"region_id": "string",
"security_group_id": "string",
"size": "numbers",
"state": "string",
"updated": "datetime",
"vpc_id": "string",
"vswitch_id": "string"
}
]