This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents


Available since version: 1.8
This function allows you to retrieve template details based on filtering options. All parameters are optional. If parameter is set in query this option counted as ON, except if parameter is equal to NULL.


Parameter Type Description Details
nodeids array Node IDs
groupids array TemplateGroup IDs
templateids array Template IDs
parentTemplateids array Parent template IDs
hostids array Host IDs
itemids array Item IDs
triggerids array Trigger IDs
graphids array Graph IDs
proxyids array Proxy IDs
maintenanceids array Maintenance IDs
with_items integer only with items
with_triggers integer only with triggers
with_graphs integer only with graphs
editable integer only with read-write permission. Ignored for SuperAdmins
filter array Optional filter by template fields
search array Return templates by any given template object field pattern
startSearch integer Search templates field pattern only in start of the field
excludeSearch integer Exclude from result, templates by given field pattern
searchWildcardsEnabled integer Search pattern in whole field using wildcards 1 - enable, 0 - disable
output string Output options Values: shorten, refer, extend
select_groups string Select template groups Values: shorten, refer, extend
selectParentTemplates string Select parent templates of current template Values: shorten, refer, extend
select_templates string Select child templates of current template Values: shorten, refer, extend
select_hosts string Select linked hosts Values: shorten, refer, extend
select_items string Select template items Values: shorten, refer, extend
select_triggers string Select template triggers Values: shorten, refer, extend
select_graphs string Select template graphs Values: shorten, refer, extend
select_applications string Select template applications Values: shorten, refer, extend
select_macros string Select template macros Values: shorten, refer, extend
countOutput integer Count templates, return the number of templates found
groupCount integer Return the number of results grouped by given IDs
preservekeys integer Return hash instead of array Keys of hash are object IDs
sortfield string Sort by template field Values: hostid, host
sortorder string Sort order Values: ASC, DESC
limit int max number of template objects to return


Parameter Description
result Operation successful. Result will contain array of Template objects.
error In case of any errors


Get templates details by template name "Template Linux":


Retrieved template details: