查看容器应用详情,按照指定的容器应用ID,返回该容器应用的配置详情和部署的节点组信息。
操作类型:GET
URL:https://{ip}:{port}/edgemanager/v1/app?appID={id}
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
appID |
必选 |
容器应用ID |
取值最小为1,最大值为2^32-1的整数。 |
请求样例:
GET https://10.10.10.10:30035/edgemanager/v1/app?appID=2
{ "status": "00000000", "msg": "success", "data": { "appID": 2, "appName": "test0115", "containers": [ { "args": null, "command": [], "containerPort": null, "cpuLimit": 2.1, "cpuRequest": 2.1, "env": [ { "name": "lib", "value": "/test" } ], "groupID": 1001, "hostPathVolumes": null, "image": "ubuntu", "imageVersion": "18.04", "memLimit": 200, "memRequest": 200, "npu": 2, "name": "c1", "userID": 1001 } ], "createdAt": "2023-09-12 17:26:04", "description": "itisatestin0115", "modifiedAt": "2023-09-12 17:26:04", "nodeGroupInfos": [] } }
响应状态码:200
字段 |
类型 |
说明 |
---|---|---|
status |
字符串 |
状态码 |
msg |
字符串 |
描述信息 |
data |
对象 |
容器应用信息 |
字段 |
类型 |
说明 |
---|---|---|
appID |
数字 |
容器应用ID |
appName |
字符串 |
容器应用名称 |
containers |
container数组 |
容器配置数组 |
createdAt |
字符串 |
创建时间 |
description |
字符串 |
容器应用描述信息 |
modifiedAt |
字符串 |
更新时间 |
nodeGroupInfos |
nodeGroupInfo数组 |
节点组信息 |
参数 |
类型 |
说明 |
---|---|---|
name |
字符串 |
容器名称 |
image |
字符串 |
使用的镜像名称 |
imageVersion |
字符串 |
镜像版本 |
cpuRequest |
数字 |
需要的CPU数 |
cpuLimit |
数字 |
最大使用CPU数 |
memRequest |
数字 |
需要的内存大小 |
memLimit |
数字 |
使用的最大内存大小 |
npu |
数字 |
使用的NPU个数 |
command |
字符串数组 |
容器执行命令 |
args |
字符串数组 |
容器执行命令参数 |
env |
EnvVar对象数组 |
环境变量 |
containerPort |
ContainerPort对象数组 |
端口映射容器中端口 |
userID |
数字 |
容器运行用户ID |
groupID |
数字 |
容器运行组ID |
hostPathVolumes |
HostPathVolumes对象数组 |
容器主机路径挂载信息 |