Forum Discussion
Thiyagu
May 16, 2021Cirrus
F5 SDK help to delete a provided node on the LTM
Hello All, I'm in need of F5 SDK help to delete a provided node on the LTM. I have prepared the below scripts and for some reason the sequence is not wrong. Could you please suggest? fr...
May 17, 2021
Hello Thiyagu.
This works for me:
from f5.bigip import ManagementRoot
# ----------------------------------------------------------
session = ManagementRoot("F5_mgmt_IP","username","password",token=True)
pools = session.tm.ltm.pools.get_collection()
for pool in pools:
for member in pool.members_s.get_collection():
if member.name.startswith('mynode'):
member.delete()
Regards,
Dario.
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