Reply

ruby infoblox gem

dtomic
Techie
Posts: 4
2166     0

HI,

Have someone used ruby gem infoblox ? I am just trying to figure out how to add new record and delete the record.

For examlpe, create new entry ( hostname, firstavailable IP, owner ).

 

If someone have expiriance with this please advise, I really appretiate.

 

Thanks,

Dali

Re: ruby infoblox gem

TTiscareno Community Manager
Community Manager
Posts: 317
2166     0

This is not an Infoblox application but it does appear that documentation is available through http://www.rubydoc.info/gems/infoblox/2.0.0. WAPI calls are documented in in the Infoblox WAPI documentation, available through both the help panel in your Grid Manager GUI and through the Tech Docs section on the Infoblox Support portal (https://support.infoblox.com/). The following is an example of a working WAPI call to add a Host record using the get next available IP function:

 

curl -k1 -u admin:infoblox -H "Content-Type: application/json" -X POST https://10.60.27.240/wapi/v2.6/record:host -d '{"ipv4addrs":[{"ipv4addr":"func:nextavailableip:10.10.10.0/24"}],"name":"t4.poc.infobloxdemo.com"}'
Highlighted

Re: ruby infoblox gem

Adviser
Posts: 411
2166     0

I found this little "gem" for you

https://github.com/govdelivery/infoblox

 

Interact with the Infoblox WAPI with Ruby. Use this gem to list, create, and delete host records.

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You