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

API method 'history.get' appears to ignore property name array for 'output' parameter

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.10
    • API (A)
    • Sprint 53 (Jun 2019)

      It's not possible to get only the passed property fields for output:

      — BEGIN SHELL —

      [foo@example ~]$ ./issue.sh
      HTTP/1.1 200 OK
      Date: Tue, 04 Feb 2014 15:38:05 GMT
      Server: Apache
      X-Powered-By: PHP/5.3.3
      Vary: Accept-Encoding,User-Agent
      Content-Length: 225
      Content-Type: application/json

      {"jsonrpc":"2.0","result":[

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ,

      {"itemid":"23299"}

      ],"id":1}

      — END SHELL —

      Is this the expected behavior? I'm pretty sure to have used the "output" parameter this way with a different api method successfully.

            zabbix.dev Zabbix Development Team
            okkuv9xh Marc
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: