-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
3.4.4
-
None
Hi,
Not sure if this is intended feature, but it seems that you are not able to delete array of hosts if one of those host id's are missing from Zabbix
How reproduce (Using Zabbix.Api.Core .Net library):
private static void DeleteHost(List<int> hostId) { Zabbix zabbix = new Zabbix("Admin", "secret", "url"); zabbix.LoginAsync().Wait(); Task<string> response = zabbix.GetDeleteResponseJSonAsync("host.delete", hostId ); response.Wait(); Console.WriteLine(response.Result); zabbix.LogoutAsync().Wait(); }
This translates to request like:
{"jsonrpc":"2.0","method":"host.delete","id":1,"auth":"123","params":[10390,10386]}Received error message: host.delete error: No permissions to referred object or it does not exist!
Expected:
It would delete all host id's which are found and return not found for missing id's in zabbix. In this case lets say that 10390 is found in zabbix and 10386 not. 10390 would return success and 10386 not found.
- part of
-
ZBX-3783 Proper API validation
- Reopened