HP VAN SDN Controller REST API Guide
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Systems
List controllers
Sample request
List all controllers:
GET /sdn/v2.0/systems
List controller by the given IP:
GET /sdn/v2.0/systems?ip="192.168.1.100"
There is no request body for this API.
Sample response
1 {
2 "systems": [
3 {
4 "uid": "adc5e492-957c-4f8c-aa0a-97fa2dac5f23",
5 "version": "01.11.00.0000",
6 "role": "leader",
7 "core_data_version": 0,
8 "core_data_version_timestamp": "1970-01-01T00:00:00.000Z",
9 "time": "1970-01-01T00:00:00.000Z",
10 "self": true,
11 "status": "active"
12 }
13 ]
14 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Systems/{system uid}
Get information on the given controller
Sample request
List controller information:
GET /sdn/v2.0/systems/adc5e492-957c-4f8c-aa0a-97fa2dac5f23
There is no request body for this API.
Sample response
1 {
2 "system": {
3 "uid": "adc5e492-957c-4f8c-aa0a-97fa2dac5f23",
4 "version": "01.11.00.0000",
5 "ip": "192.168.1.100",
6 "role": "leader",
32 /sdn/v2.0