Forum Discussion
F5: curl command to add health-check to a pool
We have automated PERL scripts which use REST APIs to configure F5 LTM.
This just for example. I could add 2 health-checks "http" and "tcp" to a pool named APPTEST_POOL using below command. curl --silent --insecure -H "Content-Type: application/json" -u user:password -X PUT https:///mgmt/tm/ltm/pool/APPTEST_POOL -d '{"monitor":"http and tcp"}'
If I have to add one more health-check say https then 1. I have to first read (GET) to get http and tcp 2. append https to it using "and" 3. and then set it using -d '{"monitor":"http and tcp and https"}' Instead do we have any alternative to skip reading of existing health-checks.
Hope I am not confusing you all :).
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