HP VAN SDN Controller REST API Guide
"state": "ACTIVE",
"uid": "com.hp.sdn.ctl.linkdisco",
"vendor": "Hewlett-Packard",
"version": "1.21.0.SNAPSHOT"
}
]
}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503
Deploy app
Sample request
Deploy app to staging:
POST /sdn/v2.0/apps
Request body is binary data, consisting of the binary that make up the Aurora controller to be
deployed. The binary data is expected to have meta information containing the app's version,
vendor, name, and optional description.
Sample response
{"app": {
"uid": "com.hp.cloud",
"version": "01.11.00.2342",
"vendor": "Hewlett-Packard",
"name": "Cloud Controller",
"desc": "Cloud Network Controller",
"state": "INSTALLED",
"deployed": "2013-05-23T10:09:08.000Z"
}}
Location header: /sdn/v2.0/apps/{app_uid}
Response codes
• Normal: Created (201)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Apps/{app uid}
Get app info
Sample request
Get app info:
GET /sdn/v2.0/apps/com.hp.sdn.tvue
There is no request body for this API.
Sample response
{
"app": {
"deployed": "2013-10-16T21:15:10.922Z",
"desc": "Topology Viewer",
"name": "Topology Viewer",
"state": "ACTIVE",
"uid": "com.hp.sdn.tvue",
26 /sdn/v2.0