Forum Discussion

Zdenda's avatar
Zdenda
Icon for Cirrus rankCirrus
Jul 14, 2022

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...
  • StephanManthey's avatar
    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