Forum Discussion
How to add nodes in bulk using RestAPI?
Hi,
looks like you can create multiple new nodes as part of a new pool.
Creating, disabling, enabling, and deleting a node
To create a new node, use the following command syntax:
POST /mgmt/tm/ltm/node/ -d '{"name":"","partition":"","address":""}'
For example, to create a new node named test_node on the Common partition, type the following command:
POST /mgmt/tm/ltm/node/ -d '{"name":"test_node","partition":"Common","address":"10.99.5.2"}'
To create a new pool using new nodes, use the following command syntax:
POST /mgmt/tm/ltm/pool/ -d '{"name":"","partition":"","monitor":"//","members":[{"name":"","address":""}],"members":[{"name":":","address":""}]}'
Excellent reference:
K13225405: Common iControl REST API command examples
https://support.f5.com/csp/article/K13225405
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
