文档
测试

记录列表

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

请求头

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

请求参数

参数名
类型
描述
必填
start_date
date
开始日期
可选
end_date
date
截至日期
可选
page
int
当前第几页
可选
limit
int
分页数量,默认15
可选
domain_id
int
根域名id
可选
name
string
子域名
可选
type
string
记录类型
可选
content
string
记录值
可选
disabled
int
状态 0-正常 1-暂停
可选

响应参数

参数名
类型
描述
必填
id
int
记录id
必填
domain_id
int
根域名id
必填
name
string
子域名
必填
type
string
记录类型
必填
content
string
记录值
必填
ttl
int
TTL
必填
prio
int
权重/MX
必填
disabled
int
状态 0-正常 1-暂停
必填
remark
string
备注
必填
created_at
time
创建时间
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": { "list": { "current_page": 1, "data": [{ "id": 1064, "domain_id": 203, "name": "16.com", "type": "NS", "content": "vip1.security-dns.vip", "ttl": 86400, "prio": null, "disabled": 0, "remark": "", "created_at": "2021-01-09 12:41:53" }, { "id": 1065, "domain_id": 203, "name": "16.com", "type": "NS", "content": "vip2.security-dns.vip", "ttl": 86400, "prio": null, "disabled": 0, "remark": "", "created_at": "2021-01-09 12:41:53" }], "first_page_url": "http:\/\/127.0.0.1:9912\/api\/front\/record\/lists?page=1", "from": 1, "last_page": 1, "last_page_url": "http:\/\/127.0.0.1:9912\/api\/front\/record\/lists?page=1", "next_page_url": null, "path": "http:\/\/127.0.0.1:9912\/api\/front\/record\/lists", "per_page": 15, "prev_page_url": null, "to": 2, "total": 2 } } } ```