Difference between revisions of "Summary Data Using the API"
From Observer GigaFlow Support | VIAVI Solutions Inc.
Kevin Wilkie (Talk | contribs) (Created page with "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=admi...") |
Kevin Wilkie (Talk | contribs) |
||
Line 3: | Line 3: | ||
List Specific Device | List Specific Device | ||
− | curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"devices","ids":["172.21.40.254"]}' http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com | + | curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"devices","ids":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" |
List All Interfaces | 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 | + | 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 | List Interfaces On Specific Device | ||
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" | 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" |
Revision as of 11:13, 4 November 2016
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
curl -H "Content-Type: application/json" -X POST -d '{"start":0,"length":25,"action":"get","type":"devices","ids":["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
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"