Forum Discussion
Steve_Howard_14
Nimbostratus
May 12, 2014How to disable a GTM pool member
Hi,
We are struggling with the bigsuds syntax to disable a pool member. Example below...
>>> from bigsuds import *
>>> b = BIGIP(hostname = '1.2.3.4', username = 'foo', password = 'bar')
>>> po...
Steve_Howard_14
Nimbostratus
May 13, 2014Thanks, Brent, we finally got it.
>>> b.GlobalLB.PoolMember.get_enabled_state(['/Common/columbus-ecomm-pool'], [[{'address': '172.27.128.110', 'port': 80}]])
[[{'member': {'port': 80, 'address': '172.27.128.110'}, 'state': 'STATE_DISABLED'}]]
>>> b.GlobalLB.PoolMember.set_enabled_state(['/Common/columbus-ecomm-pool'], [[{'member': {'port': 80, 'address': '172.27.128.110'}, 'state': 'STATE_ENABLED'}]])
>>> b.GlobalLB.PoolMember.get_enabled_state(['/Common/columbus-ecomm-pool'], [[{'address': '172.27.128.110', 'port': 80}]])
[[{'member': {'port': 80, 'address': '172.27.128.110'}, 'state': 'STATE_ENABLED'}]]
>>>Hopefully this helps someone else. Can we add these as code samples in the API reference?
Thanks,
Steve
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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