hostgroup_get
Retrieve Zabbix host groups with optional filtering by IDs, name, or host membership. Use to organize hosts and apply templates or permissions collectively.
Instructions
Get host groups from Zabbix.
Retrieves host groups with optional filtering. Host groups are used to organize and manage hosts collectively, applying templates, permissions, and maintenance windows to multiple hosts at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of results to skip (for pagination). Requires sortfield to be set. | |
| output | No | Output format. | extend |
| search | No | Search. | |
| hostids | No | Host IDs. | |
| groupids | No | Group IDs. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts in each group in the response (selectHosts=extend). | |
| group_name_contains | No | Shortcut to search for groups by name (constructs search={'name': group_name_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||