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
Hi Saran, I'd recommend something a little simpler:
Load the vip
vip = b.tm.ltm.virtuals.virtual.load(name='testvip')
Change from enabled to disabled
del vip.enabled
vip.disabled = True
vip.update()
Change from disabled to enabled
del vip.disabled
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