In PowerShell, I am getting the following error No permissions to referred object or it does not exist!. I think it's related to the "hosts": block but it's not clear how it's expected since the API documentation doesn't give an example of one with multiple hostid's. Please see https://www.zabbix.com/documentation...oup/massupdate
Any help would be awesome! Thank you!
Any help would be awesome! Thank you!
Code:
PS C:\Users\adm> $JsonMassUpdateHostgroup
{
"method": "hostgroup.massupdate",
"params": {
"groups": {
"groupid": "110"
},
"hosts": {
"hostid": "[10106,10185,10702,11468,10228,10302,10229,10258,10289,10245,
10750,10249,11433,10115,11429,10110,11425,11432,10105,10687,10090,10091,10116,10118,10092,10117,10119,1020
1,10194,10674,10675,10673,10788,10976,10680,10679,10678,10672,10192,10193,10163,10164,10689,10763,10764,11
318,11329,11325,11316,11317,11391,11424,11430,11465,11467,11584,11473,11471,11474,11676,11694]"
}
},
"id": 1,
"jsonrpc": "2.0",
"auth": "5edaca0cae9524e24581406a15492104"
}
PS C:\Users\adm> $JsonMassUpdateHostgroupResponse.error.code
-32500
PS C:\Users\adm> $JsonMassUpdateHostgroupResponse.error.data
No permissions to referred object or it does not exist!

Comment