Skip to main content

DescribeClusterNodePools

Description

call DescribeClusterNodePoolDetail query cluster specified node pool details.

Request Method

POST

Request Path

/apsara/route/CS/DescribeClusterNodePools

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ClusterIdBODYstringYesc23421cfa74454bc8b37163fd19afcluster ID.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api
NodepoolIdBODYstringYesnp31da1b38983f4511b490fc62108anode pool ID.

Return data

NameTypeSample valueDescription
instance_typesarray of stringecs.n4.largenode instance specification.
tee_configobjectNo sample value for this parameter.encrypt the computing section cluster configuration.
runtime_versionstring19.03.5container runtime version.
resource_group_idstringrg-acfmyvw3wjmbresource group ID.
auto_scalingobjectNo sample value for this parameter.auto-scaling node pool configuration.
security_group_idstringsg-2ze60ockeekspl3dsecurity group ID.
serving_nodeslong3number of nodes in work.
typestringessnode pool type.
platformstringAliyunLinuxoperating system release. Value: CentOS AliyunLinux Windows WindowsCore
data_disksarray of data_diskNo sample value for this parameter.a combination of configurations such as node data disk type and size.
ram_policystringKubernetesWorkerRole-021dc54f-929b-437a-8ae0-34c24d3eWorker RAM role name. The ECS instance is authorized to be the Woker node of the cluster.
login_passwordstringNo sample value for this parameter.SSH login password. The password rule is 8 to 30 characters in length and contains at least three items (uppercase and lowercase letters, numbers, and special symbols). For security reasons, the password query results are encrypted.
enablebooleantruewhether auto scaling is enabled. true: Turn on the automatic scaling function of the node pool. false: automatic scaling is not turned on. when the value is false,auto_scaling other configuration parameters will not take effect.
cms_enabledbooleantruewhether to install cloud monitoring on the ECS node. after installation, you can view the monitoring information of the created ECS instance in the cloud monitoring console. it is recommended to open it. Value: true: install cloud monitoring on ECS nodes. false: do not install cloud monitoring on ECS nodes.
statestringactivenode pool status, value: active: activated. scaling: scaling. removing: The node is being removed. deleting: being deleted. updating: Updating.
removing_nodeslong0Number of nodes being removed.
vswitch_idsarray of stringvsw-2ze3ds0mdip0hdz8ivirtual switch ID.
scaling_group_idstringasg-2zeieod8giqmov7zscaling group ID.
scaling_groupobjectNo sample value for this parameter.expand group configuration.
createdstring2020-09-27T19:14:09.156823496+08:00node pool creation time.
region_idstringcn-beijingregion ID.
max_instanceslong10Maximum number of instances.
runtimestringdockercontainer runtime name.
taintsarray of taintNo sample value for this parameter.node taint information. Stain and tolerance (Toleration) cooperate with each other and can be used to prevent Pod from being assigned to inappropriate nodes. For more information, please refer to taint-and-toleration.
user_datastringIyEvYmluL3NoCmVjaG8gIkhlbGxvIEFDSyEinode pool custom data. For more information, see instance custom data in ECS.
is_defaultbooleantruewhether it is the default node pool, usually a cluster has only one default node pool. Value: true: set as the default node pool. false: not set as the default node pool.
offline_nodeslong0number of offline nodes.
tee_enablebooleanfalseWhether to enable encrypted computing cluster, value: true: on. false: not on.
system_disk_sizelong120node system disk size, unit is GiB. Value range:[20,500].
nodepool_infoobjectNo sample value for this parameter.node pool configuration.
healthy_nodeslong3health node points.
labelsarray of tagNo sample value for this parameter.node label to add labels to Kubernetes cluster nodes. Label definition rules: tags consist of case-sensitive key-value pairs. you can set up to 20 tags. The tag key cannot be repeated. The maximum number is 64 characters. The tag value can be empty and the maximum number is 128 characters. The label key and label value cannot be aliyun, acs:, https:// or http:// beginning.
tagsarray of tagNo sample value for this parameter.tags only ECS instances. the tag key cannot be repeated, and the maximum length is 128 characters; neither the tag key nor the tag value can start with aliyun, acs:, or include https://, http://.
kubernetes_configobjectNo sample value for this parameter.cluster related configuration.
system_disk_categorystringcloud_efficiencynode system disk type, value: cloud_efficiency: efficient cloud disk. cloud_ssd:SSD cloud disk.
rds_instancesarray of stringrm-xxxRDS instance.
cpu_policystringnonenode CPU management policy. The following two policies are supported when the cluster version is 1.12.6 and above: static: allows Pods with certain resource characteristics on the node to enhance their CPU affinity and exclusivity. none: indicates that the existing default CPU affinity scheme is enabled.
namestringdefault-nodepoolnode pool name. naming rule: consists of numbers, Chinese characters, English characters, or dashes (-), and the length ranges from 1 to 63 characters, and cannot start with a dash (-).
min_instanceslong1minimum number of instances.
total_nodeslong3the total number of nodes in the node pool.
image_idstringaliyun_2_1903_x64_20G_alibase_20200529.vhdcustom image ID, you can use DescribeKubernetesVersionMetadata to query the images supported by the system.
initial_nodeslong0number of nodes being created.
nodepool_idstringnp615c0e0966124216a0412e10afe0node pool ID.
updatedstring2020-09-27T20:37:46+08:00node pool update time.
failed_nodeslong0number of failed nodes.
scaling_policystringreleasescaling group mode, value: release: standard mode, according to the usage of the requested resource value, scaling is performed by creating and releasing ECS instances. recycle: speed mode, which is scaled by creating, stopping and starting, increase the speed of retraction.
statusobjectNo sample value for this parameter.node pool status configuration.

Example

Successful Response example

{
"instance_types":"ecs.n4.large",
"tee_config":"",
"runtime_version":"19.03.5",
"resource_group_id":"rg-acfmyvw3wjmb",
"auto_scaling":"",
"security_group_id":"sg-2ze60ockeekspl3d",
"serving_nodes":"3",
"type":"ess",
"platform":"AliyunLinux",
"data_disks":"",
"ram_policy":"KubernetesWorkerRole-021dc54f-929b-437a-8ae0-34c24d3e",
"login_password":"",
"enable":"true",
"cms_enabled":"true",
"state":"active",
"removing_nodes":"0",
"vswitch_ids":"vsw-2ze3ds0mdip0hdz8i",
"scaling_group_id":"asg-2zeieod8giqmov7z",
"scaling_group":"",
"created":"2020-09-27T19:14:09.156823496+08:00",
"region_id":"cn-beijing",
"max_instances":"10",
"runtime":"docker",
"taints":"",
"user_data":"IyEvYmluL3NoCmVjaG8gIkhlbGxvIEFDSyEi",
"is_default":"true",
"offline_nodes":"0",
"tee_enable":"false",
"system_disk_size":"120",
"nodepool_info":"",
"healthy_nodes":"3",
"labels":"",
"tags":"",
"kubernetes_config":"",
"system_disk_category":"cloud_efficiency",
"rds_instances":"rm-xxx",
"cpu_policy":"none",
"name":"default-nodepool",
"min_instances":"1",
"total_nodes":"3",
"image_id":"aliyun_2_1903_x64_20G_alibase_20200529.vhd",
"initial_nodes":"0",
"nodepool_id":"np615c0e0966124216a0412e10afe0",
"updated":"2020-09-27T20:37:46+08:00",
"failed_nodes":"0",
"scaling_policy":"release",
"status":""
}

Failed Response example

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

}