Reply
Highlighted

Update Mac on fixed address

berridgd
Techie
Posts: 11
2305     0

Is it possible to change the 'mac' property on an existing fixedaddress object through the WAPI?

Re: Update Mac on fixed address

Adviser
Posts: 147
2306     0

Yes. This can be acomplished by first requesting the reference for the fixed-address and then sending an API call to update the fixed-address.

 

Example of using WAPI to request (GET) the _ref for a specific fixed address IP address:

 

curl -k1 -u admin:infoblox -H "Content-Type: application/json" -X GET 'https://10.61.1.53/wapi/v2.1/fixedaddress?ipv4addr=10.61.3.222'
[
    {
        "_ref": "fixedaddress/ZG5zLmZpeGVkX2FkZHJlc3MkMTAuNjEuMy4yMjIuMC4u:10.61.3.222/default", 
        "ipv4addr": "10.61.3.222", 
        "network_view": "default"
    }

Example of updating (PUT) the MAC address:

 

curl -k1 -u admin:infoblox -H "Content-Type: application/json" -X PUT  'https://10.61.1.53/wapi/v2.1/fixedaddress/ZG5zLmZpeGVkX2FkZHJlc3MkMTAuNjEuMy4yMjIuMC4u:10.61.3.222/default' -d '{"mac": "03:03:33:33:33:38"}'
Check out our new Tech docs website at http://docs.infobox.com for latest documentation on Infoblox products

Re: Update Mac on fixed address

berridgd
Techie
Posts: 11
2306     0

I'm sorry, I should have been more clear on what I was trying to do. I'm actually trying to change the Mac Address on a IPv4 Reservation. I assumed that the Reservation object was a fixed address object because I created it through the REST api by creating a fixedaddress with a Mac address of all 0's (00:00:00:...). Maybe these are actually different objects?

Showing results for 
Search instead for 
Do you mean 

Recommended for You

Infoblox ActiveTrust and a Deeper Dive Into your DNS Security