删除

描述

object proxy.delete(array **proxies**)

此方法允许删除代理

参数

(array) 删除代理的IDs

返回值

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

示例如下

删除多个代理Proxy

删除两个代理Proxy

Request:

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

Response:

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

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