Forum Discussion
F5 iControl REST - API calls required to get Load Balancer, Virtual Server URL, IP, Port, Pool Name/Status/Members
I suppose there aren't many people using ruby here. I am not a ruby person - I can't even find an F5 icontrol lib for ruby (v1) that I can download and run a test with.
However, from what I can read from the F5 iControlREST api doc, the way of getting what you want will involve two API calls:
1.
Run what I guess might be a valid ruby command "bigip["ltm/virtual"].get" with the URI param "expandSubcollections=true", which will provide the name of the pool associated with each virtual server;
2.
You then run "bigip["/ltm/pool"].get" on each pool name from the list gotten from the step above and you will see the particulars associated with that pool.
I hope this helps.
Recent Discussions
Related Content
* 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