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}