Forum Discussion
iControl REST API: How to get the pool from a VIP+PORT
Assuming you have access to linux server with curl and python you can get a list of virtual servers containing "VIP" word with this:
curl -s -u user:password -k --insecure https://ipaddress/mgmt/tm/ltm/virtual/?\$select=fullPath | python -m json.tool | grep VIP | awk -F : '{print $2}' | tr -d "\" "
You can redirect output to temporary file. From there you will either have to write a script/program which uses each line as a parameter for another quesry which would get details for each virtual server.
Personally I am using python to get that kind of data and present it in a nice form.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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