GetProxyList
获取指定网站已配置的所有反向代理规则。
- 路由:
POST /site - action:
GetProxyList
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 GetProxyList |
| sitename | 是 | String | 网站域名(注意小写) |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| - | Array<Object> | 代理规则列表,每项含 proxyname、proxydir、proxysite、todomain、type、cache、cachetime 等 |
示例
请求
POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded
action=GetProxyList&sitename=testapi.bt.local
响应
[{"proxyname": "api_proxy", "proxydir": "/api", "proxysite": "http://127.0.0.1:9090", "todomain": "testapi.bt.local", "type": 1, "cache": 0}]