API Rest get ARP table
Hello, does anyone know how to get arp table through API Rest? I tried GET
https://xx.xx.xx.xx/mgmt/tm/net/arp
, but only I got is:
{
"kind": "tm:net:arp:arpcollectionstate",
"selfLink": "https://localhost/mgmt/tm/net/arp?ver=11.5.2"
}
I cannot find any reference in manual, so is it even possible to get arp table through API Rest?
Thanks, Zdenek
The above mentioned path will reveal configured (read: static) ARP entries on the unit... In most cases, there are none (which is a good thing, actually).
I couldn't find any way to get the dynamic entries either. There might be some indirect way by running a script via REST or so, but it will be difficult to have the desired data returned to the REST call that way...
You might be better off by polling the ARP table via SNMP.
EDIT: I just found out that you can get the dynamic entries by querying the following path:
/mgmt/tm/net/arp/stats
This might need some tweaking when using route-domains, but basically, this is the way to go.
HTH,
Martin