全部文档
当前文档

暂无内容

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

文档中心

查询节点组件列表

接口说明

本接口适用于查询节点组件列表

请求参数

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

集群ID

ClusterName String

集群名称

NodeNames String[]

节点名称

NodeIds String

节点ID

Marker Int

游标起始位置

示例值:0
默认值:0
MaxResults Int

分页参数,每页最大数

示例值:10
默认值:10

返回参数

参数名称
类型
描述
RequestId String

请求ID

Data Object

返回数据

ClusterId String

集群ID

NodeComponents Object[]

节点组件列表

NodeId String

节点ID

ComponentStatus Object[]
Type String

组件类型

CurVersion String

组件当前参数版本

SpecVersion String

组件期望参数版本

请求示例

curl -X POST
'http://kce.api.ksyun.com/?Action=DescribeNodeComponents&Version=2023-01-01'
-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&ClusterName=xxx&NodeNames[0]=xxx&NodeIds=xxx&Marker=0&MaxResults=10'

返回示例

JSON格式

{
"RequestId":"111111",
"Data":{
"ClusterId":"0b76400b-efb8-4238-bddc-12df740b2c29",
"NodeComponents":[
{
"NodeId":"5a8d6d7d-6c3d-4d5b-8a03-32214c5f9278",
"ComponentStatus":[
{
"Type":"CONTAINERD",
"curVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8=",
"specVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8="
},
{
"Type":"KUBELET",
"curVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM=",
"specVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM="
},
{
"Type":"ETCD",
"curVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw=",
"specVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw="
},
{
"Type":"EVENTETCD",
"curVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ=",
"specVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ="
},
{
"Type":"ETCDCERT",
"curVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo=",
"specVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo="
},
{
"Type":"APISERVER",
"curVersion":"sb426V3rP7di90njPkcJuu0+RkQ=",
"specVersion":"sb426V3rP7di90njPkcJuu0+RkQ="
},
{
"Type":"CONTROLLERMANAGER",
"curVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI=",
"specVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI="
},
{
"Type":"SCHEDULER",
"curVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI=",
"specVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI="
},
{
"Type":"KUBERNETESCERT",
"curVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc=",
"specVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc="
},
{
"Type":"BASIC",
"curVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw=",
"specVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw="
},
{
"Type":"OSCORE",
"curVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0=",
"specVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0="
},
{
"Type":"NODEJOIN",
"curVersion":"",
"specVersion":""
}
]
},
{
"NodeId":"87b9edeb-6997-4f40-9328-93b576e6de14",
"ComponentStatus":[
{
"Type":"CONTAINERD",
"curVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8=",
"specVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8="
},
{
"Type":"KUBELET",
"curVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM=",
"specVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM="
},
{
"Type":"ETCD",
"curVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw=",
"specVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw="
},
{
"Type":"EVENTETCD",
"curVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ=",
"specVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ="
},
{
"Type":"ETCDCERT",
"curVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo=",
"specVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo="
},
{
"Type":"APISERVER",
"curVersion":"sb426V3rP7di90njPkcJuu0+RkQ=",
"specVersion":"sb426V3rP7di90njPkcJuu0+RkQ="
},
{
"Type":"CONTROLLERMANAGER",
"curVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI=",
"specVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI="
},
{
"Type":"SCHEDULER",
"curVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI=",
"specVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI="
},
{
"Type":"KUBERNETESCERT",
"curVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc=",
"specVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc="
},
{
"Type":"BASIC",
"curVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw=",
"specVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw="
},
{
"Type":"OSCORE",
"curVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0=",
"specVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0="
},
{
"Type":"NODEJOIN",
"curVersion":"",
"specVersion":""
}
]
},
{
"NodeId":"98db5495-efcd-4e0f-acd6-3aee15d3bb3a",
"ComponentStatus":[
{
"Type":"CONTAINERD",
"curVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8=",
"specVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8="
},
{
"Type":"KUBELET",
"curVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM=",
"specVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM="
},
{
"Type":"ETCD",
"curVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw=",
"specVersion":"1xPI5JOfGcfMJ1JuRxZt4h8tyyw="
},
{
"Type":"EVENTETCD",
"curVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ=",
"specVersion":"v/t7UmLDtlUUxht99dPQxc1f9vQ="
},
{
"Type":"ETCDCERT",
"curVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo=",
"specVersion":"qJK+YwVWsK6Jw9TM50+jlRG6nEo="
},
{
"Type":"APISERVER",
"curVersion":"sb426V3rP7di90njPkcJuu0+RkQ=",
"specVersion":"sb426V3rP7di90njPkcJuu0+RkQ="
},
{
"Type":"CONTROLLERMANAGER",
"curVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI=",
"specVersion":"Ir/jKppspfw4B7/RBoC68IzcaCI="
},
{
"Type":"SCHEDULER",
"curVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI=",
"specVersion":"wFtRh7lWt0z+MPbfuIXeNrwTDvI="
},
{
"Type":"KUBERNETESCERT",
"curVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc=",
"specVersion":"8MT3cgSAyQ61aVT1mJAPeujq/Uc="
},
{
"Type":"BASIC",
"curVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw=",
"specVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw="
},
{
"Type":"OSCORE",
"curVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0=",
"specVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0="
},
{
"Type":"NODEJOIN",
"curVersion":"",
"specVersion":""
}
]
},
{
"NodeId":"cb9edd80-6dbd-4f90-b330-dbacdc05c62d",
"ComponentStatus":[
{
"Type":"BASIC",
"curVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw=",
"specVersion":"b5fhAas1XGfSG3uBzIlm2eNkANw="
},
{
"Type":"OSCORE",
"curVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0=",
"specVersion":"pip+1MJIaqVTHm9OFGYZ3Jzj2w0="
},
{
"Type":"CONTAINERD",
"curVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8=",
"specVersion":"evKv1Mx5GHYRTDYYr1fB1lszNa8="
},
{
"Type":"KUBELET",
"curVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM=",
"specVersion":"KKCBBoOfpoqJO4fIIhGAVd9qNLM="
},
{
"Type":"NODEJOIN",
"curVersion":"",
"specVersion":""
}
]
}
]
}
}

错误码

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

纯净模式常规模式

纯净模式

点击可全屏预览文档内容