Forum Discussion
robertoq_79472
Nimbostratus
Sep 02, 2009Get ALL virtual server names?
Hi There,
Fairly new to using iControl. I've been going through the API reference and I don't seem to find a way to get a list of ALL the virtual servers currently on my LTM. I want ...
JRahm
Admin
Sep 02, 2009In python shell, very similar:
>>> import pycontrol.pyControl as pc
>>> b = pc.BIGIP(
... hostname = 'x.x.x.x',
... username = 'admin',
... password = 'admin',
... wsdl_files = ['LocalLB.VirtualServer', 'LocalLB.Pool']
... )
Loading WSDL: LocalLB.VirtualServer.wsdl
Loading WSDL: LocalLB.Pool.wsdl
>>> v = b.LocalLB_VirtualServer
>>> p = b.LocalLB_Pool
>>> vs_list = v.get_list()['return']
>>> pool_list = v.get_default_pool_name(virtual_servers = vs_list)['return']
>>> pool_members = p.get_member(pool_names = pool_list)['return']
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