HP VAN SDN Controller REST API Guide
Sample response
1 {
2 "region" : {
3 "uid" : "adc5e492-957c-4f8c-aa0a-97fa2dac5f01",
4 "master" : {
5 "ip" : "125.200.104.101",
6 "name" : "Controller_1"
7 },
8 "slaves" : [ {
9 "ip" : "125.200.104.102",
10 "name" : "Controller_2"
11 } ],
12 "devices" : [ {
13 "ip" : "125.200.104.200"
14 } ]
15 }
16 }
Location header: http://<controller>/sdn/v2.0/region/{region_uid}
Response codes
• Normal: OK (201)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Regions{region uid}
List regions
Sample request
List the region with the give region_uid:
GET /sdn/v2.0/regions/{region_uid}
There is no request body for this API.
Sample response
1 {
2 "region" : {
3 "uid" : "adc5e492-957c-4f8c-aa0a-97fa2dac5f01",
4 "master" : {
5 "ip" : "125.200.104.101",
6 "name" : "Controller_1"
7 },
8 "slaves" : [ {
9 "ip" : "125.200.104.102",
10 "name" : "Controller_2"
11 } ],
12 "devices" : [ {
13 "ip" : "125.200.104.200"
14 } ]
15 }
16 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Region 37