HP VAN SDN Controller REST API Guide

Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Stats/groups
List group statistics
Sample request
List all group statistics:
GET /sdn/v2.0/stats/groups
List all group statistics from a given datapath:
GET /sdn/v2.0/stats/groups?dpid="00:00:00:00:00:00:00:02"
List the group statistics for a given group:
GET /sdn/v2.0/stats/groups?dpid="00:00:00:00:00:00:00:02"&group_id=2
There is no request body for this API.
Sample response
{"stats": [{
"dpid": "00:0c:00:24:a8:cc:78:00",
"version": "1.3.0",
"group_stats": [{
"id": 121,
"ref_count": 0,
"packet_count": 0,
"byte_count": 0,
"duration_sec": 30,
"duration_nsec": 773000000,
"bucket_stats": [{
"packet_count": 0,
"byte_count": 0
}]
}]
}]}
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Meter statistics
Sample request
List all meter statistics:
GET /sdn/v2.0/of/stats/meters
List meter statistics for a specific datapath:
GET /sdn/v2.0/of/stats/meters?dpid="00:64:74:46:a0:ff:07:00"
52 /sdn/v2.0/of