删除
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:
{
"jsonrpc": "2.0",
"method": "proxy.delete",
"params": [
"10286",
"10285"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
Response:
{
"jsonrpc": "2.0",
"result": {
"proxyids": [
"10286",
"10285"
]
},
"id": 1
}
Source
CProxy::delete() in frontends/php/include/classes/api/services/CProxy.php.