HP VAN SDN Controller REST API Guide

Sample response
1 {"observations": [
2 {
3 "dpid": "00:00:00:00:00:00:00:01",
4 "type": "TCP",
5 "packet_uid": "1",
6 "status": "OK"
7 },
8 {
9 "dpid": "00:00:00:00:00:00:00:01",
10 "type": "UDP",
11 "packet_uid": "2"
12 },
13 {
14 "dpid": "00:00:00:00:00:00:00:02",
15 "type": "UDP",
16 "packet_uid": "2"
17 },
18 {
19 "dpid": "00:00:00:00:00:00:00:03",
20 "type": "UDP",
21 "packet_uid": "2"
22 },
23 {
24 "dpid": "00:00:00:00:00:00:00:03",
25 "type": "DHCP",
26 "packet_uid": "3"
27 },
28 {
29 "dpid": "00:00:00:00:00:00:00:03",
30 "type": "ICMP",
31 "packet_uid": "4"
32 }
33 ]
34 }
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Create an observation post
Sample request
Create an observation post:
POST /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
1 {"observation": {
2 "dpid": "00:00:00:00:00:00:00:01",
3 "packet_uid": "1"
4 }
Diagnostics 73