I am developing some ruby tools for chef to get the next available IP from a subnet, reserve the IP, and create a dns record with ptr.
I cannot get the this to work in ruby.
This is my server:
https://solarweb.mydomain.com.com:17778/Solarwinds/InformationService/v3/json/Invoke/IPAM.IPAddressManagement/
Can anyone help me figure out the few line of code I need to:
Get the next available IP on subnet 172.16.16.0\22,
Reserve that IP and then mark it as used.
Create a DNS A record with pointer for machine1.mydomian.com to IP address
This works in powershell.
If I can get the commands in CURL I can probably figure out the Ruby.
I have tried all of these links:
IPAM 4.6 API · solarwinds/OrionSDK Wiki · GitHub
https://loop1.com/swblog/using-the-rest-api-to-get-the-most-out-of-solarwinds-part-1/
REST · solarwinds/OrionSDK Wiki · GitHub
Please help