HP VAN SDN Controller REST API Guide

5 /sdn/v2.0/net
Clusters
Sample request
List all clusters:
GET /sdn/v2.0/net/clusters
There is no request body for this API.
Sample response
1 {"clusters": [{
2 "uid": "172334323",
3 "links": [{
4 "src_dpid": "00:00:00:00:00:00:00:02",
5 "src_port": 3,
6 "dst_dpid": "00:00:00:00:00:00:00:03",
7 "dst_port": 5
8 }]
9 }]}
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Clusters/{cluster uid}/tree
Sample request
Get info on a specific cluster
GET /sdn/v2.0/net/clusters/{cluster_uid}/tree
NOTE: Cluster has multiple attributes associated to it like Tree,Node,Links. Topology currently
supports Tree of cluster hence appended tree in URI.
There is no request body for this API.
Sample response
1 {"cluster": {
2 "uid": "123456780",
3 "links": [{
4 "src_dpid": "00:00:00:00:00:00:00:02",
5 "src_port": 3,
6 "dst_dpid": "00:00:00:00:00:00:00:03",
7 "dst_port": 5
8 }]
9 }}
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
68 /sdn/v2.0/net