Forum Discussion
Chandu_14820
May 27, 2010Nimbostratus
Retrive Virtual server name by passing Virtual address string
Hi Everyone,
I am trying retrieve Virtual server name by passing virtual address as argument. Vis Versa is possible by fucntion.
my_icontrol_interface.LocalLBVirtualServer.get_destination("vs_test")...
samstep
May 27, 2010Cirrocumulus
I can't find such calls in iControl API and can't see a similar functionality in the LTM Web GUI. You can find out the Virtual Address from the Virtual Server, but not vice versa.
You will have to do it programmatically in your code, i.e. get the list of all Virtual Servers first using get_list() call and store it in an array, then get the list of all destinations for all Virtual Servers using get_destination call with the array of all Virtual Servers as a parameter - you will now have two arrays - one with all the names, another one with all addresses, so just match the arrays.
Bear in mind that it is NOT a One-To-One relationship. One Virtual Address can belong to MANY Virtual Servers (for example you can have two Virtual Servers on the same IP, one for port 80 and another for port 443).
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