删除

描述

object proxy.delete(array proxies)

此方法允许删除代理

参数

(array) 删除代理的IDs

返回值

(object) 返回在proxyids属性下包含已删除代理的id的对象。

示例如下

删除多个代理Proxy

删除两个代理Proxy

Request:

{
           "jsonrpc": "2.0",
           "method": "proxy.delete",
           "params": [
               "10286",
               "10285"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "proxyids": [
                   "10286",
                   "10285"
               ]
           },
           "id": 1
       }

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