Queries the list of nodes that meet the specified conditions in a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterNodes |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{ClusterId}/nodes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceIds |
string |
No |
The list of node instance IDs. Separate multiple IDs with commas (,). |
"i-bp11xjhwkj8k966u****,i-bp1dmhc2bu5igkyq****" |
| nodepool_id |
string |
No |
The node pool ID. |
npe25633140a7d4fbea56cd0479c****** |
| state |
string |
No |
The cluster node status. Filters nodes by their running status. Valid values:
Default value: |
running |
| pageSize |
string |
No |
The maximum number of records that can be displayed per page. Valid values: [1,100]. Default value: 10. |
10 |
| pageNumber |
string |
No |
The page number of the current query. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| nodes |
array<object> |
The list of node details. |
|
|
object |
The node details. |
||
| creation_time |
string |
The time when the node was created. |
2025-04-16T07:28:00Z |
| error_message |
string |
The error message generated when the node was created. |
error*** |
| expired_time |
string |
The time when the node expires. |
2099-12-31T15:59:00Z |
| host_name |
string |
The hostname of the node. |
iZ2vcckdmxp7u0urj2k**** |
| image_id |
string |
The ID of the system image used by the node. |
aliyun_3_x64_20G_alibase_20241218.vhd |
| instance_charge_type |
string |
The billing method of the node. Valid values:
|
PostPaid |
| instance_id |
string |
The instance ID of the node. |
i-2vcckdmxp7u0urj2**** |
| instance_name |
string |
The name of the node in the cluster. |
worker-k8s-for-cs-c5cdf7e3938bc4f8eb0e44b21a80f**** |
| instance_role |
string |
The role type of the node. Valid values:
|
Worker |
| instance_status |
string |
The ECS status of the node. Valid values:
|
Running |
| instance_type |
string |
The node specifications. |
ecs.c5.xlarge |
| instance_type_family |
string |
The name of the ECS instance family to which the node belongs. |
ecs.c5 |
| ip_address |
array |
The IP addresses of the node. |
|
|
string |
The IP address. |
192.168.xx.xx |
|
| is_aliyun_node |
boolean |
Indicates whether the node is an Alibaba Cloud instance. Valid values:
|
true |
| node_name |
string |
The node name, which is the identifier of the node within the cluster. |
cn-chengdu.192.168xx.xx |
| node_status |
string |
Indicates whether the node is ready. Valid values:
|
Ready |
| nodepool_id |
string |
The node pool ID. |
np0794239424a84eb7a95327369d56**** |
| source |
string |
The method used to initialize the node, such as manual creation or ROS creation. |
ess |
| state |
string |
The running status of the node. Valid values:
|
running |
| spot_strategy |
string |
The spot instance type. Valid values:
|
NoSpot |
| page |
object |
The pagination information. |
|
| page_number |
integer |
The current page number. |
1 |
| page_size |
integer |
The maximum number of records that can be displayed per page. |
10 |
| total_count |
integer |
The total number of results. |
5 |
Examples
Success response
JSON format
{
"nodes": [
{
"creation_time": "2025-04-16T07:28:00Z",
"error_message": "error***",
"expired_time": "2099-12-31T15:59:00Z",
"host_name": "iZ2vcckdmxp7u0urj2k****",
"image_id": "aliyun_3_x64_20G_alibase_20241218.vhd",
"instance_charge_type": "PostPaid",
"instance_id": "i-2vcckdmxp7u0urj2****",
"instance_name": "worker-k8s-for-cs-c5cdf7e3938bc4f8eb0e44b21a80f****",
"instance_role": "Worker",
"instance_status": "Running",
"instance_type": "ecs.c5.xlarge",
"instance_type_family": "ecs.c5",
"ip_address": [
"192.168.xx.xx"
],
"is_aliyun_node": true,
"node_name": "cn-chengdu.192.168xx.xx",
"node_status": "Ready",
"nodepool_id": "np0794239424a84eb7a95327369d56****",
"source": "ess",
"state": "running",
"spot_strategy": "NoSpot"
}
],
"page": {
"page_number": 1,
"page_size": 10,
"total_count": 5
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.