Forum Discussion
SaranSakthivel
Jan 24, 2018Nimbostratus
Disable-Enable virtual server using F5 Python SDK
How to disable/enable a virtual server using f5 python sdk ?
I am getting an error 404, cant have disable when enable is present.
I did the following tweak (delete enabled dictionary key, if i h...
JRahm
Jan 25, 2018Admin
This is actually a bug in how the virtual server endpoint was created in the sdk. I've submitted a PR that should merge for the 3.0.10 release next Friday, but you can grab my branch to test now if you like. Once updated, you can simply set the state and update:
From enabled->disabled
vip.disabled = True
vip.update()
From disabled->enabled
vip.enabled = True
vip.update()
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