drule.delete

描述

object drule.delete(array discoveryRuleIds)

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

参数

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

返回值

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

例子

删除多个发现规则

删除两个发现规则.

请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "drule.delete",
  4. "params": [
  5. "4",
  6. "6"
  7. ],
  8. "auth": "3a57200802b24cda67c4e4010b50c065",
  9. "id": 1
  10. }

响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "druleids": [
  5. "4",
  6. "6"
  7. ]
  8. },
  9. "id": 1
  10. }

来源

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