Forum Discussion
MdKamil_368483
Nimbostratus
Aug 01, 2018REST - Any way to add multiple pool members in the same request in BIG-IP 13.0.0 Build 2.0.1671 Hotfix HF2
I referred the following question, https://devcentral.f5.com/questions/rest-any-way-to-add-multiple-pool-members-in-the-same-request. Is the feature implemented in version [BIG-IP 13.0.0 Build 2.0.16...
Satoshi_Toyosa1
Aug 07, 2018Ret. Employee
I was wrong. You can
add or delete a member to a pool.
Add an existing node
CentOS:80 to the pool pl. Note that you need to use the port number not protocol name (e.g., http).
tmsh modify ltm pool pl members add { CentOS:80 }
curl -sku admin: https:///mgmt/tm/ltm/pool/pl/members \
-X POST -H "Content-type: application/json" \
-d '{"name":"CentOS:80", "partition":"Common"}'
You can also add a member by specifying the IP address. If the node with that name does not exist, BIG-IP creates one for you (just like the equivalent tmsh command).
tmsh modify ltm pool pl members add { 10.0.0.2:80 }
curl -sku admin: https:///mgmt/tm/ltm/pool/pl/members \
-X POST -H "Content-type: application/json" \
-d '{"name":"10.0.0.2:80", "partition":"Common"}'
Delete an existing pool member
CentOS:80 from the pool pl. Note that you need to explicitly specify the partition (in this example, Common😞
tmsh modify ltm pool pl members delete { CentOS:80 }
curl -sku admin: https:///mgmt/tm/ltm/pool/pl/members/~Common~CentOS:80 -X DELETE
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
