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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 4.0.0
    • Component/s: API (A)
    • Environment:
      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}

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

              Created:
              Updated:
              Resolved: