Difference between revisions of "APIs"
From Observer GigaFlow Support | VIAVI Solutions Inc.
Kevin Wilkie (Talk | contribs) |
Kevin Wilkie (Talk | contribs) |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:APIs]] | ||
+ | [[Category:NetFlow]] | ||
+ | [[Category:Technical Notes]] | ||
+ | :[[Flow/APIs/health/rest|Rest For System Health Data]] | ||
:[[Flow/APIs/rest|Rest For Summary Data]] | :[[Flow/APIs/rest|Rest For Summary Data]] | ||
:[[FlowSec/APIs/rest|Rest For FlowSec Data]] | :[[FlowSec/APIs/rest|Rest For FlowSec Data]] | ||
+ | :[[FPR/APIs/rest|Rest For First Packet Response Data]] | ||
+ | :[[Forensics/APIs/forensics|Rest For Forensics Data]] | ||
+ | |||
+ | Browser rest access | ||
+ | http://172.21.40.128:7902/rest/?jsonRequest={"reportName":"Applications","type":"Table"}&portalUser=admin@myipsla.com | ||
+ | |||
+ | Sending data to scripts | ||
+ | curl -H "Content-Type: application/json" -X POST -d '{"type":"processscript","scriptid":-5,"data":{"test":false}}' "http://172.21.40.119:7902/rest/api/?userName=admin&userPass=admin" | ||
+ | curl -H "Content-Type: application/json" -X POST -d '{"type":"processscript","scriptname":"data script 1","data":{"test":false}}' "http://172.21.40.119:7902/rest/api/?userName=admin&userPass=admin" | ||
+ | |||
+ | |||
+ | ARPS | ||
+ | {"action":"get","type":"Table","length":2,"start":0,"device":["88.151.80.121"],"endtime":1574778019000,"starttime":1574734819000,"reportName":"ARP Entries" "userid":"wilkiek"} | ||
+ | {"action":"get","type":"Table","length":10,"start":0,"device":["172.21.40.250"],"reportName":"ARP Entries With User","ip":["88.151.80.150"],"mac":["c0:4a:00:2c:d4:06"], "userid":["wilkiek"]} | ||
+ | CAM | ||
+ | {"action":"get","type":"Table","length":2,"start":0,"reportName":"CAM Entries", "mac":["00:1e:49:89:c4:41"]} | ||
+ | {"action":"get","type":"Table","length":2,"start":0,"endtime":1574778019000,"starttime":1574734819000,"reportName":"CAM Entries", "mac":["00:1e:49:89:c4:41"]} | ||
+ | Routers | ||
+ | {"action":"get","type":"Table","length":20,"start":0,"endtime":1574778019000,"starttime":1574734819000,"reportName":"Seen IPs", "ip":["172.21.21.21"]} | ||
+ | |||
+ | Forensics | ||
+ | {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"add":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} | ||
+ | {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"srcadd":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} | ||
+ | {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"dstadd":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} | ||
+ | {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"dstadd":["172.21.21.21"],"starttime":1574780400000,"appid":["393661"],"reportName":"Addresses By Source"} | ||
+ | {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"srcadd":["172.21.21.21"],"starttime":1574780400000,"appid":["393661"],"reportName":"Addresses By Dest"} |
Latest revision as of 08:56, 16 March 2020
- Rest For System Health Data
- Rest For Summary Data
- Rest For FlowSec Data
- Rest For First Packet Response Data
- Rest For Forensics Data
Browser rest access http://172.21.40.128:7902/rest/?jsonRequest={"reportName":"Applications","type":"Table"}&portalUser=admin@myipsla.com
Sending data to scripts
curl -H "Content-Type: application/json" -X POST -d '{"type":"processscript","scriptid":-5,"data":{"test":false}}' "http://172.21.40.119:7902/rest/api/?userName=admin&userPass=admin" curl -H "Content-Type: application/json" -X POST -d '{"type":"processscript","scriptname":"data script 1","data":{"test":false}}' "http://172.21.40.119:7902/rest/api/?userName=admin&userPass=admin"
ARPS
{"action":"get","type":"Table","length":2,"start":0,"device":["88.151.80.121"],"endtime":1574778019000,"starttime":1574734819000,"reportName":"ARP Entries" "userid":"wilkiek"} {"action":"get","type":"Table","length":10,"start":0,"device":["172.21.40.250"],"reportName":"ARP Entries With User","ip":["88.151.80.150"],"mac":["c0:4a:00:2c:d4:06"], "userid":["wilkiek"]}
CAM
{"action":"get","type":"Table","length":2,"start":0,"reportName":"CAM Entries", "mac":["00:1e:49:89:c4:41"]} {"action":"get","type":"Table","length":2,"start":0,"endtime":1574778019000,"starttime":1574734819000,"reportName":"CAM Entries", "mac":["00:1e:49:89:c4:41"]}
Routers
{"action":"get","type":"Table","length":20,"start":0,"endtime":1574778019000,"starttime":1574734819000,"reportName":"Seen IPs", "ip":["172.21.21.21"]}
Forensics
{"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"add":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"srcadd":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"dstadd":["172.21.21.21"],"starttime":1574780400000,"reportName":"Applications"} {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"dstadd":["172.21.21.21"],"starttime":1574780400000,"appid":["393661"],"reportName":"Addresses By Source"} {"action":"get","type":"Table","device":["172.21.40.254"],"endtime":1574783441000,"srcadd":["172.21.21.21"],"starttime":1574780400000,"appid":["393661"],"reportName":"Addresses By Dest"}