Forum Discussion
sambillings
Nimbostratus
Apr 23, 2021REST API to get available node
Is there an API, I can call from my shell script to get the node that is free?
jaikumar_f5
Noctilucent
Apr 30, 2021Well there's not an easy method. The only API that i could think of is,
https://localhost/mgmt/tm/ltm/virtual-addressGet the list of addresses, then work it out with the vip rail subnet & determine what's left.
Then ping that ip to confirm its indeed is free.
Then again do a reverse lookup to confirm if its not reserved for anyother use.
Finally you'll have your free ip.
Every org has their own way of determining their free-ip's. Some use scripts, some use automation tool.
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects