调用getDeployConfig接口获取通用应用的镜像部署配置详情
接口URL:/v1/image/deploy/configs/getDeployConfig
Content-Type:text/plain
请求方式:get
URI参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
deployConfigId | String | String | 是 | 部署配置ID,数据来源于部署配置列表的id属性值 |
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
无请求参数KEY/VALUE类型 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
code | Integer | Integer | 暂无描述 |
data | String | String | 暂无描述 |
msg | String | String | 暂无描述 |
表data
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
appId | String | String | 应用ID |
createStaff | String | String | 创建人 |
createTime | String | String | 创建时间 |
deployEnvId | String | String | 部署环境ID |
deployEnvName | String | String | 部署环境名称 |
envVariableList | Array | Array | 环境变量 |
id | String | String | 部署配置ID |
lifeCycleMgt | String | String | 生命周期管理 |
name | String | String | 部署配置名称 |
podResourceSpec | String | String | 单Pod资源规格 |
startCommand | String | String | 启动命令 |
tenantId | Integer | Integer | 租户ID |
updateStaff | String | String | 更新人 |
updateTime | String | String | 更新时间 |
表envVariableList
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
name | String | String | 否 | 变量名称 |
type | String | String | 否 | 变量类型,只能填写CUSTOM |
value | String | String | 否 | 变量值 |
表ifeCycleMgt
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
liveness | Object | Object | 否 | 存活探针 |
readiness | Object | Object | 否 | 就绪探针 |
表liveness
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
enabled | Boolean | Boolean | 否 | 是否开启 |
exec | Object | Object | 否 | 执行命令 |
failureThreshold | Integer | Integer | 否 | 失败阈值 |
httpGet | Object | Object | 否 | 执行http GET请求 |
initialDelaySeconds | Integer | Integer | 否 | 初始延迟检测时间 |
mode | String | String | 否 | 模式,填写内容为:EXEC,HTTP_GET,TCP_SOCKET |
periodSeconds | Integer | Integer | 否 | 探测周期 |
successThreshold | Integer | Integer | 否 | 成功阈值 |
tcpSocket | Object | Object | 否 | 检测tcp端口 |
tcpSocket.host | String | String | 否 | 主机 |
tcpSocket.port | Integer | Integer | 否 | 端口 |
timeoutSeconds | Integer | Integer | 否 | 超时时间 |
表exec
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
command | Array | Array | 否 | 命令列表 |
表httpGet
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
headerList | Array | Array | 否 | 请求头 |
host | String | String | 否 | 主机 |
path | String | String | 否 | 路径 |
port | Integer | Integer | 否 | 端口 |
scheme | String | String | 否 | 模式(协议),填写内容为:HTTP/HTTPS |
表headerList
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
name | String | String | 否 | 名称 |
value | String | String | 否 | 值 |
表tcpSocket
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
host | String | String | 否 | 主机 |
port | Integer | Integer | 否 | 端口 |
表readiness
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
enabled | Boolean | Boolean | 否 | 是否开启 |
exec | Object | Object | 否 | 执行命令 |
failureThreshold | Integer | Integer | 否 | 失败阈值 |
httpGet | String | String | 否 | 执行http GET请求 |
initialDelaySeconds | Integer | Integer | 否 | 初始延迟检测时间 |
mode | String | String | 否 | 模式,填写内容为:EXEC,HTTP_GET,TCP_SOCKET |
periodSeconds | Integer | Integer | 否 | 探测周期 |
successThreshold | Integer | Integer | 否 | 成功阈值 |
tcpSocket | Object | Object | 否 | 检测tcp端口 |
表podResourceSpec
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
cpuLimit | Integer | Integer | 是 | cpu下限 |
cpuRequest | Integer | Integer | 是 | cpu上限 |
memoryLimit | Integer | Integer | 是 | 内存下限 |
memoryRequest | Integer | Integer | 是 | 内存上限 |
表startCommand
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
args | Array | Array | 否 | 参数 |
command | String | String | 否 | 命令 |
返回示例:成功
{"id":"test_9e554a2f0e61","name":"test_7341b967464b","deployEnvId":"test_9d5caa22a3a4","appId":"test_5044f313f1c9","tenantId":96,"createTime":"2029-01-23 05:56:35","createStaff":"test_d8ceb00a4836","updateTime":"2014-09-20 20:56:44","updateStaff":"test_99590465f847","deployEnvName":"test_1e8fcae57417","podResourceSpec":{"cpuLimit":85,"cpuRequest":45,"memoryLimit":89,"memoryRequest":41},"startCommand":{"command":"test_7875f6984c80","args":["test_283275a01275"]},"envVariableList":[{"type":"test_879f38287b80","name":"test_57087f341a0d","value":"test_71346300e308"}],"lifeCycleMgt":{"liveness":{"enabled":true,"initialDelaySeconds":97,"periodSeconds":83,"successThreshold":39,"timeoutSeconds":54,"failureThreshold":41,"mode":"test_222874d0db44","exec":{"command":["test_088b126ad7ed"]},"httpGet":{"host":"test_1f218e448bbc","path":"test_4fb6a6197e0c","port":54,"scheme":"test_57ea0a65c074","headerList":[{"name":"test_b7940802afdf","value":"test_498a2c185b34"}]},"tcpSocket":{"host":"test_c1b7f93ba70b","port":10}},"readiness":{"enabled":true,"initialDelaySeconds":56,"periodSeconds":78,"successThreshold":36,"timeoutSeconds":5,"failureThreshold":70,"mode":"test_65a4d033c996","exec":{"command":["test_b0f8ca8ee9dd"]},"httpGet":{"host":"test_ff31590e94cb","path":"test_4e47e91a6ba3","port":98,"scheme":"test_c8b68bd4165b","headerList":[{"name":"test_590be96afa4f","value":"test_8b6175086727"}]},"tcpSocket":{"host":"test_9012f615aa3b","port":84}}}}
返回示例:失败
{"code":"500","data":"","msg":"应用不存在"}