Forum Discussion
MarkM_63051
Dec 02, 2011Nimbostratus
How to remove a virtual server from a pool
Hello,
I am really glad that this forum exists! I have been searching the web and the iControl SDK but I cannot figure out how to delete a pool after it has been assigned to a virtual server. I found the APIs to set a default pool name, but I can't find the unset command.
String[] virtAddressList = lblVirtServer.get_list();
lblVirtServer.set_default_pool_name(new String[]{"PetclinicVS"}, new String[]{poolName});
Questions:
1. Is there a better way to assign a pool to a virtual server other than dinking with the defaults? Why isn't there an "assign_pool_to_virtual_server" API?
2. What is the remove API? I don't see an applicable one on SDK page "LocalLB\VirturalServer".
Thanks again for your help,
Mark
- You use the same method. Just pass in an empty string for the pool name in the set_default_pool_name() method and that will turn the value in the GUI to "None".
lblVirtServer.set_default_pool_name(new String[]{"PetclinicVS"}, new String[]{""});
- MarkM_63051NimbostratusThanks Joe. I was unable to find any documentation that discussed this topic.
- No worries. If you get stuck in the future, don't hesitate to ask.
- MarkM_63051NimbostratusCan a virtual server have more than one default pool? If so, how do I get a list of pools serviced by the virtual server so I can delete only one?
- There is just one default pool. The whole idea of having a pool of servers is to provide a mechanism to configure load balancing across that grouping of servers. If you were to be able to configure multiple default-pools, how would you expect the load distribution to occur across the pools?
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