I have an array of 5 host IDs I want to delete. Believe I am forming the request properly but I am getting an error. Zabbix version 3.0
Here is my line of (ruby) code:
zbx.hosts.delete(a_hostid)
and the content of a_hostid, which is an array of strings
["10695", "10747", "10769", "10787", "10798"]
{
"code": -32500,
"message": "Application error.",
"data": "No permissions to referred object or it does not exist!"
}
on request:
{
"method": "host.delete",
"params": [
[
"10695",
"10747",
"10769",
"10787",
"10798"
]
],
"id": 94763,
"jsonrpc": "2.0",
"auth": "ddc51ff311cc3ae0f1f9df48a9661b31"
}
I have tried with an array of integers and received the same error.
Here is my line of (ruby) code:
zbx.hosts.delete(a_hostid)
and the content of a_hostid, which is an array of strings
["10695", "10747", "10769", "10787", "10798"]
{
"code": -32500,
"message": "Application error.",
"data": "No permissions to referred object or it does not exist!"
}
on request:
{
"method": "host.delete",
"params": [
[
"10695",
"10747",
"10769",
"10787",
"10798"
]
],
"id": 94763,
"jsonrpc": "2.0",
"auth": "ddc51ff311cc3ae0f1f9df48a9661b31"
}
I have tried with an array of integers and received the same error.
Comment