调用listRecentChangeOrder列出应用历史变更单列表
接口URL:/v1/app/inst/listRecentChangeOrder
Content-Type:text/plain
请求方式:get
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
appDeployId | String | String | 是 | 应用部署ID,数据来源于获取已部署应用列表 |
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
无请求参数KEY/VALUE类型 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | Integer | Integer | 响应编码 2000 success |
message | String | String | 消息内容 |
returnObj | Array | Array | 返回数据 |
error | String | String | 调用错误时返回的错误编码 |
表returnObj
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
batchCount | Integer | Integer | 分批次数,最少1批,最多5批 |
batchInternal | Integer | Integer | 分批间隔,单位秒 |
batchType | String | String | 分批发布时下一批变更的执行方式, AUTOMATIC-自动MANUAL-手动 |
changeOrderId | String | String | 应用变更ID |
changeSource | String | String | 变更来源CONSOLE-控制台POP-POP API或工具 |
changeType | String | String | 变更流程类型 |
createDate | String | String | 创建时间 |
createStaff | String | String | 创建人 |
deploymentVer | String | String | 部署版本号 |
description | String | String | 变更描述 |
objectId | String | String | 变更对应记录id |
objectType | String | String | 对象类型PIPELINE_DEPLOY、DEPLOY、OPERATE |
resourceName | String | String | 资源名称 |
resourceType | String | String | 资源类型INST, DEPLOYMENT, POD, SERVICE, INGRESS |
resourceYaml | String | String | 变更对应的资源yaml文件 |
statusCd | String | String | 状态S0A有效S0X无效 |
statusDate | String | String | 状态时间 |
timeout | Integer | Integer | 变更超时时间,单位秒 |
updateDate | String | String | 修改时间 |
updateStaff | String | String | 修改人 |
返回示例:成功
{"statusCode":2000,"returnObj":[{"batchCount":"1","batchInternal":"60","batchType":" AUTOMATIC","changeOrderId":"29b25b16-0b71-48ae-8e82-3746a052b98d ","changeSource":"CONSOLE","changeType":"START","createDate":"19868000000","createStaff":"张三","deploymentVer":"1.0.0","description":"启动应用","objectId":"29b25b16-0b71-48ae-8e82-3746a052b98d ","objectType":" DEPLOY","resourceName":"test1","resourceType":"SERVICE","resourceYaml":"
apiVersion: "v1"
kind: "Service"
metadata:
labels:
","statusCd":"S0A","statusDate":"1986560000000","timeout":60,"updateDate":"165956000000","updateStaff":"张三"}],"message":"成功"}
返回示例:失败
{"statusCode":191251,"error":"MSAP_1251","message":"非法的应用部署ID"}