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