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...
Dec 02, 2011
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".
This was one of those cases where we didn't create multiple methods to do similar things. The really isn't a concept of removing a default pool from a virtual, just setting the default_pool to nothing. Subtle difference, but it does make for one less method for our developers to manage.
This code should do it for you
lblVirtServer.set_default_pool_name(new String[]{"PetclinicVS"}, new String[]{""});
Hope this helps...
-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