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:
- {
- "jsonrpc": "2.0",
- "groupids": [
- "107824",
- "107825"
- ]
- },
- "id": 1
CHostGroup::delete() in frontends/php/include/classes/api/services/CHostGroup.php.