11-06-2017 02:21 AM
Solved! Go to Solution.
11-07-2017 07:33 AM
MAC addresses aren't in networks, not strictly speaking.
They are attached to other objects, so you will need to search for those instead.
There are (at least) 3 possible places a MAC address could be:
- in a fixed address
- in a Host
- in a MAC filter
You will need to search each of those.
If you want to know a MAC-network association, searching fixedaddresses will be the best bet.
11-07-2017 09:59 AM
11-13-2017 11:05 AM
This Curl example will return all fixed addresses that match the given mac address. The matches can be an exact (using =) or can be a regular expression match (using ~=, as in my example, all addresses that start with the match).
curl -k -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.3/fixedaddress' -d 'mac~=^11:22:33:44:' -d '_return_fields=ipv4addr,mac'
This curl example will return all objects with a specific mac address, incuding fixes addresses, DHCP leases, host addresses, filters, etc. This one is an exact match search only, we cannot use regular expressions.
curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.3/search' -d 'mac_address=11:22:33:44:55:66'