Forum Discussion
cgaines22_14499
Jan 24, 2017Nimbostratus
Use F5 Python SDK to Create Node with Pool in Separate Partition
I have seen multiple samples on creating a pool and loading a member in that pool. I have looked at the "; for creating nodes but so far I am not getting the idea. Is there a way using Python Rest ...
Jason_Nance_333
May 24, 2018Cirrus
To add an existing node to an existing pool:
pool = mgmt.tm.ltm.pools.pool.load(partition='Common', name='mypool')
pool.members_s.members.create(partition='Common', name='mynodename:80')
The secret sauce is in the overloaded name argument - it is really "node_name:service_port".
The above adds an existing node called "mynodename" to the pool and sets its service port to 80.
- JQUINONES82NBJul 18, 2018Nimbostratus
Thank you!
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