This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
manual:appendix:api:item:definitions [2014/09/26 06:45] filipp.sudanov Links adapted because of a move operation |
manual:appendix:api:item:definitions [2018/12/17 10:02] (current) martins-v 'hostid' clarified to include both hosts and templates |
||
---|---|---|---|
Line 12: | Line 12: | ||
| itemid | string | //(readonly)// ID of the item. | | | itemid | string | //(readonly)// ID of the item. | | ||
| **delay** \\ (required) | integer | Update interval of the item in seconds. | | | **delay** \\ (required) | integer | Update interval of the item in seconds. | | ||
- | | **hostid** \\ (required) | string | ID of the host that the item belongs to. | | + | | **hostid** \\ (required) | string | ID of the host or template that the item belongs to. | |
- | | **interfaceid** \\ (required) | string | ID of the item's host interface. Used only for host items. \\ \\ Optional for Zabbix agent (active), Zabbix internal, Zabbix trapper, Zabbix aggregate, database monitor and calculated items. | | + | | **interfaceid** \\ (required) | string | ID of the item's host interface.\\ \\ Not required for template items. Optional for Zabbix agent (active), Zabbix internal, Zabbix trapper, Zabbix aggregate, database monitor and calculated items. | |
| **key_** \\ (required) | string | Item key. | | | **key_** \\ (required) | string | Item key. | | ||
| **name** \\ (required) | string | Name of the item. | | | **name** \\ (required) | string | Name of the item. | | ||
Line 49: | Line 49: | ||
| snmpv3_securityname | string | SNMPv3 security name. Used only by SNMPv3 items. | | | snmpv3_securityname | string | SNMPv3 security name. Used only by SNMPv3 items. | | ||
| status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //(default)// enabled item; \\ 1 - disabled item; \\ 3 - unsupported item. | | | status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //(default)// enabled item; \\ 1 - disabled item; \\ 3 - unsupported item. | | ||
- | | templateid | string | (readonly) ID of the parent template item. | | + | | templateid | string | (readonly) ID of the parent template item.\\ \\ //Hint//: Use the ''hostid'' property to specify the template that the item belongs to. | |
| trapper_hosts | string | Allowed hosts. Used only by trapper items. | | | trapper_hosts | string | Allowed hosts. Used only by trapper items. | | ||
| trends | integer | Number of days to keep item's trends data. \\ \\ Default: 365. | | | trends | integer | Number of days to keep item's trends data. \\ \\ Default: 365. | |