Sidebar

drule.delete

描述

object drule.delete(array discoveryRuleIds)

该方法允许删除发现规则.

参数

(array) 要删除发现规则的ID.

返回值

(object)druleids属性下返回包含删除的发现规则的ID对象.

例子

删除多个发现规则

删除两个发现规则.

请求:

{
           "jsonrpc": "2.0",
           "method": "drule.delete",
           "params": [
               "4",
               "6"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

响应:

{
           "jsonrpc": "2.0",
           "result": {
               "druleids": [
                   "4",
                   "6"
               ]
           },
           "id": 1
       }

来源

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