host_update
Update an existing host in Zabbix by modifying its ID, name, visible name, or status using the specified parameters. Returns JSON-formatted results for seamless integration.
Instructions
Update an existing host in Zabbix.
Args:
hostid: Host ID to update
host: New host name
name: New visible name
status: New status (0=enabled, 1=disabled)
Returns:
str: JSON formatted update result
Input Schema
Name | Required | Description | Default |
---|---|---|---|
host | No | ||
hostid | Yes | ||
name | No | ||
status | No |
Input Schema (JSON Schema)
{
"properties": {
"host": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host"
},
"hostid": {
"title": "Hostid",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"status": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Status"
}
},
"required": [
"hostid"
],
"type": "object"
}