Host.Get using Filter: by host(Name) returns the first Host always

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: 2.2.14
    • Component/s: API (A)
    • Environment:
      CentOS 5.3, PHP, MySQL

      No matter what host is passed to the API, it always has the same response. Even for host that don't exists.

      Request:

      {"params": [{"filter": {"host": ["019615"]}, "output": ["extended"]}], "jsonrpc": "2.0", "method": "host.get", "auth": "b9d8c3c7f0c08bdd2c20f1ddb023cb27", "id": 9}
      

      Response:

      {"jsonrpc":"2.0","result":[{"hostid":"10096"}],"id":9}
      

            Assignee:
            Unassigned
            Reporter:
            Robert Burkhall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: