删除

描述

object correlation.delete(array correlationids)

此方法允许您删除关联。

此方法仅适用于 Super admin 用户类型。 调用该方法的权限可在用户角色设置中撤销。有关更多信息,请参见 用户 角色

参数

(array) 要删除的关联 ID。

返回值

(object) 返回一个对象,该对象包含correlationids属性下删除的关联 ID。

示例

删除多个事件关联

删除两个事件关联。

请求

{
    "jsonrpc": "2.0",
    "method": "correlation.delete",
    "params": [
        "1",
        "2"
    ],
    "id": 1
}

响应:

{
    "jsonrpc": "2.0",
    "result": {
        "correlationids": [
            "1",
            "2"
        ]
    },
    "id": 1
}

来源

ui/include/classes/api/services/CCorrelation.php 中的 CCorrelation::delete()。