查询域名列表
更新时间 2023-11-13 18:33:45
最近更新时间: 2023-11-13 18:33:45
接口描述:调用本接口查询域名列表及域名的基础信息
请求方式:get
请求路径:/domain/query-domain-list
使用说明: 单个用户一分钟限制调用10000次,并发不超过100
Query参数说明:
| 参数名 | 类型 | 是否必填 | 名称 | 说明 |
|---|---|---|---|---|
| domain | string | 否 | 域名 | 域名,不填默认所有域名 |
| product_code | string | 否 | 产品类型 | “007”(安全加速) |
| status | int | 否 | 域名状态 | 1(审核中);2(审核成功),3(配置中);4(已启用);5(停止中);6(已停止);7(删除中);8(已删除);9(审核失败);10(配置失败);11(停止失败);12(删除失败),不填默认所有状态 |
| area_scope | int | 否 | 加速范围 | 1(国内);不填默认1 |
| page | int | 否 | 页码 | 不填默认1 |
| page_size | int | 否 | 每页条数 | 不填默认50,最大100 |
返回参数说明:
| 参数 | 类型 | 是否必传 | 名称及描述 |
|---|---|---|---|
| code | int | 是 | 状态码 |
| message | string | 是 | 描述信息 |
| total | int | 否 | 查询结果总条数 |
| total_count | int | 否 | 查询结果总条数 |
| page | int | 否 | 当前页数 |
| page_size | int | 否 | 每页条数 |
| page_count | int | 否 | 查询结果总页数 |
| result | list | 否 | 返回结果列表 |
| result[*].domain | string | 否 | 域名 |
| result[*].cname | string | 否 | cname |
| result[*].product_code | string | 否 | 产品类型 |
| result[*].product_name | string | 否 | 产品名称 |
| result[*].status | int | 否 | 域名状态 |
| result[*].insert_date | int | 否 | 域名创建时间,单位毫秒 |
| result[*].area_scope | int | 否 | 加速范围 |
| result[*].record_num | string | 否 | 备案号 |
示例:
请求路径:https://cdnapi-global.ctapi.ctyun.cn/domain/query-domain-list
请求:https://cdnapi-global.ctapi.ctyun.cn/domain/query-domain-list?product_code=006
返回结果:
{
"code": 100000,
"message": "success",
"total": 4,
"page": 1,
"page_size": 50,
"result": [
{
"area_scope": 1,
"insert_date": 1660202399000,
"domain": "ctyun.cn",
"cname": "aaa.ctdns.cn",
"product_code": "007",
"product_name": "安全加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1660202139000,
"domain": "ctyun.cn1",
"cname": "bbb.com.ctlcdn.cn",
"record_num": "京ICP备1号-163",
"product_code": "007",
"product_name": "安全加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1659423011000,
"domain": "ctyun.cn2",
"cname": "ccc.com.ctdns.cn",
"record_num": "京ICP备1号-65",
"product_code": "007",
"product_name": "安全加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1658731104000,
"domain": "www.ctyun.com",
"cname": "www.com.ctdns.cn",
"record_num": "京ICP备1号-13",
"product_code": "007",
"product_name": "安全加速",
"status": 4
}
]
}错误码请参考:API返回参数code和message含义