根據源站查詢域名基礎信息
更新時間 2023-11-10 15:02:01
最近更新時間: 2023-11-10 15:02:01
分享文章
接口描述:調用本接口查詢源站對應的域名基礎信息
請求方式:get
請求路徑:/domain/query-domain-info-by-origins
使用說明: 單個用戶一分鐘限制調用10000次,并發不超過100
請求參數說明:
| 參數名 | 類型 | 是否必填 | 名稱 | 說明 |
|---|---|---|---|---|
| product_code | list<string> | 是 | 產品類型列表 | 支持:“001”(靜態加速),“003”:(下載加速), “004”(視頻點播加速),“008”(CDN加速),“006”(全站加速),“007”(安全加速),"014"(下載加速(閑時)) |
| origins | string | 是 | 源站ip或域名 | 多個ip用英文逗號分隔 |
返回參數說明:
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼,成功100000 |
| message | string | 是 | 描述信息,成功返回success,其他返回異常信息描述 |
| result | list<object> | 否 | 返回結果列表 |
| result[*].domain_id | int | 否 | 域名id |
| result[*].area_scope | int | 否 | 加速范圍,1(國內);2(海外);3(國內+海外) |
| result[*].account_id | string | 否 | 客戶唯一標識 |
| result[*].record_status | string | 否 | 是否備案 |
| result[*].domain | string | 否 | 域名 |
| result[*].product_code | string | 否 | 產品類型,“001”(靜態加速),“003”:(下載加速), “004”(視頻點播加速),“008”(CDN加速),“006”(全站加速),“007”(安全加速),"014"(下載加速(閑時)) |
| result[*].cname | string | 否 | cname |
| result[*].billing_status | int | 否 | 域名的計費狀態,1(計費域名); 2(非計費域名) |
| result[*].record_num | string | 否 | 工信部ICP備案號 |
| result[*].status | int | 否 | 域名狀態,1(審核中);2(審核成功),3(配置中);4(已啟用);5(停止中);6(已停止);7(刪除中);8(已刪除);9(審核失敗);10(配置失敗);11(停止失敗);12(刪除失敗) |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/domain/query-domain-info-by-origins
請求:
//cdnapi-global.ctapi.daliqc.cn/domain/query-domain-info-by-origins?product_code=[“001”,“003”]&origins=aaa.daliqc.cn,bbb.daliqc.cn
返回結果:
{
"code": 100000,
"message": "success",
"result": [
{
"domain_id": 22624,
"area_scope": 1,
"account_id": "111111",
"record_status": "true",
"domain": "aaa.daliqc.cn",
"product_code": "001",
"cname": "aaa.daliqc.cn.ctdns.cn.",
"billing_status": 1,
"record_num": 0,
"status": 4
},
{
"domain_id": 22625,
"area_scope": 1,
"account_id": "111111",
"record_status": "true",
"domain": "bbb.daliqc.cn",
"product_code": "003",
"cname": "bbb.daliqc.cn.ctdns.cn.",
"billing_status": 1,
"record_num": 0,
"status": 4
}
]
}錯誤碼請參考:參數code和message含義