The method allows to retrieve host groups according to the given parameters.该方法允许根据给定的参数检索主机组。
Parameters 参数
(object)
Parameters defining the desired output. 定义所需输出的参数。
The method supports the following parameters.该方法支持以下参数。
an array of objects;一组对象;
Examples 示例
Retrieving data by name按名称检索数据
Retrieve all data about two host groups named “Zabbix servers” and “Linux servers”.检索有关名为“Zabbix服务器”和“Linux服务器”的两个主机组的所有数据。
Response:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "groupid": "2",
- "name": "Linux servers",
- "internal": "0"
- },
- "groupid": "4",
- "name": "Zabbix servers",
- "internal": "0"
- }
- ],
- "id": 1
- }