I’m testing my new perl API client. Most stuff seems to work fine, but I’m having problems with the ‘find’ command. In the console, if I want to find (say) a wireless-access entry with a given MAC, I can do this:
Here’s an example of the problem. I’m writing some provisioning code to add, remove and authorize wireless ACL’s. Obviously my “primary key” is the MAC address of the radio. But the ‘set’ command requires the Mtik internal ‘.id’.
So what I’d like to be able to do is a quick call to the API which finds the .id based on MAC, as per my previous post.
As I can’t work out how to do this, what I’m having to do at the moment is fetch the entire ACL list and pick the bones out of that to get the one .id I need.
Not a huge deal, but it does make for quite a lot of extra API traffic.