Forum Discussion
Zdenda
Jul 14, 2022Cirrus
API rest - monitor at pool settings
Hello, when I add monitor to pool via Rest API it works fine untill I try to set "Availability requirement" to "At least 1". In API it's done with prefix "min 1 of" (https://clouddocs.f5.com/api/ic...
- Jul 14, 2022
If you take off the curly braces it should work (tested with TMOS v15.1.3.1).
Please try:
curl -svk -u admin: 'https://localhost/mgmt/tm/ltm/pool/~Common~pool_monitor_test' -H 'Content-Type: application/json' -X PATCH -d '{"monitor": "min 1 of monitor_https_A monitor_https_B"}' | jq
To remove existing monitors:
curl -svk -u admin: 'https://localhost/mgmt/tm/ltm/pool/~Common~pool_monitor_test' -H 'Content-Type: application/json' -X PATCH -d '{"monitor": "none"}' | jq
Jul 14, 2022
If you take off the curly braces it should work (tested with TMOS v15.1.3.1).
Please try:
curl -svk -u admin: 'https://localhost/mgmt/tm/ltm/pool/~Common~pool_monitor_test' -H 'Content-Type: application/json' -X PATCH -d '{"monitor": "min 1 of monitor_https_A monitor_https_B"}' | jq
To remove existing monitors:
curl -svk -u admin: 'https://localhost/mgmt/tm/ltm/pool/~Common~pool_monitor_test' -H 'Content-Type: application/json' -X PATCH -d '{"monitor": "none"}' | jq
- ZdendaJul 14, 2022Cirrus
Thank you, nice easter egg 🙂
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