HP VAN SDN Controller REST API Guide
Datapaths/{dpid}/groups
List groups
Sample request
List all groups for the given dpid:
GET /sdn/v2.0/of/datapaths/{dpid}/groups
There is no request data.
Sample response
{
"groups": [
{
"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)
Add new group
Sample request
Add a new group for the given dpid:
POST /sdn/v2.0/of/datapaths/{dpid}/groups
{
"version": "1.3.0",
"group": {
"id": 1,
"type": "all",
"command": "add",
"buckets": [
{
"weight": 0,
"watch_group": "ANY",
"watch_port": "ANY",
"actions": [
{"output": 24}
]
}
]
Datapaths 65