云容器引擎-升级集群
接口功能介绍
调用该接口升级集群。
接口约束
无
URI
POST /v1.1/ccse/clusters/*/upgrade
路径参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
clusterName | 是 | String | 集群名称 | ccse-demo |
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池编码 | bb9fdb42056f11eda1610242ac110002 |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
nextVersion | 是 | String | 集群可升级版本 | ||
version | 是 | String | 当前版本 | ||
concurrency | 是 | Integer | worker升级并发数量 |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 | 800 | |
message | String | 提示信息 | ||
returnObj | Object | 返回对象 | returnObj | |
error | String | 错误码 | CCSE_500 |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
taskId | Long | 任务id | 1 | |
clusterId | Long | 集群ID | 16853784738000012 | |
parentTaskId | Long | parentTaskId | 0 | |
nodeName | String | 节点名称 | ||
nodeType | String | 节点类型 | ||
masterPlanHash | String | masterPlanHash | ||
workerPlanHash | String | workerPlanHash | ||
taskStatus | String | 任务状态 | ||
version | String | 版本 | ||
status | Integer | 状态码 | 1 | |
createdBy | Long | 创建者 | 1 | |
createdTime | String | 创建时间 | ||
updatedTime | String | 更新时间 |
枚举参数
无
请求示例
请求url
POST https://ccse-global.ctapi.ctyun.cn/v1.1/ccse/clusters/ccse-demo/upgrade
请求头header
{regionId:bb9fdb42056f11eda1610242ac110002}
请求体body
{
"nextVersion": "1.23.17",
"version": "1.23.3",
"concurrency": 2
}
响应示例
{
"statusCode": 800,
"message": "升级集群成功: ccse-demo",
"returnObj": {
"taskId": 2,
"clusterId": "16853784738000012",
"parentTaskId": 0,
"nodeName": "10.150.67.17",
"nodeType": "master0",
"masterPlanHash": "5afd898058ea38dbbf46d3c02aff778bef0882780c22910a45ea4339",
"workerPlanHash": "4b310e5f152c992466799af76e9a45c38f2963b2fc73f134f06aac94",
"taskStatus": "start",
"version": "1.23.17",
"status": 1,
"createdBy": 1,
"createdTime": null,
"updatedTime": null
}
}