Querying Application States
DME
Copy
GET http://<mgmt0_IP>api/mo/sys/appmgrstat/apps/app-<appId>.json
{ "totalCount": "1", "imdata": [ { "apphostingApp": { "attributes": { "appId": "nginx_1", "dn": "sys/appmgrstat/apps/app-nginx_1", "modTs": "2022-07-22T20:57:52.654+00:00", "name": "" }, "children": [ { "apphostingAppUtil": { "attributes": { "cpuAlloc": "200", "cpuUsed": "0", "diskAlloc": "10", "diskUsed": "0", "memAlloc": "64", "memUsed": "3052", "modTs": "2022-07-22T21:07:22.135+00:00", "name": "nginx_1", "rn": "util" } } }, { "apphostingAppPkg": { "attributes": { "appAuthor": "", "appDesc": "", "appName": "nginx_1", "appOwner": "appmgr", "appType": "docker", "appVer": "latest", "modTs": "2022-07-22T20:57:52.654+00:00", "name": "", "pkgName": "nginx", "pkgPath": "/bootflash/nginx.tar.gz", "pkgUrl": "", "rn": "pkg" } } }, { "apphostingAppDetail": { "attributes": { "entryPoint": "/docker-entrypoint.sh nginx -g 'daemon off;'", "guestIntf": "eth0", "healthStatus": "0", "lastHealthErr": "", "lastHealthOut": "", "modTs": "2022-07-22T20:58:04.265+00:00", "name": "nginx_1", "profileName": "default", "reservCpu": "200", "reservDisk": "10", "reservMem": "64", "rn": "detail", "runCmd": "", "runOpt": "", "state": "started" } } }, { "apphostingAppNetUtil": { "attributes": { "intfName": "eth0", "modTs": "2022-07-22T21:08:08.706+00:00", "name": "", "rn": "netutil-eth0", "rxBytes": "0", "rxErrors": "0", "rxPackets": "0", "txBytes": "1006", "txErrors": "0", "txPackets": "13" } } }, { "apphostingAppDevice": { "attributes": { "devAlias": "serial2", "devName": "iox_syslog", "devType": "serial/syslog", "modTs": "2022-07-22T20:57:52.654+00:00", "name": "", "rn": "dev-iox_syslog" } } }, { "apphostingAppNetIntf": { "attributes": { "intfName": "eth0", "ipV4Addr": "192.168.10.130", "ipV6Addr": "fe80::5054:99ff:fe99:0/64", "macAddr": "52:54:99:99:00:00", "modTs": "2022-07-22T20:58:04.265+00:00", "name": "", "netName": "iox-nat_docker0", "rn": "netintf-eth0" }}}]}}]}
Response
{ imdata:[] }
GET http://<mgmt0_IP>api/mo/sys/appmgrstat/appresource.json
{ "totalCount": "1", "imdata": [ { "apphostingAppResource": { "attributes": { "cpuAvail": "7200", "cpuQuota": "7400", "dn": "sys/appmgrstat/appresource", "memAvail": "3776", "memQuota": "3840", "modTs": "2022-07-22T20:58:04.371+00:00", "name": "", "storageAvail": "93273", "storageQuota": "110745" }}}]}
Response
{ imdata:[] }
GET http://<mgmt0_IP>api/mo/sys/appmgrstat/apps/app-<app-id>/util.json
{{ "totalCount": "1", "imdata": [ { "apphostingAppUtil": { "attributes": { "cpuAlloc": "200", "cpuUsed": "0", "diskAlloc": "10", "diskUsed": "0", "dn": "sys/appmgrstat/apps/app-nginx_1/util", "memAlloc": "64", "memUsed": "3052", "modTs": "2022-07-22T21:07:22.135+00:00", "name": "nginx_1" }}}]}
Response
{ imdata:[] }