Forum Discussion
BigSuds and multiple Virtual Servers
Using python is there a way to pull in a list of Virtual Servers that have to be disabled?
Running 11.3.0(Build 3022.0) - we are not able to upgrade at this time (even though I know the newer API is much better).
If no, I can do them manually, but just trying to save some time.
Thanks
3 Replies
Gets a list of virtual servers.bigSudObject.LocalLB.VirtualServer.get_list() should get you the list of virtual server.
https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer.ashx https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__get_list.ashx
- Tom_Cole_-_Care
Nimbostratus
This for a GlobalLB. I know how to get the list. I want to pass that info to a script to enable/disable the Virtual Servers.
https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__set_enabled_state.ashx Sets the enabled state of the specified virtual servers.obj.LocalLB.VirtualServer.set_enabled_state(['/Common/vs_name'], ['STATE_DISABLED']) obj.LocalLB.VirtualServer.set_enabled_state(['/Common/vs_name'], ['STATE_ENABLED'])
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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