host_update
Update a Zabbix host's visible name and manage its group membership by adding or removing groups using their IDs.
Instructions
修改主机的可见名称和群组。群组参数为groupid(需先查询)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostid": "<hostid>"
},
"name": "host_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | Yes | 主机ID | |
| new_name | No | 新可见名称 | |
| add_groups | No | 要添加的群组ID(追加模式) | |
| remove_groups | No | 要移除的群组ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |