}
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
{
}
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
"product_id": "",
"sku": "",
"state": "ACTIVE",
"uid": "com.hp.sdn.ctl.linkdisco",
"vendor": "Hewlett-Packard",
"version": "2.3.5.6370"
}
]
"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"
}
Application manager actions using curl commands 175
Need help?
Do you have a question about the HPE VAN SDN Controller 2.7 and is the answer not in the manual?
Questions and answers