Difference between revisions of "Summary Data Using the API"

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:NetFlow]]
 
[[Category:NetFlow]]
List All Devices
+
List all devices:
 +
<pre>
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"devices"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"devices"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
+
</pre>
List Specific Device (use device filer)
+
List specific device (use device filer):
 +
<pre>
 
  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"
 
  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"
 
+
</pre>
List Subnets (use device filer)
+
List subnets (use device filer):
 +
<pre>
 
  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"
 
  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"
 
+
</pre>
List All Subnets
+
List all subnets:
 +
<pre>
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":"subnets"}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
+
</pre>
List All Interfaces
+
List all interfaces:
 +
<pre>
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":" interfacelist "}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
  curl -H "Content-Type: application/json" -X POST -d '{"action":"get","type":" interfacelist "}' "http://172.21.40.14:7902/rest/?portalUser=admin@myipsla.com"
 
+
</pre>
List Interfaces On Specific Device (use device filer)
+
List interfaces on specific device (use device filer):
 +
<pre>
 
  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"
 
  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"
 
+
</pre>
List Specific Interface (use interface filer)
+
List specific interface (use interface filer):
 +
<pre>
 
  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"
 
  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"
 +
</pre>

Latest revision as of 09:15, 25 April 2019

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 subnets (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"