Difference between revisions of "APIs"
From Observer GigaFlow Support | VIAVI Solutions Inc.
Kevin Wilkie (Talk | contribs) |
|||
Line 9: | Line 9: | ||
Browser rest access | Browser rest access | ||
http://172.21.40.128:7902/rest/?jsonRequest={"reportName":"Applications","type":"Table"}&portalUser=admin@myipsla.com | 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" | ||
+ | |||
+ | Event Script to process incoming data | ||
+ | var thisdata = JSON.parse(data); | ||
+ | log.warn(data); | ||
+ | log.warn(thisdata); | ||
+ | log.warn(thisdata.data.test); |
Revision as of 10:57, 7 March 2019
- 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"
Event Script to process incoming data
var thisdata = JSON.parse(data); log.warn(data); log.warn(thisdata); log.warn(thisdata.data.test);