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;

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

              Created:
              Updated:
              Resolved: