HP VAN SDN Controller REST API Guide
Apps/{app uid}/health
Get app health
Sample request
Get app health:
GET /sdn/v2.0/apps/{app_uid}/health
There is no request body for this API.
Sample response
{
"app": {
"deployed": "2013-10-16T21:15:10.922Z",
"name": "Topology Viewer",
"state": "ACTIVE",
"status": "OK",
"uid": "com.hp.sdn.tvue"
}
}
Valid states reflect OSGi states
Valid statuses are: OK, WARN
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Monitor app health
Sample request
Monitor app health:
HEAD /sdn/v2.0/apps/{app_uid}/health
There is no request body for this API.
Sample response
There is no response body for this API.
Response codes
• Normal: OK (200)
• Warning encountered: WARN (290)
• Error encountered: ERROR (295)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503
Logs
Download controller logs as a zip file
Sample request
Download controller logs from all team members:
GET /sdn/v2.0/logs
Logs 29