REST API description: Difference between revisions

Line 294: Line 294:
== REST API Examples ==
== REST API Examples ==


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


Extract the packets per second statistic of the MAC broadcast address
Extract the packets per second statistic of the MAC broadcast address
Line 300: Line 300:
<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/mac/macs/ff:ff:ff:ff:ff:ff'</code>


 
==== IP statistics ====


<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/ip/ips/10.1.2.3'</code>
<code>curl --silent -k -u USER:PASSWORD 'https://allegro-mm/API/stats/modules/ip/ips/10.1.2.3'</code>
404

edits