HP VAN SDN Controller REST API Guide
4 /sdn/v2.0/of
Stats
Sample request
List controller statistics for all controllers that are part of this controller's team:
GET /sdn/v2.0/of/stats
There is no request body for this API.
Sample response
{
"controller_stats": [
{
"duration_ms": 8413750,
"lost": {
"bytes": 0,
"packets": 0
},
"msg_in": 3178,
"msg_out": 1594,
"packet_in": {
"bytes": 0,
"packets": 0
},
"packet_out": {
"bytes": 38920,
"packets": 556
},
"uid": "aa079dc9-b9ec-4e15-a2ee-b753c2d02397"
}
]
}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Stats/ports
Sample request
List all port statistics:
GET /sdn/v2.0/of/stats/ports
List port statistics for a specific datapath:
GET /sdn/v2.0/of/stats/ports?dpid="00:64:74:46:a0:ff:07:00"
List port statistics for a specific port:
GET /sdn/v2.0/of/stats/ports?dpid="00:64:74:46:a0:ff:07:00"&port=3
There is no request body for this API.
50 /sdn/v2.0/of