最近更新时间:2021-03-22 16:31:47
本接口适用于新增节点到集群。
POST
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
ClusterId | String | 是 | 集群id |
InstanceSet.N | Array of InstanceSet | 是 | 节点配置信息 NodeRole只能是Worker。 |
参数 | 类型 | 描述 |
---|---|---|
RequestId | String | 请求ID |
InstanceSet | 数据类型 | 添加的节点信息 |
参数 | 类型 | 描述 |
---|---|---|
InstanceId | String | 实例id |
InstanceName | String | 实例名称 |
新增节点
http://kce.api.ksyun.com/?Action=AddClusterInstances&Version=2019-08-06
&ClusterId=b12d7079-1e59-4626-90eb-xxxxxx
&InstanceSet.0.NodeRole=Worker
&InstanceSet.0.NodePara.0={"MaxCount":2,"MinCount":2,"ImageId":"5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7","SubnetId":"7e23b980-11c2-4bb0-9388-xxxxxx","InstancePassword":"Root23123","SecurityGroupId":"d46c7672-7ca9-4f51-bbd9-xxxxxx","DataDiskGb":50,"ChargeType":"Daily","InstanceType":"I3.4B","PurchaseTime":0,"InstanceName":"openapi-work","InstanceNameSuffix":1}
{
"RequestId": "9ccb3336-dfcc-4f92-a9a7-xxxxx",
"InstanceSet": [
{
"InstanceId": "323bf08c-fbfb-46c0-b140-xxxxx",
"InstanceName": "openapi-work-1"
},
{
"InstanceId": "3f09cac4-8a1e-4960-8858-xxxxx",
"InstanceName": "openapi-work-2"
}
]
}
纯净模式