- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
IPs are Unmanaged after Deleting Host Record
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-23-2017 12:14 PM - edited 07-18-2017 01:55 PM
My company is using InfoBlox for IPAM and DNS as a part of an automation Proof of Technology using RedHat CloudForms. I've written methods to create host records and then delete them via the API as a part of our VM provisioning/deprovisioning workflows.
When deleting the records, these IPs are then listed as "unmanaged" and are not returned as "avalible" by my REST calls. I'm wondering if there is another API call I can make to "re-manage" these IPs, or maybe an alternative way to delete the host record that opens the IP up as avalible again automatically.
I'm currently deleting the host record using the DELETE request suggested in The definitive list of REST examples.
Thanks -
LM
Solved! Go to Solution.
Re: IPs are Unmanaged after Deleting Host
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-05-2017 11:21 AM
Hi,
How you described that it looks like everything should work as expected by your.
You didn't provided any code/requests you made, so we can guess. Are you using nextavailableip to receive an available IP?
BR,
Vadim
Re: IPs are Unmanaged after Deleting Host
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-29-2017 07:57 AM
The 'Unmanaged' status is because the address still has some discovered data.
I've tried the following REST on my grid and it did clear the 'unmanaged' status of the IP :
https://mygrid.com/wapi/v2.5/network_discovery?_function=clear_discovery_data
you will have to put the following data in the POST body :
{
"scope": "IP_ADDRESS",
"network": "192.168.0.0/24",
"ip_address": "192.168.0.2",
"usage": "UNMANAGED"
}
Hope this helps,
Stefaan
Re: IPs are Unmanaged after Deleting Host
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-18-2017 01:50 PM - edited 07-18-2017 01:52 PM
I ended up using a POST very similar to this.
I pass all those keys/values as params.
Thank you for your reply.