Hi,
I am working on Zabbix REST API for some automation. The below request body works fine for API calls for Zabbix Server 7.0 with 'auth' parameter.
{
"jsonrpc": "2.0",
"method": "host.get",
"params": {
"output": ["hostid", "host", "name", "interfaces"],
"filter": {
"status": "0"
},
"selectInterfaces": ["interfaceid", "ip"]
},
"auth": auth_token,
"id": 2
}
However in Zabbix Server 7.4 REST API calls throws an error-: {"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request.","data":"Invalid parameter "/": unexpected parameter "auth"."},"id":2}
Is this parameter not supported in newer versions? or is it OS support issue as Zabbix Server version 7.0 is running on Ubuntu OS and 7.4 on RHEL 9
I am working on Zabbix REST API for some automation. The below request body works fine for API calls for Zabbix Server 7.0 with 'auth' parameter.
{
"jsonrpc": "2.0",
"method": "host.get",
"params": {
"output": ["hostid", "host", "name", "interfaces"],
"filter": {
"status": "0"
},
"selectInterfaces": ["interfaceid", "ip"]
},
"auth": auth_token,
"id": 2
}
However in Zabbix Server 7.4 REST API calls throws an error-: {"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request.","data":"Invalid parameter "/": unexpected parameter "auth"."},"id":2}
Is this parameter not supported in newer versions? or is it OS support issue as Zabbix Server version 7.0 is running on Ubuntu OS and 7.4 on RHEL 9
Comment