This method allows to delete host groups.此方法允许删除主机组。

    A host group can not be deleted if:如果主机组有以下情况,则不能被删除:

    • it is used by a host prototype;被主机原型使用;

    • it is used in a global script;在全局脚本中使用;

    • it is used in a correlation condition.在相关条件下使用。

    Returns an object containing the IDs of the deleted host groups under the property.返回包含“groupids”属性下删除的主机组的ID的对象。

    Deleting multiple host groups删除多个主机组

    Delete two host groups.删除两个主机组

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "groupids": [
    4. "107824",
    5. "107825"
    6. ]
    7. },
    8. "id": 1

    CHostGroup::delete() in frontends/php/include/classes/api/services/CHostGroup.php.