Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23751

API calls fail requesting seemingly optional parameter

XMLWordPrintable

    • S24-W22/23, S24-W24/25, S24-W26/27
    • 0.5

      Tested with 6.4.3 and 6.4.8.

      Request:

      {"jsonrpc":"2.0","method":"action.create","id":8,"params":{"status":0,"filter":{"evaltype":0,"conditions":[{"conditiontype":18,"value":"2"},{"value":"3","conditiontype":18}]},"name":"Add VIPs to the VIP group","operations":[{"operationtype":4,"opgroup":[{"groupid":"2"}]}],"eventsource":1},"auth":"..."}

      Failure:

      Error: Invalid parameter "/1/filter/conditions/1": the parameter "operator" is missing.

      Adding “operator” in each of the “conditions” resolves the error - but action object says for “Condition operator.”:

      Possible values:

      0 - (default) equals;

        1. image-2024-01-18-15-29-42-240.png
          8 kB
          Janis Freibergs
        2. image-2024-02-22-09-42-52-813.png
          30 kB
          Janis Freibergs
        3. image-2024-02-22-09-43-25-694.png
          27 kB
          Janis Freibergs
        4. image-2024-02-22-09-47-00-914.png
          23 kB
          Janis Freibergs

            jfreibergs Janis Freibergs
            dotneft Alexey Pustovalov
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: