删除

Description 描述

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

This method allows to delete proxies. 此方法允许删除代理

Parameters 参数

(array) IDs of proxies to delete. (array) 删除代理的IDs

Return values 返回值

(object) Returns an object containing the IDs of the deleted proxies under the proxyids property. (object) 返回在proxyids属性下包含已删除代理的id的对象。

Examples 示例如下

Delete multiple proxies 删除多个代理

Delete two proxies. 删除两个代理

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. }

Source

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