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:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "groupid": "2",
    6. "name": "Linux servers",
    7. "internal": "0"
    8. },
    9. "groupid": "4",
    10. "name": "Zabbix servers",
    11. "internal": "0"
    12. }
    13. ],
    14. "id": 1
    15. }

    Source来源