Difference between revisions of "Category:API"

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search
(Replaced content with "API notes.")
 
Line 1: Line 1:
Browser rest access
+
API notes.
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"
+
 
+
Event Script to process incoming data
+
var thisdata = JSON.parse(data);
+
log.warn(data);
+
log.warn(thisdata);
+
log.warn(thisdata.data.test);
+

Latest revision as of 13:56, 24 April 2019

API notes.