文档
测试

记录列表

GET
http:/domain/api/front/host/lists?start_date=2019-01-01&end_date=2020-12-09&page=1&limit=20

请求头

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

请求参数

参数名
类型
描述
必填
start_date
date
开始日期
可选
end_date
date
截至日期
可选
page
int
当前第几页
可选
limit
int
分页数量,默认15
可选
sub_host
string
根域名
可选
host
string
子域名前缀,如:www
可选
target
string
记录值
可选
isp
int
解析线路(isp)
可选
record_type
string
记录类型
可选
backup
int
0-主用 1-备用
可选
mstate
int
宕机状态 1-宕机 0-正常
可选
mtype
int
监控状态 1-开启 0-关闭
可选

响应参数

参数名
类型
描述
必填
id
int
记录id
必填
merchat_id
int
用户id
必填
host
string
子域名
必填
sub_host
string
根域名
必填
record_type
string
记录类型
必填
isp
int
解析线路(isp)
必填
dns_line
json
对应解析线路(isp)
必填
id
int
id
必填
types
int
解析线路(isp) 值
必填
name
string
解析线路(isp) 名称
必填
target
string
记录值
必填
ttl
int
TTL(秒)
必填
preference
int
优先级(记录类型为MX时有这个值)
必填
states
int
状态 0-暂停 1-启用
必填
mtype
int
监控类型 0-监控关闭 1-HTTP 2-TCP 3-TCP OVER TLS 4-PING
必填
mstate
int
宕机状态 0-正常 1-宕机
必填
mvalue
string
ping://5 表示监控本记录ip,监控类型为PING的时候。
必填
backup
int
是否备用线路 0-否 1-是
必填
remark
string
备注
必填
host_json
json
配置信息
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": { "list": { "current_page": 1, "data": [{ "id": 15, "merchat_id": 10001, "host": "a1.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.1", "ttl": 60, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "666e.club", "host_json": "{\"backup\":false,\"ip\":\"1.1.1.1\",\"line\":0,\"moniter\":{\"mtype\":0,\"timeout\":0,\"domain\":\"\",\"port\":0,\"action\":0,\"fallback\":null,\"recordIP\":\"\",\"recordKey\":\"\"},\"runStatus\":0,\"ttl\":60}", "created_at": "2020-11-14 08:44:07", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 16, "merchat_id": 10001, "host": "a1.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.3", "ttl": 600, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.3\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-12-11 13:25:29", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 17, "merchat_id": 10001, "host": "a1.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.4", "ttl": 600, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.4\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-12-11 13:25:31", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 18, "merchat_id": 10001, "host": "a1.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.5", "ttl": 600, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.5\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-12-11 13:25:33", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 19, "merchat_id": 10001, "host": "a1.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.6", "ttl": 600, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.6\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-12-11 13:25:35", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 14, "merchat_id": 10001, "host": "a3.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.5", "ttl": 600, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"backup\":false,\"ip\":\"1.1.1.5\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-11-14 08:44:04", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 23, "merchat_id": 10001, "host": "ww.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.1", "ttl": 10, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.1\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":10}", "created_at": "2020-12-25 14:20:06", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 25, "merchat_id": 10001, "host": "www.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.4", "ttl": 600, "preference": 0, "states": 1, "mtype": 3, "mstate": 1, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.4\",\"line\":0,\"moniter\":{\"mtype\":3,\"timeout\":0,\"domain\":\"\",\"port\":80,\"action\":0,\"fallback\":\"\",\"recordIP\":\"\",\"recordKey\":\"\"},\"runStatus\":0,\"ttl\":600}", "created_at": "2020-12-25 20:07:40", "dns_line": { "id": 1, "types": 0, "name": "默认" } }, { "id": 26, "merchat_id": 10001, "host": "www.666e.club", "sub_host": "666e.club", "record_type": "a", "isp": "0", "target": "1.1.1.1", "ttl": 60, "preference": 0, "states": 1, "mtype": 0, "mstate": 0, "mvalue": "", "backup": 0, "remark": "", "host_json": "{\"ip\":\"1.1.1.1\",\"line\":0,\"moniter\":{\"action\":0,\"domain\":\"\",\"fallback\":\"\",\"mtype\":0,\"port\":0,\"recordIP\":\"\",\"recordKey\":\"\",\"timeout\":0},\"runStatus\":0,\"ttl\":60}", "created_at": "2020-12-26 00:25:22", "dns_line": { "id": 1, "types": 0, "name": "默认" } }], "first_page_url": "http:\/\/127.0.0.1:9807\/api\/front\/host\/lists?page=1", "from": 1, "last_page": 1, "last_page_url": "http:\/\/127.0.0.1:9807\/api\/front\/host\/lists?page=1", "next_page_url": null, "path": "http:\/\/127.0.0.1:9807\/api\/front\/host\/lists", "per_page": 15, "prev_page_url": null, "to": 9, "total": 9 } } } ```