object hostgroup.delete(array hostGroupIds)
此方法允许删除主机组.
如果主机组有以下情况,则不能被删除:
(array)
要删除主机组的ID.
(object)
在groupids
属性中返回包含已删主机组ID的对象.
删除两个主机组.
请求:
{
"jsonrpc": "2.0",
"method": "hostgroup.delete",
"params": [
"107824",
"107825"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
响应:
CHostGroup::delete() in frontends/php/include/classes/api/services/CHostGroup.php.