查詢域名列表
更新時間 2024-11-21 11:01:38
最近更新時間: 2024-11-21 11:01:38
分享文章
接口功能介紹
查詢域名列表及域名的基礎信息
使用說明
單個用戶一分鐘限制調用10000次,并發不超過10
接口詳情
請求方式:get
請求路徑:/domain/query-domain-list
請求參數
| 參數 | 類型 | 名稱 | 是否必填 | 說明 |
|---|---|---|---|---|
| domain | string | 域名 | 否 | 域名,不填默認所有域名 |
| product_code | string | 產品類型 | 否 | 支持產品類型,“001”(靜態加速);“003”(下載加速); “004”(視頻點播加速);“005”(直播加速),不填默認所有產品 |
| status | int | 域名狀態 | 否 | 1(審核中);2(審核成功),3(配置中);4(已啟用);5(停止中);6(已停止); 7(刪除中);8(已刪除);9(審核失敗);10(配置失敗);11(停止失敗);12(刪除失敗),不填默認所有狀態 |
| area_scope | int | 加速范圍 | 否 | 1(國內);2(海外);3(全球)(數字類型),不填默認1 |
| page | int | 頁碼 | 否 | 不填默認1 |
| page_size | int | 每頁條數 | 否 | 不填默認50,最大100 |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| code | int | 狀態碼 |
| message | string | 描述信息 |
| total | 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=005
正常響應示例
{
"code": 100000,
"message": "success",
"total": 3,
"page": 1,
"page_count": 1,
"page_size": 50,
"result": [
{
"area_scope": 1,
"insert_date": 1660202139000,
"domain": "push.daliqc.cn",
"cname": "push.daliqc.cn.ctlcdn.cn",
"record_num": "京ICP備1號-163",
"product_code": "005",
"product_name": "直播加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1659423011000,
"domain": "pull.daliqc.cn",
"cname": "pull.daliqc.cn.ctdns.cn",
"record_num": "京ICP備1號-65",
"product_code": "005",
"product_name": "直播加速",
"status": 4
}
]
}
錯誤碼請參考:參數code和message含義