Skip to main content

DescribeClusterNodes

Description

call DescribeClusterNodes to query cluster nodes.

Request Method

POST

Request Path

/apsara/route/CS/DescribeClusterNodes

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
pageNumberBODYstringNo50shows the number of pages.
ClusterIdBODYstringYesc82e6987e2961451182edacd74fafcluster ID.
regionIdBODYstringYesNo sample value for this parameter.region id
pageSizeBODYstringNo3paging size.
stateBODYstringNoallcluster status, filter according to the cluster running status, value: all: clusters in the following 4 states. running: running cluster. removing: the cluster being deleted. initial: the cluster being initialized. failed: the cluster that failed to be created.
nodepool_idBODYstringNonp***node pool ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
creation_timestring2020-08-25T11:25:35+08:00node creation time.
error_messagestring1234error message when the node was created.
instance_namestringworker-k8s-for-cs-c5cdf7e3938bc4f8eb0e44b21a80f1234the name of the node in the cluster.
node_statusstringReadywhether the node is ready.
total_countinteger5total number of results.
is_aliyun_nodebooleantrueis an alibaba cloud instance.
node_namestringcn-chengdu. 192.168.0.36node name, node identification in the cluster.
expired_timestring2099-12-31T23:59:00+08:00node expiration time.
ip_addressarray of stringNo sample value for this parameter.node IP address.
sourcestringess_attachwhat is the node initialized, for example: manual creation or ROS creation.
instance_type_familystringecs.c5ECS family name to which the node belongs.
nodesarray of nodeNo sample value for this parameter.node details list.
instance_idstringi-2vcckdmxp7u0urj2k2rwnode instance ID.
page_numberinteger1page number.
instance_charge_typestringPostPaidnode payment type.
instance_rolestringWorkernode role type: Master: cluster master node. Worker: Cluster Worker node.
instance_statusstringRunningnode running status.
statestringrunningnode running status.
pageobjectNo sample value for this parameter.paging information.
image_idstringaliyun_2_1903_x64_20G_alibase_20200529.vhdthe system image ID used by the node.
instance_typestringecs.c5.xlargenode type.
nodepool_idstringnp0794239424a84eb7a95327369d561234node pool ID.
host_namestringiZ2vcckdmxp7u0urj2k1234node hostname.
page_sizeinteger10single page size.

Example

Successful Response example

{
"creation_time":"2020-08-25T11:25:35+08:00",
"error_message":"1234",
"instance_name":"worker-k8s-for-cs-c5cdf7e3938bc4f8eb0e44b21a80f1234",
"node_status":"Ready",
"total_count":"5",
"is_aliyun_node":"true",
"node_name":"cn-chengdu. 192.168.0.36",
"expired_time":"2099-12-31T23:59:00+08:00",
"ip_address":"",
"source":"ess_attach",
"instance_type_family":"ecs.c5",
"nodes":"",
"instance_id":"i-2vcckdmxp7u0urj2k2rw",
"page_number":"1",
"instance_charge_type":"PostPaid",
"instance_role":"Worker",
"instance_status":"Running",
"state":"running",
"page":"",
"image_id":"aliyun_2_1903_x64_20G_alibase_20200529.vhd",
"instance_type":"ecs.c5.xlarge",
"nodepool_id":"np0794239424a84eb7a95327369d561234",
"host_name":"iZ2vcckdmxp7u0urj2k1234",
"page_size":"10"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}