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

Missing parameter inventory_mode during request API HOST.GET method

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • 5.2.6
    • 5.4.1
    • API (A), Server (S)

      Steps to reproduce:

      1. Execute host.get method:
      {
          "jsonrpc": "2.0",
          "method": "host.get",
          "params": {
              "filter": {
                  "host": [
                      "testhostname"
                  ]
              }
          },
          "id": 1,
          "auth": "**************************"
      }

      Result:
      See log API return JSON:

      {
        "jsonrpc": "2.0",
        "result": [
          {
            "hostid": "10491",
            "proxy_hostid": "10357",
            "host": "testhostname",
            "status": "0",
            "lastaccess": "0",
            "ipmi_authtype": "-1",
            "ipmi_privilege": "2",
            "ipmi_username": "",
            "ipmi_password": "",
            "maintenanceid": "0",
            "maintenance_status": "0",
            "maintenance_type": "0",
            "maintenance_from": "0",
            "name": "testhostname",
            "flags": "0",
            "templateid": "0",
            "description": "",
            "tls_connect": "2",
            "tls_accept": "2",
            "tls_issuer": "",
            "tls_subject": "",
            "proxy_address": "",
            "auto_compress": "1",
            "discover": "0",
            "custom_interfaces": "0",
            "uuid": ""
          }
        ],
        "id": 1
      }

      Expected:
      inventory_mode property with integer value should be in the result.
      This property described in Zabbix documentation https://www.zabbix.com/documentation/current/manual/api/reference/host/object

            zabbix.support Zabbix Support Team
            pavel-z Pavel
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: