全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

将集群内节点移入节点池

请求参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数
参数名称
类型
必填
描述
Action String
公共参数,本接口取值:AddClusterInstanceToNodePool。
Version String
公共参数,本接口取值:2019-08-06。
ClusterId String

集群id

NodePoolId String

节点池id

InstanceIds.N String

节点id

返回参数

参数名称
类型
描述
RequestId String

请求id

示例值:container-7a62c49f-347e-4fc4-9331-6e8e
InstanceSet Object[]
InstanceId String

节点ID

示例值:f1bdfe4e-1486-b34f-59bb-8d3bee97b328
Return Boolean

执行结果

示例值:true
Message String

添加成功,该字段返回为空;添加失败,返回失败的原因

示例值:null

请求示例

curl -X GET|POST
'http://kce.api.ksyun.com/?Action=AddClusterInstanceToNodePool&Version=2019-08-06'
-H 'authorization: xxx, SignedHeaders=content-type;host;x-amz-date, Signature=xxx'
-H 'cache-control: no-cache'
-H 'content-type: application/x-www-form-urlencoded'
-H 'host: kce.api.ksyun.com'
-H 'x-amz-date: 20170720T022802Z'
-d 'ClusterId=xxx&NodePoolId=xxx&InstanceIds.N=xxx'

返回示例

JSON格式

{
"RequestId":"container-7a62c49f-347e-4fc4-9331-6e8e",
"InstanceSet":[
{
"InstanceId":"f1bdfe4e-1486-b34f-59bb-8d3bee97b328",
"Return":true,
"Message":null
}
]
}

错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码
错误信息
Http状态码
描述
ClusterIdRequiredClusterId is required400集群ID必须填写
ClusterIdInvalidClusterId must match `^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$`400集群ID必须满足 `^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$`
NodePoolNotFoundnode pool is not found400节点池不存在
InstanceIdsRequiredInstanceIds is required400实例ID列表不能为空
InstanceIdsInvalidInstanceIds contains repeat value400实例ID列表包含重复值
AddInstanceToNodePoolFailedthe status of node pool is updating400添加失败,节点池正在更新中
NodeNotFoundnode is not found in cluster400集群中不存在实例
纯净模式常规模式

纯净模式

点击可全屏预览文档内容