文档中心 API文档 查询带域名属性域名列表

查询带域名属性域名列表

更新时间:2023-12-15 10:32:03

适用产品

网页加速、下载分发、动态加速、全站加速、点播分发、直播分发、上传加速、移动加速、上网加速、S-P2P、PCDN、应用性能管理、WEB应用防火墙、BotGuard爬虫管理、WSS、DMS、DDoS云清洗、应用加速、应用安全加速解决方案、IPv6一体化解决方案、电商安全加速解决方案、金融安全加速解决方案、政企安全加速解决方案、应用安全解决方案、区块链安全加速解决方案、IPv6安全加速解决方案

接口描述

查询域名列表

调用频率

单用户调用频率:100/5min

推荐使用 Open API在线调试

Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试

返回参数

Body 参数

参数名称描述
code
httpstatus=202; 表示成功调用新增域名接口
x-cnc-request-id
唯一标示的id,用于查询每次请求的任务 (适用全部接口)
domain-summary
cname
加速域名对应的CNAME域名,例如:7nt6mrh7sdkslj.cdn30.com
domain-id
对应的域名ID
domain-name
加速域名名称
origin-ips
加速域名的回源IP
service-type
加速域名的服务类型
status
加速域名的部署状态
enabled
加速域名是否启用,true和false

错误码

错误代码(code)描述(message)HTTP状态码语义
InternalErrorWe encountered an internal error. Please try again.500服务器异常,数据获取失败等内部错误

示例

XML
XML
请求示例
复制代码 复制成功
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "http://open.chinanetcenter.com/api/domainlist" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/xml" \
-H "Content-type: application/xml" \
返回示例
复制代码 复制成功
HTTP/1.1 200 OK
Server: openresty/1.11.2.2
Date: Wed, 12 Jun 2019 04:46:20 GMT
Content-Type: application/xml;charset=utf-8
Content-Length: 107016
Connection: keep-alive
App-Name: service_confApi
x-cnc-request-id: 22fbaccb-ae41-40f3
<domain-list>
    <domain-summary>
      <domain-id>123344</domain-id>
      <domain-name>a1.example.com</domain-name>
      <service-type>web</service-type>
      <cname>a1.example.com.cdn20.com</cname>
      <status>Deployed</status>
      <enabled>true</enabled>
      <origin-ips>1.1.1.0</origin-ips>
    </domain-summary>
    <domain-summary>
      <domain-id>125566</domain-id>
      <domain-name>a2.example.com</domain-name>
      <service-type>web</service-type>
      <cname>a2.example.com.cdn20.com</cname>
      <status>Deployed</status>
      <enabled>true</enabled>
      <origin-ips>1.1.1.1</origin-ips>
   </domain-summary>
    <domain-summary>
    <domain-id>81544</domain-id>
    <domain-name>xzx2.test.com</domain-name>
    <service-type>dns</service-type>
    <cname>xzx2.test.com.cdn20.com</cname>
    <status>Deployed</status>
    <cdn-service-status>true</cdn-service-status>
    <enabled>true</enabled>
    <origin-ips>2.2.2.2</origin-ips>
  </domain-summary>
  </domain-list>
本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!