Forum Discussion
sean_87481
Nimbostratus
Jan 12, 2009Getting VS list with name, address, port
Hello!
In perl, I am able to successfully use the get_list() method to get a list of virtual servers, but I want to pull out the address and port information as well.
It ...
Jan 12, 2009
Virtual Servers are identified by their user friendly screen names. The get_list() method returns that list of names. If you want to get the destination for the virtual (ip and port), then you'll want to pass a list of virtual names that you want to query into the LocalLB.VirtualServer.get_destination() method.
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__VirtualServer__get_destination.html
Click here
Most of our methods work this way. There are get_list types methods to return all the objects and then you'll pass that into the various accessor methods (get_* and set_*) to retrieve the attributes of the object.
Some code (not perl) for the get_destination() method can be found in this post:
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=1&postid=31065&view=topic
Click here
Feel free to post again if you need help the fun and games that is Perl B-).
-Joe
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