调用DescribeClusterNodePoolDetail查询集群指定节点池详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求语法

GET /clusters/ClusterId/nodepools/NodepoolId HTTP/1.1
Content-Type:application/json

请求参数

表 1. 请求Path参数
参数名称 类型 是否必选 示例 说明
ClusterId String c23421cfa74454bc8b37163fd19af****

集群ID。

NodepoolId String np31da1b38983f4511b490fc62108a****

节点池ID。

响应体语法

HTTP/1.1 200 OK
Content-Type:application/json

{
  "auto_scaling" : {
    "eip_bandwidth" : Long,
    "eip_internet_charge_type" : "String",
    "enable" : Boolean,
    "is_bond_eip" : Boolean,
    "max_instances" : Long,
    "min_instances" : Long,
    "type" : "String"
  },
  "kubernetes_config" : {
    "cms_enabled" : Boolean,
    "cpu_policy" : "String",
    "labels" : [ {
      "key" : "String",
      "value" : "String"
    } ],
    "runtime" : "String",
    "runtime_version" : "String",
    "taints" : [ {
      "key" : "String",
      "value" : "String",
      "effect" : "String"
    } ],
    "user_data" : "String",
    "node_name_mode" : "String"
  },
  "nodepool_info" : {
    "created" : "String",
    "is_default" : Boolean,
    "name" : "String",
    "nodepool_id" : "String",
    "region_id" : "String",
    "resource_group_id" : "String",
    "type" : "String",
    "updated" : "String"
  },
  "scaling_group" : {
    "auto_renew" : Boolean,
    "auto_renew_period" : Long,
    "data_disks" : [ {
      "category" : "String",
      "size" : Long,
      "encrypted" : "String",
      "auto_snapshot_policy_id" : "String",
      "performance_level" : "String"
    } ],
    "image_id" : "String",
    "instance_charge_type" : "String",
    "instance_types" : [ "String" ],
    "multi_az_policy" : "String",
    "on_demand_base_capacity" : Long,
    "on_demand_percentage_above_base_capacity" : Long,
    "spot_instance_pools" : Long,
    "spot_instance_remedy" : Boolean,
    "compensate_with_on_demand" : Boolean,
    "period" : Long,
    "period_unit" : "String",
    "platform" : "String",
    "ram_policy" : "String",
    "spot_strategy" : "String",
    "spot_price_limit" : [ {
      "instance_type" : "String",
      "price_limit" : "String"
    } ],
    "rds_instances" : [ "String" ],
    "scaling_group_id" : "String",
    "scaling_policy" : "String",
    "security_group_id" : "String",
    "security_group_ids" : [ "String" ],
    "system_disk_category" : "String",
    "system_disk_size" : Long,
    "system_disk_performance_level" : "String",
    "tags" : [ {
      "key" : "String",
      "value" : "String"
    } ],
    "vswitch_ids" : [ "String" ],
    "login_password" : "String",
    "key_pair" : "String",
    "internet_charge_type" : "String",
    "internet_max_bandwidth_out" : Long,
    "deploymentset_id" : "String",
    "desired_size" : Long,
    "private_pool_options" : {
      "id" : "String",
      "match_criteria" : "String"
    }
  },
  "status" : {
    "failed_nodes" : Long,
    "healthy_nodes" : Long,
    "initial_nodes" : Long,
    "offline_nodes" : Long,
    "removing_nodes" : Long,
    "serving_nodes" : Long,
    "state" : "String",
    "total_nodes" : Long
  },
  "tee_config" : {
    "tee_enable" : Boolean
  },
  "management" : {
    "enable" : Boolean,
    "auto_repair" : Boolean,
    "upgrade_config" : {
      "auto_upgrade" : Boolean,
      "surge" : Long,
      "surge_percentage" : Long,
      "max_unavailable" : Long
    }
  },
  "interconnect_config" : {
    "cen_id" : "String",
    "ccn_id" : "String",
    "ccn_region_id" : "String",
    "bandwidth" : Long,
    "improved_period" : "String"
  },
  "interconnect_mode" : "String",
  "max_nodes" : Long
}

响应参数

表 2. 响应Body参数
参数名称 类型 示例 说明
auto_scaling Object

自动伸缩节点池配置。

eip_bandwidth Long 5

EIP带宽峰值。

eip_internet_charge_type String PayByBandwidth

EIP计费类型,取值:

  • PayByBandwidth:按固定带宽计费。
  • PayByTraffic:按使用流量计费。
enable Boolean true

是否启用自动伸缩。取值:

  • true:开启节点池自动伸缩功能。
  • false:不开启自动伸缩,当取值为false时,auto_scaling内的其他配置参数将不生效。
is_bond_eip Boolean true

是否绑定EIP,取值:

  • true:绑定EIP。
  • false:不绑定EIP。
max_instances Long 10

最大实例数。

min_instances Long 1

最小实例数。

type String cpu

自动伸缩类型,按照自动伸缩实例类型划分。取值:

  • cpu:普通实例型。
  • gpu:GPU实例型。
  • gpushare:GPU共享型。
  • spot:抢占式实例型。
kubernetes_config Object

集群相关配置。

cms_enabled Boolean true

是否在ECS节点上安装云监控,安装后可以在云监控控制台查看所创建ECS实例的监控信息,推荐开启。取值:

  • true:在ECS节点上安装云监控。
  • false:不在ECS节点上安装云监控。
cpu_policy String none

节点CPU管理策略。当集群版本在1.12.6及以上时支持以下两种策略:

  • static:允许为节点上具有某些资源特征Pod增强其CPU亲和性和独占性。
  • none:表示启用现有的默认CPU亲和性方案。
labels Array of tag

节点标签,为Kubernetes集群节点添加标签。标签定义规则:

  • 标签由区分大小写的键值对组成,您最多可以设置20个标签。
  • 标签键不可以重复,最长为64个字符;标签值可以为空,最长为128个字符。标签键和标签值都不能以aliyunacs:https://http://开头。更多信息,请参见Labels and Selectors
runtime String docker

容器运行时名称。

runtime_version String 19.03.5

容器运行时版本。

taints Array of taint

节点污点信息。污点和容忍度(Toleration)相互配合,可以用来避免Pod被分配到不合适的节点上。更多信息,请参见taint-and-toleration

user_data String IyEvYmluL3NoCmVjaG8gIkhlbGxvIEFDSyEi

节点池自定义数据。更多详情,请参见生成实例自定义数据

node_name_mode String customized,test.,5,.com

节点名称由三部分组成:前缀 + 节点 IP 地址子串 + 后缀:

  • 前缀和后缀均可由“.”分隔的一个或多个部分构成,每个部分可以使用小写字母、数字和“-”,节点名称首尾必须为小写字母和数字。
  • IP 地址段长度指截取节点 IP 地址末尾的位数,取值范围 5-12。

例如,节点 IP 地址为:192.168.0.55,指定前缀为 aliyun.com,IP 地址段长度为 5,后缀为 test,则节点名称为aliyun.com00055test。

nodepool_info Object

节点池配置。

created String 2020-09-27T19:14:09.156823496+08:00

节点池创建时间。

is_default Boolean true

是否为默认节点池,通常一个集群仅有一个默认节点池。取值:

true:设置为默认节点池。

false:不设置为默认节点池。

name String default-nodepool

节点池名称。

命名规则:由数字、汉字、英文字符或短划线(-)组成,长度范围1~63个字符,且不能以短划线(-)开头。

nodepool_id String np615c0e0966124216a0412e10afe0****

节点池ID。

region_id String cn-beijing

地域ID。

resource_group_id String rg-acfmyvw3wjmb****

资源组ID。

type String ess

节点池类型。

updated String 2020-09-27T20:37:46+08:00

节点池更新时间。

scaling_group Object

扩容组配置。

auto_renew Boolean false

节点是否开启自动续费,当instance_charge_type取值为PrePaid时才生效,取值:

  • true:自动续费。
  • false:不自动续费。
auto_renew_period Long 1

