HP VAN SDN Controller REST API Guide
"device_port": 62075,
"dpid": "00:64:74:46:a0:ff:07:00",
"last_message": "2013-10-16T23:54:35.576Z",
"negotiated_version": "1.3.0",
"num_buffers": 0,
"num_tables": 3,
"ready": "2013-10-16T21:17:02.652Z"
}
]
}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Datapaths/{dpid}
Sample request
Get a datapath by its dpid:
GET /sdn/v2.0/of/datapaths/{dpid}
There is no request body for this API.
Sample response
{
"datapath": {
"capabilities": [
"flow_stats",
"table_stats",
"port_stats",
"group_stats",
"port_blocked"
],
"device_ip": "140.1.1.1",
"device_port": 62075,
"dpid": "00:64:74:46:a0:ff:07:00",
"last_message": "2013-10-16T23:55:27.598Z",
"negotiated_version": "1.3.0",
"num_buffers": 0,
"num_tables": 3,
"ready": "2013-10-16T21:17:02.652Z"
}
}
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Datapaths/{dpid}/controllers
Sample request
List controllers and their roles on the datapath with the given dpid:
GET /sdn/v2.0/of/datapaths/{dpid}/controllers
There is no request body for this API.
54 /sdn/v2.0/of