查询接入点
返回账号可用的接入点(host:port)、支持的协议与各自流量情况。提取代理时需要用这里的 endpointHost 与 endpointPort。
接口信息
GET /api/iplt/client/dynamics/account/endpoint/list
认证方式:API Key(x-merchant-code + x-merchant-token)
请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| x-merchant-token | 是 | String | 商户令牌(API Key 的 token 部分) |
| x-merchant-code | 是 | String | 商户代码(API Key 的 code 部分) |
| Content-Type | 否 | String | 固定 application/json(POST/PUT 必填) |
请求参数(Query)
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| pageNum | 否 | Integer | 页码,默认 1 |
| pageSize | 否 | Integer | 每页条数,默认 10 |
| accountId | 否 | String | 账号 ID |
| sourceId | 否 | Long | 产品源 ID |
| endpointHost | 否 | String | 按接入点域名筛选 |
| endpointPort | 否 | Integer | 按端口筛选 |
| endpointStatus | 否 | String | 按状态筛选 |
| supportedProtocol | 否 | String | 按协议筛选 |
响应示例
{
"total": 2,
"rows": [
{
"id": 9001,
"accountId": "384940",
"endpointHost": "gate.example.com",
"endpointPort": 8000,
"endpointStatus": "active",
"expireTime": "2026-12-31",
"useTrafficGb": 12.5000,
"limitTrafficGb": 100.0000,
"supportedProtocol": "HTTP,SOCKS5",
"remarks": ""
}
],
"code": 200,
"msg": "查询成功"
}
响应参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| id | Long | 记录主键 |
| accountId | String | 账号 ID |
| sourceId | Long | 产品源 ID |
| endpointHost | String | 接入点域名 |
| endpointPort | Integer | 接入点端口 |
| endpointStatus | String | 接入点状态 |
| expireTime | String | 到期日期(YYYY-MM-DD) |
| useTrafficGb | Decimal | 该接入点已用流量(GB) |
| limitTrafficGb | Decimal | 该接入点流量上限(GB) |
| supportedProtocol | String | 支持的协议,如 HTTP,SOCKS5 |
| remarks | String | 备注 |
说明接入点流量字段单位是 GB(
useTrafficGb / limitTrafficGb),与账号余额的 MB 不同,做展示时注意换算。