REST API description: Difference between revisions

No edit summary
Line 217: Line 217:
$ curl --silent -k -u USER:PASSWORD "https://allegro-mm/API/stats/modules/ip/ips/10.54.0.254?starttime=$(date --date="1 day ago" +%s)&endtime=$(date +%s)&skiphistorydata=true" | jq '.interval[1] + .interval[3]'
$ curl --silent -k -u USER:PASSWORD "https://allegro-mm/API/stats/modules/ip/ips/10.54.0.254?starttime=$(date --date="1 day ago" +%s)&endtime=$(date +%s)&skiphistorydata=true" | jq '.interval[1] + .interval[3]'
</pre>
</pre>


=== List queries ===
=== List queries ===
Line 243: Line 242:


<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/ip/ips/10.1.2.3/peers?sort=bytes&reverse=true&page=0&count=9999&timespan=60&values=100' | jq '.displayedItems[].ip'</code>
<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/ip/ips/10.1.2.3/peers?sort=bytes&reverse=true&page=0&count=9999&timespan=60&values=100' | jq '.displayedItems[].ip'</code>


=== Pcap extraction ===
=== Pcap extraction ===
Line 259: Line 257:
* fromCaptureBuffer: Whether to extract data from the packet ring buffer (= true) or just live traffic (= false).
* fromCaptureBuffer: Whether to extract data from the packet ring buffer (= true) or just live traffic (= false).
* captureToMedia: Whether to store a pcap on an external storage device (= true) or download to your computer (= false).
* captureToMedia: Whether to store a pcap on an external storage device (= true) or download to your computer (= false).
* mm-id: If you are extracting a Pcap from a parallel Pcap analysis job or a multi device connected Allegro Network Multimeter, you have to specify the device and the slot where to get the data from. The syntax is: mm-id=<device name>:<slot id>. If the capture shall be performed on the local device, the device name can be ommited (e.g. mm-id=:1 for the first replay slot on the local device).


Example to capture everything from now on:
Example to capture everything from now on:
340

edits