object drule.delete(array discoveryRuleIds)
对象 drule.delete(array discoveryRuleIds)
This method allows to delete discovery rules. 该方法用于删除发现规则。
(array)
IDs of the discovery rules to delete. (数组)
要删除的发现规则的ID
(object)
Returns an object containing the IDs of the deleted discovery rules under the druleids
property. (对象)
在 druleids
属性下,返回包含已删除的发现规则的ID的对象.
Delete two discovery rules. 删除两个发现规则
Request: 请求:
{
"jsonrpc": "2.0",
"method": "drule.delete",
"params": [
"4",
"6"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
Response: 响应:
CDRule::delete() in frontends/php/include/classes/api/services/CDRule.php.