-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
2.4.3
-
None
https://www.zabbix.com/documentation/2.4/manual/api/reference_commentary says :
- output Default: extend.
interestingly, if a request has no parameters specified, that is not true - it reverts to returning ids only. this is inconsistent and does not match documentation
request :
{"jsonrpc":"2.0","method":"hostgroup.get","auth":"'"$authtoken"'","id":1}
response :
{"jsonrpc":"2.0","result":[{"groupid":"1"},{"groupid":"2"},{"groupid":"3"},{"groupid":"4"},{"groupid":"5"}, ...
request :
{"jsonrpc":"2.0","method":"hostgroup.get","params":{"limit":3},"auth":"'"$authtoken"'","id":1}
response :
{"jsonrpc":"2.0","result":[{"groupid":"1","name":"Templates","internal":"0","flags":"0"},{"groupid":"2","name":"Linux servers","internal":"0","flags":"0"},{"groupid":"3","name":"Windows servers","internal":"0","flags":"0"} ...