查詢域名列表
更新時間 2024-11-15 17:04:37
最近更新時間: 2024-11-15 17:04:37
分享文章
接口描述:調用本接口查詢域名列表及域名的基礎信息
請求方式:get
請求路徑:/domain/query-domain-list
使用說明:
新建的域名需要配置部署完畢(預計10分鐘),本接口才能查詢到
單個用戶一分鐘限制調用10000次,并發不超過10
請求參數說明:
| 參數名 | 類型 | 是否必填 | 名稱 | 說明 |
|---|---|---|---|---|
| domain | string | 否 | 域名 | 域名,不填默認所有域名 |
| product_code | string | 否 | 產品類型 | “006”(全站加速),不填默認所有產品 |
| 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 | 否 | 查詢結果總條數 |
| total_count | int | 否 | 查詢結果總條數 |
| page | int | 否 | 當前頁數 |
| page_size | int | 否 | 每頁條數 |
| page_count | int | 否 | 查詢結果總頁數 |
| result | list<object> | 否 | 返回結果列表 |
| 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&page=1&page_size=2
返回結果:
{
"code": 100000,
"message": "success",
"total": 52,
"total_count": 52,
"page": 1,
"page_count": 26,
"page_size": 2,
"result": [
{
"area_scope": 1,
"insert_date": 1667882163000,
"domain": "sd54sdhmytest.daliqc.cn",
"cname": "sd54sdhmytest.daliqc.cn.ctadns.cn.",
"record_num": "京ICP證030173號-1",
"product_code": "006",
"product_name": "全站加速",
"status": 4
},
{
"area_scope": 1,
"insert_date": 1666765345000,
"domain": "sd54sd.daliqc.cn",
"cname": "sd54sd.daliqc.cn.ctadns.cn.",
"record_num": "京ICP證030173號-1",
"product_code": "006",
"product_name": "全站加速",
"status": 6
}
]
}錯誤碼請參考:參數code和message含義