filter by itemids does not work

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 2.4.5
    • Component/s: API (A)
    • None
    • Environment:
      linux

      When I run .get method on item or trigger, and filter by itemids, I get result of all items or trigger for selected device.

      curl -i -X POST -H 'Content-Type: application/jsonitem.get","auth":"f093acb45571653a64cecb06bc12402a","id":1,"jsonrpc":"2.0","params":{"output":"itemids","filter":{"itemids":"84006","host":"r_378"}}}' http://zabbix/api_jsonrpc.php
      HTTP/1.1 200 OK
      Server: nginx/1.6.2
      Date: Thu, 30 Jul 2015 16:31:53 GMT
      Content-Type: application/json
      Transfer-Encoding: chunked
      Connection: keep-alive
      X-Powered-By: PHP/5.6.9-0+deb8u1
      Access-Control-Allow-Origin: *
      Access-Control-Allow-Headers: Content-Type
      Access-Control-Allow-Methods: POST
      Access-Control-Max-Age: 1000
      
      {"jsonrpc":"2.0","result":[{"itemid":"84006"},{"itemid":"84005"}],"id":1}
      

            Assignee:
            Unassigned
            Reporter:
            Coudy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: