Summary Data Using the API

From Observer GigaFlow Support | VIAVI Solutions Inc.
Revision as of 15:36, 12 October 2018 by Niall (Talk | contribs)

Jump to: navigation, search

List All Devices

curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"devices"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"

List Specific Device (use device filer)

curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"devices","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"

List All Interfaces

curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":" interfacelist "}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"

List Interfaces On Specific Device (use device filer)

curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"interfacelist","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"

List Specific Interface (use interface filer)

curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"interfacelist","interface":["172.21.40.254_1"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"