Forum Discussion
cgaines22_14499
Nimbostratus
Jan 24, 2017Use 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
Nimbostratus
May 24, 2018To 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.
JQUINONES82NB
Nimbostratus
Jul 18, 2018Thank you!
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
