Ad Widget

Collapse

API import/export problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RayBan91
    Junior Member
    • Oct 2018
    • 1

    #1

    API import/export problem

    Hello everyone,
    I'm trying to use configuration.export API call, literally pasted from documentation (https://www.zabbix.com/documentation...uration/export) and continously fail.


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

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

    What can be reason for this messages?

    The same issue I face for configuration.import.
    Zabbix version Zabbix 4.0.0.
    Last edited by RayBan91; 15-10-2018, 10:44.
Working...