节点自动续费周期。当instance_charge_type取值为PrePaid时才生效,且为必选值。

PeriodUnit=Month时,取值范围:{1, 2, 3, 6, 12}。

data_disks Array of data_disk

节点数据盘类型、大小等配置的组合。

image_id String aliyun_2_1903_x64_20G_alibase_20200529.vhd

自定义镜像ID,可通过DescribeKubernetesVersionMetadata查询系统支持的镜像。

instance_charge_type String PostPaid

节点池节点付费类型,取值:

  • PrePaid:预付费。
  • PostPaid:按量付费。
instance_types Array of String ecs.n4.large

节点实例规格。

multi_az_policy String BALANCE

多可用区伸缩组ECS实例扩缩容策略。取值:

  • PRIORITY:根据您定义的虚拟交换机(VSwitchIds.N)扩缩容。当优先级较高的虚拟交换机所在可用区无法创建ECS实例时,自动使用下一优先级的虚拟交换机创建ECS实例。
  • COST_OPTIMIZED:按vCPU单价从低到高进行尝试创建。当伸缩配置设置了抢占式计费方式的多实例规格时,优先创建对应抢占式实例。您可以继续通过CompensateWithOnDemand参数指定当抢占式实例由于库存等原因无法创建时,是否自动尝试以按量付费的方式创建。
    说明 COST_OPTIMIZED仅在伸缩配置设置了多实例规格或者选用了抢占式实例的情况下生效。
  • BALANCE:在伸缩组指定的多可用区之间均匀分配ECS实例。如果由于库存不足等原因可用区之间变得不平衡,您可以通过API RebalanceInstances平衡资源。更多信息,请参见RebalanceInstances

默认值:PRIORITY

on_demand_base_capacity Long 0

伸缩组所需要按量实例个数的最小值,取值范围:[0,1000]。当按量实例个数少于该值时,将优先创建按量实例。

on_demand_percentage_above_base_capacity Long 20

伸缩组满足最小按量实例数(on_demand_base_capacity)要求后,超出的实例中按量实例应占的比例。取值范围:[0,100]。

spot_instance_pools Long 5

指定可用实例规格的个数,伸缩组将按成本最低的多个规格均衡创建抢占式实例。取值范围:[1,10]。

spot_instance_remedy Boolean false

是否开启补齐抢占式实例。开启后,当收到抢占式实例将被回收的系统消息时,伸缩组将尝试创建新的实例,替换掉将被回收的抢占式实例。取值:

  • true:开启补齐抢占式实例。
  • false:不开启补齐抢占式实例。
compensate_with_on_demand Boolean true

multi_az_policy取值为COST_OPTIMIZED时,如果因价格、库存等原因无法创建足够的抢占式实例,是否允许自动尝试创建按量实例满足ECS实例数量要求。取值:

  • true:允许自动尝试创建按量实例满足ECS实例数量要求。
  • false:不允许自动尝试创建按量实例满足ECS实例数量要求。
period Long 0

节点包年包月时长,当instance_charge_type取值为PrePaid时才生效且为必选值。

PeriodUnit=Month时,取值范围:{1, 2 , 3, 6, 12, 24, 36, 48, 60}。

period_unit String Month

节点付费周期,当instance_charge_type取值为PrePaid时时候需要指定周期。

Month:目前只支持以月为单位。

platform String AliyunLinux

操作系统发行版。取值:

  • CentOS
  • AliyunLinux
  • Windows
  • WindowsCore
ram_policy String KubernetesWorkerRole-021dc54f-929b-437a-8ae0-34c24d3e****

Worker RAM角色名称,授权ECS实例为集群Woker节点。

spot_strategy String NoSpot

抢占式实例类型,取值:

  • NoSpot:非抢占式实例。
  • SpotWithPriceLimit:设置抢占实例价格上限。
  • SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。

更多信息,请参见抢占式实例

spot_price_limit Array

抢占实例市场价格区间配置。

instance_type String ecs.c6.large

抢占式实例规格。

price_limit String 0.39

单台实例市场价格。

单位:元/时。

rds_instances Array of String rm-xxx

RDS实例。

scaling_group_id String asg-2zeieod8giqmov7z****

伸缩组ID。

scaling_policy String release

伸缩组模式,取值:

  • release:标准模式,根据申请资源值的使用量,通过创建、释放ECS的方式进行伸缩。
  • recycle:极速模式,通过创建、停机、启动的方式进行伸缩,提高再次伸缩的速度(停机时计算资源不收费,只收取存储费用,本地盘机型除外)。
security_group_id String sg-2ze60ockeekspl3d****

节点池安全组ID,当节点池绑定了多个安全组时,为security_group_ids中的第一个值。

security_group_ids Array of String sg-2ze60ockeekspl3d****

节点池安全组ID列表。

system_disk_category String cloud_efficiency

节点系统盘类型,取值:

  • cloud_efficiency:高效云盘。
  • cloud_ssd:SSD云盘。
system_disk_size Long 120

节点系统盘大小,单位为GiB。

取值范围:[20,500]。

system_disk_performance_level String PL1

节点系统盘磁盘性能,只针对ESSD磁盘生效。

tags Array of tag

仅为ECS实例添加标签。

标签键不可以重复,最大长度为128个字符;标签键和标签值都不能以“aliyun”、“acs:”开头,或包含“https://”、“http://”。

vswitch_ids Array of String vsw-2ze3ds0mdip0hdz8i****

虚拟交换机ID。

login_password String ********

SSH登录密码,和key_pair二选一。密码规则为8~30个字符,且至少同时包含三项(大小写字母、数字和特殊符号)。

出于安全性考虑,密码查询结果经过加密处理。

key_pair String pro-nodepool

密钥对名称,和login_password二选一。当节点池为托管版节点池时,只支持key_pair

internet_charge_type String PayByBandwidth

节点公网IP网络计费类型。

internet_max_bandwidth_out Long 10

节点公网IP出带宽最大值,单位为Mbps(Mega bit per second),取值范围:1~100。

deploymentset_id String ds-bp1d19mmbsv3jf6xxxxx

部署集ID。

desired_size Long 2

节点池期望节点数。

private_pool_options Object

私有节点池配置。

id String eap-bp67acfmxazb4****

私有节点池ID。

match_criteria String Open

私有节点池类型,实例启动的私有池容量选项。弹性保障服务或容量预定服务在生效后会生成私有池容量,供实例启动时选择。取值:

  • Open:开放模式。将自动匹配开放类型的私有池容量。如果没有符合条件的私有池容量,则使用公共池资源启动。
  • Target:指定模式。使用指定的私有池容量启动实例,如果该私有池容量不可用,则实例会启动失败。
  • None:不使用模式。实例启动将不使用私有池容量。
status Object

节点池状态配置。

failed_nodes Long 0

失败节点数。

healthy_nodes Long 3

健康节点数。

initial_nodes Long 0

正在创建节点数。

offline_nodes Long 0

离线节点数。

removing_nodes Long 0

正在被移除节点数。

serving_nodes Long 3

工作中节点数。

state String active

节点池状态,取值:

  • active:已激活。
  • scaling:伸缩中。
  • removing:节点移除中。
  • deleting:删除中。
  • updating:更新中。
total_nodes Long 3

节点池内总节点数。

tee_config Object

加密计算节集群配置。

tee_enable Boolean false

是否开启加密计算集群,取值:

  • true:开启。
  • false:不开启。
management Object

托管节点池配置。

enable Boolean true

是否开启托管版节点池,取值:

  • true:开启托管节点池。
  • false:不开启托管节点池,只有当enable=true时,其他相关配置才生效。
auto_repair Boolean true

自动修复,仅当enable=true时生效。

  • true:自动修复。
  • false:不自动修复。
upgrade_config Object

自动升级配置,仅当enable=true时生效。

auto_upgrade Boolean true

是否启用自动升级,取值:

  • true:启用自动升级。
  • false:不启用自动升级。
surge Long 5

额外节点数量。

surge_percentage Long 50

额外节点比例,和surge二选一。

max_unavailable Long 1

最大不可用节点数量,取值范围:[1,1000]。

默认值:1。

interconnect_config Object

边缘节点池网络相关的配置。该值只对edge类型的节点池有意义。

cen_id String cen-ey9k9nfhz0f*******

边缘增强型节点池绑定的云企业网实例ID (CENID)。

ccn_id String ccn-qm5i0i0q9yi*******

边缘增强型节点池绑定的云连接网实例ID (CCNID)。

ccn_region_id String cn-shanghai

边缘增强型节点池绑定的云连接网实例所属的区域。

bandwidth Long 10

边缘增强型节点池的网络带宽,单位为Mbps。

improved_period String 1

边缘增强型节点池的购买时长,单位为月。

interconnect_mode String improved

边缘节点池的网络类型。basic:基础型;improved:增强型。该值只对edge类型的节点池有意义。

max_nodes Long 10

边缘节点池允许容纳的最大节点数量. 节点池内可以容纳的最大节点数量,该参数大于等于0。0表示无额外限制(仅受限于集群整体可以容纳的节点数,节点池本身无额外限制)。边缘节点池该参数值往往大于0;ess类型节点池和默认的edge类型节点池该参数值为0。

查询节点池详情示例

请求示例

GET /clusters/c23421cfa74454bc8b37163fd19af****/nodepools/np31da1b38983f4511b490fc62108a**** HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeClusterNodePoolDetailResponse>
    <auto_scaling>
        <eip_bandwidth>5</eip_bandwidth>
        <eip_internet_charge_type>PayByBandwidth</eip_internet_charge_type>
        <enable>true</enable>
        <is_bond_eip>true</is_bond_eip>
        <max_instances>10</max_instances>
        <min_instances>1</min_instances>
        <type>cpu</type>
    </auto_scaling>
    <kubernetes_config>
        <cms_enabled>true</cms_enabled>
        <cpu_policy>none</cpu_policy>
        <labels>
            <key>env</key>
            <value>prod</value>
        </labels>
        <runtime>docker</runtime>
        <runtime_version>19.03.5</runtime_version>
        <taints>
            <key>key</key>
            <value>value</value>
            <effect>NoSchedule</effect>
        </taints>
        <user_data>IyEvYmluL3NoCmVjaG8gIkhlbGxvIEFDSyEi</user_data>
        <node_name_mode>customized,test.,5,.com</node_name_mode>
    </kubernetes_config>
    <nodepool_info>
        <created>2020-09-27T19:14:09.156823496+08:00</created>
        <is_default>true</is_default>
        <name>default-nodepool</name>
        <nodepool_id>np615c0e0966124216a0412e10afe0****</nodepool_id>
        <region_id>cn-beijing</region_id>
        <resource_group_id>rg-acfmyvw3wjmb****</resource_group_id>
        <type>ess</type>
        <updated>2020-09-27T20:37:46+08:00</updated>
    </nodepool_info>
    <scaling_group>
        <auto_renew>false</auto_renew>
        <auto_renew_period>1</auto_renew_period>
        <data_disks>
            <category>cloud_ssd</category>
            <size>40</size>
            <encrypted>true</encrypted>
            <auto_snapshot_policy_id>sp-2zej1nogjvovnz4z****</auto_snapshot_policy_id>
            <performance_level>PL1</performance_level>
        </data_disks>
        <image_id>aliyun_2_1903_x64_20G_alibase_20200529.vhd</image_id>
        <instance_charge_type>PostPaid</instance_charge_type>
        <instance_types>ecs.n4.large</instance_types>
        <multi_az_policy>BALANCE</multi_az_policy>
        <on_demand_base_capacity>0</on_demand_base_capacity>
        <on_demand_percentage_above_base_capacity>20</on_demand_percentage_above_base_capacity>
        <spot_instance_pools>5</spot_instance_pools>
        <spot_instance_remedy>false</spot_instance_remedy>
        <compensate_with_on_demand>true</compensate_with_on_demand>
        <period>0</period>
        <period_unit>Month</period_unit>
        <platform>AliyunLinux</platform>
        <ram_policy>KubernetesWorkerRole-021dc54f-929b-437a-8ae0-34c24d3e****</ram_policy>
        <spot_strategy>NoSpot</spot_strategy>
        <spot_price_limit>
            <instance_type>ecs.c6.large</instance_type>
            <price_limit>0.39</price_limit>
        </spot_price_limit>
        <rds_instances>rm-xxx</rds_instances>
        <scaling_group_id>asg-2zeieod8giqmov7z****</scaling_group_id>
        <scaling_policy>release</scaling_policy>
        <security_group_id>sg-2ze60ockeekspl3d****</security_group_id>
        <security_group_ids>sg-2ze60ockeekspl3d****</security_group_ids>
        <system_disk_category>cloud_efficiency</system_disk_category>
        <system_disk_size>120</system_disk_size>
        <system_disk_performance_level>PL1</system_disk_performance_level>
        <tags>
            <key>env</key>
            <value>prod</value>
        </tags>
        <vswitch_ids>vsw-2ze3ds0mdip0hdz8i****</vswitch_ids>
        <login_password>********</login_password>
        <key_pair>pro-nodepool</key_pair>
        <internet_charge_type>PayByBandwidth</internet_charge_type>
        <internet_max_bandwidth_out>10</internet_max_bandwidth_out>
        <deploymentset_id>ds-bp1d19mmbsv3jf6xxxxx</deploymentset_id>
        <desired_size>2</desired_size>
        <private_pool_options>
            <id>eap-bp67acfmxazb4****</id>
            <match_criteria>Open</match_criteria>
        </private_pool_options>
    </scaling_group>
    <status>
        <failed_nodes>0</failed_nodes>
        <healthy_nodes>3</healthy_nodes>
        <initial_nodes>0</initial_nodes>
        <offline_nodes>0</offline_nodes>
        <removing_nodes>0</removing_nodes>
        <serving_nodes>3</serving_nodes>
        <state>active</state>
        <total_nodes>3</total_nodes>
    </status>
    <tee_config>
        <tee_enable>false</tee_enable>
    </tee_config>
    <management>
        <enable>true</enable>
        <auto_repair>true</auto_repair>
        <upgrade_config>
            <auto_upgrade>true</auto_upgrade>
            <surge>5</surge>
            <surge_percentage>50</surge_percentage>
            <max_unavailable>1</max_unavailable>
        </upgrade_config>
    </management>
    <interconnect_config>
        <cen_id>cen-ey9k9nfhz0f*******</cen_id>
        <ccn_id>ccn-qm5i0i0q9yi*******</ccn_id>
        <ccn_region_id>cn-shanghai</ccn_region_id>
        <bandwidth>10</bandwidth>
        <improved_period>1</improved_period>
    </interconnect_config>
    <interconnect_mode>improved</interconnect_mode>
    <max_nodes>10</max_nodes>
</DescribeClusterNodePoolDetailResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "auto_scaling" : {
    "eip_bandwidth" : 5,
    "eip_internet_charge_type" : "PayByBandwidth",
    "enable" : true,
    "is_bond_eip" : true,
    "max_instances" : 10,
    "min_instances" : 1,
    "type" : "cpu"
  },
  "kubernetes_config" : {
    "cms_enabled" : true,
    "cpu_policy" : "none",
    "labels" : [ {
      "key" : "env",
      "value" : "prod"
    } ],
    "runtime" : "docker",
    "runtime_version" : "19.03.5",
    "taints" : [ {
      "key" : "key",
      "value" : "value",
      "effect" : "NoSchedule"
    } ],
    "user_data" : "IyEvYmluL3NoCmVjaG8gIkhlbGxvIEFDSyEi",
    "node_name_mode" : "customized,test.,5,.com"
  },
  "nodepool_info" : {
    "created" : "2020-09-27T19:14:09.156823496+08:00",
    "is_default" : true,
    "name" : "default-nodepool",
    "nodepool_id" : "np615c0e0966124216a0412e10afe0****",
    "region_id" : "cn-beijing",
    "resource_group_id" : "rg-acfmyvw3wjmb****",
    "type" : "ess",
    "updated" : "2020-09-27T20:37:46+08:00"
  },
  "scaling_group" : {
    "auto_renew" : false,
    "auto_renew_period" : 1,
    "data_disks" : [ {
      "category" : "cloud_ssd",
      "size" : 40,
      "encrypted" : "true",
      "auto_snapshot_policy_id" : "sp-2zej1nogjvovnz4z****",
      "performance_level" : "PL1"
    } ],
    "image_id" : "aliyun_2_1903_x64_20G_alibase_20200529.vhd",
    "instance_charge_type" : "PostPaid",
    "instance_types" : [ "ecs.n4.large" ],
    "multi_az_policy" : "BALANCE",
    "on_demand_base_capacity" : 0,
    "on_demand_percentage_above_base_capacity" : 20,
    "spot_instance_pools" : 5,
    "spot_instance_remedy" : false,
    "compensate_with_on_demand" : true,
    "period" : 0,
    "period_unit" : "Month",
    "platform" : "AliyunLinux",
    "ram_policy" : "KubernetesWorkerRole-021dc54f-929b-437a-8ae0-34c24d3e****",
    "spot_strategy" : "NoSpot",
    "spot_price_limit" : [ {
      "instance_type" : "ecs.c6.large",
      "price_limit" : "0.39"
    } ],
    "rds_instances" : [ "rm-xxx" ],
    "scaling_group_id" : "asg-2zeieod8giqmov7z****",
    "scaling_policy" : "release",
    "security_group_id" : "sg-2ze60ockeekspl3d****",
    "security_group_ids" : [ "sg-2ze60ockeekspl3d****" ],
    "system_disk_category" : "cloud_efficiency",
    "system_disk_size" : 120,
    "system_disk_performance_level" : "PL1",
    "tags" : [ {
      "key" : "env",
      "value" : "prod"
    } ],
    "vswitch_ids" : [ "vsw-2ze3ds0mdip0hdz8i****" ],
    "login_password" : "********",
    "key_pair" : "pro-nodepool",
    "internet_charge_type" : "PayByBandwidth",
    "internet_max_bandwidth_out" : 10,
    "deploymentset_id" : "ds-bp1d19mmbsv3jf6xxxxx",
    "desired_size" : 2,
    "private_pool_options" : {
      "id" : "eap-bp67acfmxazb4****",
      "match_criteria" : "Open"
    }
  },
  "status" : {
    "failed_nodes" : 0,
    "healthy_nodes" : 3,
    "initial_nodes" : 0,
    "offline_nodes" : 0,
    "removing_nodes" : 0,
    "serving_nodes" : 3,
    "state" : "active",
    "total_nodes" : 3
  },
  "tee_config" : {
    "tee_enable" : false
  },
  "management" : {
    "enable" : true,
    "auto_repair" : true,
    "upgrade_config" : {
      "auto_upgrade" : true,
      "surge" : 5,
      "surge_percentage" : 50,
      "max_unavailable" : 1
    }
  },
  "interconnect_config" : {
    "cen_id" : "cen-ey9k9nfhz0f*******",
    "ccn_id" : "ccn-qm5i0i0q9yi*******",
    "ccn_region_id" : "cn-shanghai",
    "bandwidth" : 10,
    "improved_period" : "1"
  },
  "interconnect_mode" : "improved",
  "max_nodes" : 10
}

错误码

访问错误中心查看更多错误码。

开发者资源

  • SDK

    阿里云为您提供多种语言的SDK,帮助您快速通过API集成阿里云的产品和服务,推荐您使用SDK调用API,已免除您手动签名验证。

  • OpenAPI Explorer

    快速检索,可视化调试API,在线命令行工具,同步动态生成可执行的SDK代码示例。

  • 阿里云CLI

    阿里云资产管理和配置工具,可通过命令方式同时管理多个阿里云产品和服务,简单快捷,是您上云好帮手。