Hi,
A couple of short questions about NAV API:
I want to search NAV for a mac address in arp, and only get back last seen.
Is that possible ? An how do I do that ?
Is there a feature for sorting of the results ?
-- Jarle Teigen
Hi Jarle.
Den 22.08.2014 11:20, skrev Jarle Teigen:
Hi,
A couple of short questions about NAV API:
I want to search NAV for a mac address in arp, and only get back last seen.
Is that possible ? An how do I do that ?
To search for a mac-address you use the filters available in the API: /api/1/arp/?mac=<mac-address>
There is no filter that only returns last seen, and it is unfortunately not possible to sort the results. This is something we should consider implementing.
Further documentation regarding the API:
https://nav.uninett.no/doc/4.1/howto/using_the_api.html
-- John-Magne Bredal UNINETT AS