The method allows to retrieve proxies according to the given parameters. 该方法允许根据给定的参数查询代理。
Parameters 参数
(object)
Parameters defining the desired output. (object)
定义所需输出的参数。
The method supports the following parameters. 此方法支持一下参数
(integer/array)
Returns either:
the count of retrieved objects, if the
countOutput
parameter has been used.一个对象数组
搜索到对象的数量,如果对象被使用
Examples 示例如下
Retrieve all proxies 检索所有的代理
Retrieve all configured proxies and their interfaces. 检索所有配置的代理和他们的接口
Response:
{
"jsonrpc": "2.0",
"result": [
{
"host": "Active proxy",
"status": "5",
"lastaccess": "0",
"proxyid": "30091",
"description": "",
"tls_connect": "1",
"tls_accept": "1",
"tls_issuer": "",
"tls_subject": "",
"tls_psk_identity": "",
"tls_psk": ""
{
"interface": {
"interfaceid": "30109",
"useip": "1",
"ip": "127.0.0.1",
"dns": "",
"port": "10051"
],
"host": "Passive proxy",
"status": "6",
"lastaccess": "0",
"proxyid": "30092",
"description": ""
}
],
}
Source
CProxy::get() in frontends/php/include/classes/api/services/CProxy.php.