IPAM REST API questions

Hello everyone,
I have never touched SolarWinds before and now I have a task to automate some IPAM tasks using ansible.

I cannot find any useful documentation on this, apart from some Github pages. If anyone can point me to the right document I would appreciate it.

From what I have read so far, my understanding is that the REST API uses SWQL to perform the required action. Is that true? If yes, is there any other method?

What I want to achieve is:


1. Reserve an IP from a specific subnet.
All the information I have here is the subnet. Is it sufficient?

2. Release (Delete reservation, return IP to pool) IP.
In this case I only have the IP. Is it sufficient?

Has anyone examples of those actions using Ansible or Curl?

Parents
  • Hey, little late to this party but my whole automation workflow is using Ansible to then interface with the solarwinds api via powershell.

    I have written out playbooks on doing the ip reservations. I also have plays on querying ipam based on comments but can be done with any parameter. 

    Ive been doing this the past 1.5 years but hadnt done a whole lot beyond ip reservation start, cancel, finish and change ip status. World map updates and using   's dependencies scripts.

    Im currently working on using this flow to develop plays to update ipam subnets/supernets comments/names, add subnets to ipam, add supernets to ipam,  move subets/supernets to appropriate folder hierarchy. Ultimately, I will be using ipam to source subnets for scripted discovery schedules that will filter, import and then customize custom properties based upon site.

    Would be interested to know what youve been able to do over the past few months as well as share what Ive done if interested!!

Reply
  • Hey, little late to this party but my whole automation workflow is using Ansible to then interface with the solarwinds api via powershell.

    I have written out playbooks on doing the ip reservations. I also have plays on querying ipam based on comments but can be done with any parameter. 

    Ive been doing this the past 1.5 years but hadnt done a whole lot beyond ip reservation start, cancel, finish and change ip status. World map updates and using   's dependencies scripts.

    Im currently working on using this flow to develop plays to update ipam subnets/supernets comments/names, add subnets to ipam, add supernets to ipam,  move subets/supernets to appropriate folder hierarchy. Ultimately, I will be using ipam to source subnets for scripted discovery schedules that will filter, import and then customize custom properties based upon site.

    Would be interested to know what youve been able to do over the past few months as well as share what Ive done if interested!!

Children
No Data