文档
测试

子域名列表

GET
http:/domain/api/front/host/lists?start_date=2019-01-01&end_date=2020-12-09&page=1&limit=20&pid=2&sub_host=v9381.com&port=&host=www.v9381.com&source=

请求头

参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填

请求参数

参数名
类型
描述
必填
start_date
date
开始日期
可选
end_date
date
截至日期
可选
page
int
当前第几页
可选
limit
int
分页数量,默认15
可选
pid
int
产品id
可选
sub_host
string
主域名
可选
port
string
开站端口
可选
host
string
子域名
可选
source
string
源站
可选

响应参数

参数名
类型
描述
必填
id
int
子域名id
必填
pid
int
产品id
必填
host
string
子域名
必填
sub_host
string
主域名
必填
servicePort
string
开站端口,如果为空则前台默认 80,443s
必填
scheme
string
目标类型 http,https,ws,wss
必填
states
int
状态 0-禁用 1-启用
必填
max_fail
int
失败重试次数
必填
timeout
int
重试超时(秒)
必填
districts_states
int
开启地区屏蔽 0-关闭 1-开启
必填
host_json_server
json
域名配置信息,其中回源地址 在 upstreams 内(可多个) :"upstreams": [ { "addr": "string", "isSSL": true, "max_fail": 0, "port": "string", "timeout": 0, "widget": 0 } ]
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": { "list": { "current_page": 1, "data": [{ "id": 7517, "pid": 2, "host": "www.v9381.com", "sub_host": "v9381.com", "servicePort": "", "scheme": "http,ws,https,wss", "max_fail": 0, "timeout": 0, "states": 1, "districts_states": 0, "host_json_server": "{\"appid\":\"app66458\",\"balancer\":\"normal\",\"scheme\":\"http,ws,https,wss\",\"redirect\":0,\"host\":\"www.v9381.com\",\"kpAddHost\":true,\"kpHost\":\"www.v9381.com\",\"upstreams\":[{\"widget\":1,\"addr\":\"1.1.1.1\",\"max_fail\":0,\"timeout\":0}],\"groupKey\":\"064MBybBiB\",\"security\":{\"jsKey\":\"a41f5415a1bfcacef7a718ada7f63c1334cf431d\",\"cookiesKey\":\"be9a5d73504064e36edd9df51b00ecdd02674d01\",\"useCaptcha\":1,\"badReqOnSec\":100,\"STBadReqOnSec\":500},\"lockHttps\":true}", "created_at": "2020-11-22 15:17:43" }], "first_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/host\/lists?page=1", "from": 1, "last_page": 1, "last_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/host\/lists?page=1", "next_page_url": null, "path": "http:\/\/127.0.0.1:9907\/api\/front\/host\/lists", "per_page": 20, "prev_page_url": null, "to": 1, "total": 1 } } } ```