HP VAN SDN Controller REST API Guide
}
}
Sample response
{
"version": "1.3.0",
"group": {
"id": 1,
"type": "all",
"buckets": [{
"weight": 0,
"watch_group": "ANY",
"watch_port": "ANY",
"actions": [{"output": 24}]
}]
}
}
Response codes
• Normal: Created (201)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Datapaths/{dpid}/groups/{group id}
Get group information
Sample request
Get group information for the given dpid and group_id:
GET /sdn/v2.0/of/datapaths/{dpid}/groups/{group_id}
There is no request data.
Sample response
{
"group": {
"buckets": [
{
"actions": [
{
"output": 24
}
],
"watch_group": "ANY",
"watch_port": "ANY",
"weight": 0
}
],
"id": 1,
"type": "all"
},
"version": "1.3.0"
}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
66 /sdn/v2.0/of