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

configuration.export returns "Invalid parameter [...] an array is expected"

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 4.0.0
    • API (A)
    • Virtual Machine: Zabbix Appliance, Ubuntu 16.04.5 LTS

      HI.

      Configuration.export API call, literally pasted from documentation https://www.zabbix.com/documentation/4.0/manual/api/reference/configuration/export

      continuously fails.

      Request:

      {
        "jsonrpc": "2.0",
        "method": "configuration.export",
        "params": {
          "options": {
            "hosts": ["10084"]
          },
         "format": "xml"
        },
        "auth": "",
        "id": ""
      }

      Observed behavior:
      Response:

      {"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Invalid parameter "/options/hosts": an array is expected."},"id":1}

      Expected behaviour:

      Response:

      {"jsonrpc": "2.0","result": "[...]","id": 1}

            Unassigned Unassigned
            RayBan91 Rafał Wiśniewski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: