Thanks, you are right. My mistake about hosts. I still have the problem for other objects, e.g. templates and services, but I might be able to extract everything I need from a full list of hosts.
Isn’t this what lookup plugins are meant for? Would be nice if the zabbix collection would have those.
Something like query(‘community.zabbix.templates’) to get all templates, and query(‘community.zabbix.templates’, filter=foofoo) to apply filters.