I am looking for a way to automate some of my server deployments as we migrate from a legacy environment to ACI. We have a number of servers that need to move and majority of them will be configured as a VPC, but they will also have other individual ports for ILO and Backup.
What I want to know is how can I determine which ports have been assigned to a VPC Leaf set or just an individual Leaf so I can see what the next available port is that I would use. I will not be doing these all at one time, but over a number of months and I would rather use an Ansible script to create my Profiles and bind the IPG to the ports without logging into the GUI to see what's used/free. Is there an APP or an API call that can easily get me that info?