REST API description: Difference between revisions

Line 232: Line 232:
This allows to extract information of automated pcap uploads.
This allows to extract information of automated pcap uploads.


== Examples ==
== REST API Examples ==


==== MAC or IP address statistics ====
==== MAC or IP address statistics ====


<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm-XXXX/API/stats/modules/mac/macs/ff:ff:ff:ff:ff:ff'
Extract the packets per second statistic of the MAC broadcast address
curl --silent -k -u USER:PASSWORD 'https://allegro-mm-XXXX/API/stats/modules/ip/ips/10.1.2.3'</code>
 
<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/mac/macs/ff:ff:ff:ff:ff:ff'</code>
 
 
 
<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/ip/ips/10.1.2.3'</code>


==== Pretty displaying JSON output with jq ====
==== Pretty displaying JSON output with jq ====
404

edits