# Zabbix Documentation 2.4

2.23.0In development:4.2 (devel)Unsupported:1.82.02.43.23.4

### Site Tools

manual:api:reference:item:object

# Differences

This shows you the differences between two versions of the page.

 manual:api:reference:item:object [2014/09/26 11:22]sasha Links adapted because of a move operation manual:api:reference:item:object [2018/12/17 09:59] (current)martins-v 'hostid' clarified to include both hosts and templates Both sides previous revision Previous revision 2018/12/17 09:59 martins-v 'hostid' clarified to include both hosts and templates2014/09/26 11:22 sasha Links adapted because of a move operation2014/09/25 14:43 sasha Page moved from 2.4:manual:api:reference:item:object to manual:api:reference:item:object 2018/12/17 09:59 martins-v 'hostid' clarified to include both hosts and templates2014/09/26 11:22 sasha Links adapted because of a move operation2014/09/25 14:43 sasha Page moved from 2.4:manual:api:reference:item:object to manual:api:reference:item:object 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 52: Line 52: | state | integer | //​(readonly)//​ State of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ normal; \\ 1 - not supported. | | state | integer | //​(readonly)//​ State of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ normal; \\ 1 - not supported. | | status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ enabled item; \\ 1 - disabled item. | | status | integer | Status of the item. \\ \\ Possible values: \\ 0 - //​(default)//​ enabled item; \\ 1 - disabled 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. |