I would like to be able to add an FQDN node to a pool via the iControl or REST Api.
Currently we have been using a powershell module (https://github.com/joel74/POSH-LTM-Rest) to create the nodes and pools however there seems to be no way of adding an FQDN node to a pool as all inputs require an IP Address.
Having also looked at curl commands to work directly with the API we have been unsuccessful in getting it to work.
Any help is massively appreciated!
We’ve gotten to the point we can add nodes however we cannot set these nodes to autopopulate. Any ideas?
Create an FQDN node before adding it to the pool. For example, to create an FQDN node
www.f5.com
(name) pointing to
www.f5.com
(actual FQDN) with the
autopopulate
endabled:
curl -sku : https:///mgmt/tm/ltm/node \
-X POST -H "Content-type: application/json" \
-d '{"name":"www.f5.com", "fqdn":{"tmName":"www.f5.com", "autopopulate":"enabled"}}'
Then, add the node to the pool (here
pl
) just like any other node members:
curl -sku : https:///mgmt/tm/ltm/pool/pl/members \
-X POST -H "Content-type: application/json" \
-d '{"name":"www.f5.com:80"}'