调用describeAppInstanceList接口获取K8s 应用pod实例列表
接口URL:/v1/app/inst/describeAppInstanceList
Content-Type:text/plain
请求方式:get
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
appDeployId | String | String | 是 | 应用部署ID,数据来源于获取已部署应用列表 |
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
无请求参数KEY/VALUE类型 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | Integer | Integer | 响应编码 2000 success |
message | String | String | 消息内容 |
returnObj | Object | Object | 返回数据 |
error | String | String | 调用错误时返回的错误编码 |
表returnObj
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
containerName | String | String | K8s container名称 |
createDate | String | String | K8s pod创建时间 |
imageUrl | String | String | K8s启动pod镜像地址 |
name | String | String | K8s pod名称 |
namespaceName | String | String | K8s namespace名称 |
nodeName | String | String | K8s node名称 |
podIp | String | String | K8s pod IP |
restartCount | Integer | Integer | K8s pod重启次数 |
statusCd | String | String | pod状态:1,启动中;2,运行中;3,停止中;4,已停止;5,停止发生错误;6,未知错误;7,变更中 |
statusCdName | String | String | pod状态名称 |
返回示例:成功
{"statusCode":2000,"returnObj":{"containerName":"测试","createDate":"1436590000000","imageUrl":"http:///","name":"test","namespaceName":"test-namespace","nodeName":"test","podIp":"192.168.1.1","restartCount":10,"statusCd":"2","statusCdName":"运行中"},"message":"成功"}
返回示例:失败
{"statusCode":191251,"error":"MSAP_1251","message":"非法的应用部署ID"}