host_get
Retrieve hosts from Zabbix using customizable filters such as host IDs, group IDs, or templates. Outputs results in JSON format with options for specific fields or extended details.
Instructions
Get hosts from Zabbix with optional filtering.
Args:
hostids: List of host IDs to retrieve
groupids: List of host group IDs to filter by
templateids: List of template IDs to filter by
output: Output format (extend, shorten, or specific fields)
search: Search criteria
filter: Filter criteria
limit: Maximum number of results
Returns:
str: JSON formatted list of hosts
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | No | ||
groupids | No | ||
hostids | No | ||
limit | No | ||
output | No | extend | |
search | No | ||
templateids | No |
Input Schema (JSON Schema)
{
"properties": {
"filter": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Filter"
},
"groupids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Groupids"
},
"hostids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Hostids"
},
"limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Limit"
},
"output": {
"default": "extend",
"title": "Output",
"type": "string"
},
"search": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Search"
},
"templateids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Templateids"
}
},
"type": "object"
}