API & Integration

Reply
Accepted Solution

Create host record and IP reservation

[ Edited ]
softestplease
Techie
Posts: 5
417     0

Hi,

 

I have the following curl script and its working just fine

 

curl -k -u user: password -H "Content-Type: application/json" -X POST 'https://192.168.0.1/wapi/v2.2/record:host?_return_fields=ipv4addrs' -d '{"configure_for_dns":true, "name": "host1.test.loc", "ipv4addrs":[{"ipv4addr":"func:nextavailableip:10.10.18.0/24", "configure_for_dhcp": true, "mac":"aa:bb:cc:11:22:28"}]}'

 

However, I wanted to change "func:nextavailableip" to manually specify the IP for example:

reserve IP 10.10.18.45 from network range 10.10.18.0/24. Can someone please help me how to do that? the script, API call, etc..

 

Cheers,

Sofia

Re: Create host record and IP reservation

Authority
Posts: 32
418     0

Hi Sofia,

 

You can manually specify the IP as shown below.

curl -k -u user:password -H "Content-Type: application/json" -X POST 'https://192.168.0.1/wapi/v2.2/record:host?_return_fields=ipv4addrs' -d '{"configure_for_dns":true, "name": "host1.test.loc", "ipv4addrs":[{"ipv4addr":"10.10.18.45", "configure_for_dhcp": true, "mac":"aa:bb:cc:11:22:28"}]}'

Hope this works,

Krishna

Showing results for 
Search instead for 
Do you mean 

Recommended for You

Infoblox ActiveTrust and a Deeper Dive Into your DNS Security