查詢域名列表
更新時間 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 | 否 | 備案號 |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/domain/query-domain-list
請求://cdnapi-global.ctapi.daliqc.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": "daliqc.cn",
"cname": "aaa.ctdns.cn",
"product_code": "007",
"product_name": "安全加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1660202139000,
"domain": "daliqc.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": "daliqc.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含義