zabbix_host_update
Update existing Zabbix host properties by specifying the host ID and the fields to change, including hostname, groups, templates, interfaces, macros, and inventory.
Instructions
Updates properties of an existing Zabbix host. Provide only the hostid and the properties to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | New technical name of the host. | |
| name | No | New visible name of the host. | |
| groups | No | Replaces ALL existing host group memberships. Array of objects with "groupid". | |
| hostid | Yes | ID of the host to update. | |
| macros | No | Replaces ALL existing host macros. Provide hostmacroid to update specific macro. | |
| status | No | Host status: 0 (monitored), 1 (unmonitored). | |
| inventory | No | Object with inventory fields to update, e.g., { os: 'New OS', type: 'Server X' }. | |
| templates | No | Replaces ALL currently linked templates. Array of objects with "templateid". | |
| interfaces | No | Replaces ALL existing interfaces for the host. | |
| tls_accept | No | ||
| description | No | ||
| tls_connect | No | ||
| proxy_hostid | No | ID of the proxy. Use '0' for Zabbix server. | |
| inventory_mode | No | ||
| templates_clear | No | Templates to unlink and clear. Array of objects with "templateid". |