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

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.10
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
    • Team:
      Team B
    • Sprint:
      Sprint 53 (Jun 2019)

      Description

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

      — BEGIN SHELL —

      [[email protected] ~]$ ./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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: