HP VAN SDN Controller REST API Guide

Response codes
Normal: Created (201)
Error: Bad Request (400), Unauthorized (401), Service Unavailable (503)
Delete an observation post
Sample request
Delete an observation post with the given data path id and the packet identifier:
DELETE /sdn/v2.0/diag/observations
Sample request body:
1 {"observation": {
2 "dpid": "00:00:00:00:00:00:00:01",
3 "packet_uid": "1"
4 }
5 }
Sample response
There is no response body.
Response codes
Normal: No Content (204)
Error: Unauthorized (401), Service Unavailable (503)
Diag/packets
List all packets
Sample request
List all packets:
GET /sdn/v2.0/diag/packets
List all observations by the specified packet type:
GET /sdn/v2.0/diag/packets?type="TCP"
There is no request body for this API.
Sample response
1 {"packets": [
2 {
3 "uid": "1",
4 "eth": {
5 "eth_src" : "01:01:01:01:01:01",
6 "eth_dst" : "02:02:02:02:02:02",
7 "eth_type": "0x0800(IPv4)",
8 "vlan_vid" : "100",
9 "vlan_priority" : "PRIORITY_5"
10 },
11 "ip": {
12 "ipv4_dst": "10.0.100.102",
13 "ipv4_src": "10.0.100.101",
14 "ip_proto": "TCP",
15 "ip_dscn": "CS0",
16 "ip_scn": "NOT_ECT"
74 /sdn/v2.0/net