EasyManua.ls Logo

HP HPE VAN SDN Controller 2.7 - Listing Information about an Application; Getting Application Health Status

HP HPE VAN SDN Controller 2.7
231 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
"product_id": "",
"sku": "",
"state": "ACTIVE",
"uid": "com.hp.sdn.ctl.linkdisco",
"vendor": "Hewlett-Packard",
"version": "2.3.5.6370"
}
]
}
Listing information about an application
Form
curl [options] -H "X-Auth-Token:token" \
https://controller_ip:8443/sdn/v2.0/apps/app_id
Example
curl -ksS -H "X-Auth-Token:3d61f0d3e61349359e6dbd82ec02c113" \
https://10.0.1.42:8443/sdn/v2.0/apps/com.hp.sdn.ctl.diag
Example output
{
"app": {
"action": "NONE",
"catalog_id": "",
"deployed": "2014-06-18T19:22:49.536Z",
"desc": "Path Diagnostic Utility",
"download_url": "",
"name": "Path Diagnostics",
"product_id": "",
"sku": "",
"state": "ACTIVE",
"uid": "com.hp.sdn.ctl.diag",
"vendor": "Hewlett-Packard",
"version": "2.3.5.6370"
}
}
Getting application health status
The HEAD command on health status returns only the response code rather than the entire
message for management-type clients that want to poll for health status. Returns HTTP status
as follows:
200 for healthy
290 for unhealthy
295 for critical
Form
curl [options] -H "X-Auth-Token:" -w %{http_code} \
-X HEAD https://controller_ip:8443/sdn/v2.0/apps/app_id/health
Example
curl -ksS -H "X-Auth-Token:3d61f0d3e61349359e6dbd82ec02c113" -w %{http_code} \
-X HEAD https://10.0.1.42:8443/sdn/v2.0/apps/com.hp.sdn.ctl.diag/health
Example output
200
Application manager actions using curl commands 175

Table of Contents

Related product manuals