Zabbix Documentation 4.4

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:api:reference:host:update

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:host:update [2020/02/26 15:50]
marinagen better link styling
manual:api:reference:host:update [2020/02/28 14:31] (current)
marinagen better link styling
Line 18: Line 18:
  
 ^ Parameter ^ Type ^ Description ^ ^ Parameter ^ Type ^ Description ^
-| groups | object/​array | Host groups to replace the current host groups the host belongs to.\\ \\ The host groups must have the ''​groupid''​ property defined. All host groups that are not listed in the request will be unlinked. |+| groups | object/​array | Host [[: manual/​api/​reference/​hostgroup/​object |groups]] to replace the current host groups the host belongs to.\\ \\ The host groups must have the ''​groupid''​ property defined. All host groups that are not listed in the request will be unlinked. |
 | interfaces | object/​array | Host [[:​manual/​api/​reference/​hostinterface/​object|interfaces]] to replace the current host interfaces.\\ \\ All interfaces that are not listed in the request will be removed. ​ | | interfaces | object/​array | Host [[:​manual/​api/​reference/​hostinterface/​object|interfaces]] to replace the current host interfaces.\\ \\ All interfaces that are not listed in the request will be removed. ​ |
 | tags | object/​array | Host [[:​manual/​api/​reference/​host/​object#​host_tag|tags]] to replace the current host tags.\\ \\ All tags that are not listed in the request will be removed. | | tags | object/​array | Host [[:​manual/​api/​reference/​host/​object#​host_tag|tags]] to replace the current host tags.\\ \\ All tags that are not listed in the request will be removed. |
 | inventory | object | Host [[:​manual/​api/​reference/​host/​object#​host_inventory|inventory]] properties. | | inventory | object | Host [[:​manual/​api/​reference/​host/​object#​host_inventory|inventory]] properties. |
 | macros | object/​array | [[:​manual/​api/​reference/​usermacro/​object|User macros]] to replace the current user macros.\\ \\ All macros that are not listed in the request will be removed. | | macros | object/​array | [[:​manual/​api/​reference/​usermacro/​object|User macros]] to replace the current user macros.\\ \\ All macros that are not listed in the request will be removed. |
-| templates | object/​array | Templates to replace the currently linked templates. All templates that are not listed in the request will be only unlinked. \\ \\ The templates must have the ''​templateid''​ property defined. | +| templates | object/​array ​| [[: manual/​api/​reference/​template/​object ​|Templates]] to replace the currently linked templates. All templates that are not listed in the request will be only unlinked. \\ \\ The templates must have the ''​templateid''​ property defined. | 
-| templates_clear | object/​array | Templates to unlink and clear from the host. \\ \\ The templates must have the ''​templateid''​ property defined. |+| templates_clear | object/​array ​| [[: manual/​api/​reference/​template/​object ​|Templates]] to unlink and clear from the host. \\ \\ The templates must have the ''​templateid''​ property defined. |
 <note tip>As opposed to the Zabbix frontend, when ''​name''​ (visible host name) is the same as ''​host''​ (technical host name), updating ''​host''​ via API will not automatically update ''​name''​. Both properties need to be updated explicitly.</​note>​ <note tip>As opposed to the Zabbix frontend, when ''​name''​ (visible host name) is the same as ''​host''​ (technical host name), updating ''​host''​ via API will not automatically update ''​name''​. Both properties need to be updated explicitly.</​note>​
 ==== Return values ==== ==== Return values ====