Re: How to create IPAM host object?
Adviser
Posts: 43
This widget could not be displayed.
This widget could not be displayed.

Sorry for the confusion on the network view.  I realized after I hit post that the added property was the network view.

 

I think that the issue is that the host object needs to be created in the same network view as the network view for the network that you are using for get next available IP.

 

Try

 

{"ipv4addrs":[{"ipv4addr":"func:nextavailableip:10.65.5.0/24,IPAM-Data","configure_for_dhcp":false}],"name":"ricktest3","configure_for_dns":false,"view":"default.IPAM-Data"}

 

Note that this assumes that the default DNS view for this network view is "default".  If you have changed the DNS view name, then you'll need to use the DNS view name.network view name.

View solution in original post

Who Me Too'd this solution