I am using ZabbixPHPApi with Zabbix 2.2 and trying to Create a Host. The code emitted looks like this :-
{"jsonrpc":"2.0","method":"host.create","params":{ "host":"abcdef","interfaces":{"useip":1,"ip":"192. 168.1.1","port":"10050"},"groups":{"groupid":9}}," auth":"f9df263591bad7164a1aa2a4b9bcbce1","id":"140 57696552381"}
This results in :-
API error -32500: No permissions to referred object or it does not exist
I am using Admin account to do this so should have full permissions. I suspect a problem with groups but groupid 9 definitely exists.
Any help to understand the problem much appreciated because nothing I tired worked so far.
{"jsonrpc":"2.0","method":"host.create","params":{ "host":"abcdef","interfaces":{"useip":1,"ip":"192. 168.1.1","port":"10050"},"groups":{"groupid":9}}," auth":"f9df263591bad7164a1aa2a4b9bcbce1","id":"140 57696552381"}
This results in :-
API error -32500: No permissions to referred object or it does not exist
I am using Admin account to do this so should have full permissions. I suspect a problem with groups but groupid 9 definitely exists.
Any help to understand the problem much appreciated because nothing I tired worked so far.
Comment