Difference between revisions of "Summary Data Using the API"
From Observer GigaFlow Support | VIAVI Solutions Inc.
m (Niall moved page Flow/APIs/rest to Summary Data Using the API) |
Kevin Wilkie (Talk | contribs) |
||
Line 3: | Line 3: | ||
[[Category:Technical Notes]] | [[Category:Technical Notes]] | ||
List All Devices | List All Devices | ||
− | curl -H "Content-Type: application/json" -X POST -d '{ | + | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"devices"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" |
List Specific Device (use device filer) | List Specific Device (use device filer) | ||
− | curl -H "Content-Type: application/json" -X POST -d '{" | + | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"devices","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" |
+ | |||
+ | List (use device filer) | ||
+ | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" | ||
+ | |||
+ | List All Subnets | ||
+ | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets"}' "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 '{ | + | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":" interfacelist "}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" |
List Interfaces On Specific Device (use device filer) | List Interfaces On Specific Device (use device filer) | ||
− | curl -H "Content-Type: application/json" -X POST -d '{ | + | curl -H "Content-Type: application/json" -X POST -d '{"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) | List Specific Interface (use interface filer) | ||
− | curl -H "Content-Type: application/json" -X POST -d '{ | + | curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"interfacelist","interface":["172.21.40.254_1"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com" |
Revision as of 12:10, 8 November 2018
List All Devices
curl -H "Content-Type: application/json" -X POST -d '{"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 '{"action":"get","type":"devices","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
List (use device filer)
curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets","device":["172.21.40.254"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
List All Subnets
curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
List All Interfaces
curl -H "Content-Type: application/json" -X POST -d '{"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 '{"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 '{"action":"get","type":"interfacelist","interface":["172.21.40.254_1"]}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"