Forum Discussion
vimal1771_20809
Nimbostratus
Sep 15, 2015curl command to get pool name from VIP address:
What is the curl command to get pool name associated with VIP using virtual-server (VIP) IP address instead of VIP name?
cjunior
Nacreous
Sep 15, 2015Hello, maybe something like this:
curl -k -u admin:pass -X GET "https://10.10.10.10/mgmt/tm/ltm/virtual/?\$select=destination,pool" | jq '.items[] | select(.destination | contains("20.20.20.20")) | .pool'
or this:
virtualaddress=`curl -k -u admin:pass -X GET "https://10.10.10.10/mgmt/tm/ltm/virtual-address/?\$select=fullPath,address" |jq '.items[] | select(.address=="20.20.20.20") | .fullPath' | sed -e s/\"//g`
curl -k -u admin:pass -X GET "https://10.10.10.10/mgmt/tm/ltm/virtual/?\$select=destination,pool" | jq '.items[] | select(.destination | startswith("'$virtualaddress'")) | .pool'
unset virtualaddress
offhand 🙂
Regards.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