网页加速、下载分发、动态加速、全站加速、点播分发、直播分发、上传加速、移动加速、上网加速、S-P2P、PCDN、应用性能管理、WEB应用防火墙、BotGuard爬虫管理、WSS、DMS、DDoS云清洗、应用加速、应用安全加速解决方案、IPv6一体化解决方案、电商安全加速解决方案、金融安全加速解决方案、政企安全加速解决方案、应用安全解决方案、区块链安全加速解决方案、IPv6安全加速解决方案
查询用户账号下,源站IP对应的所有域名名称列表。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
originip | String | 是 | 源站IP,多个IP用分号隔开 注意: 1、每次查询最多只能传入10个源站IP 2、不支持源站域名的查询 3、高级源匹配到对应IP时也能查到对应域名 |
参数名称 | 类型 | 描述 |
---|---|---|
http status code | Integer | httpstatus=202; 表示成功调用新增域名接口,可使用header中的x-cnc-request-id查看当前新增域名的部署情况 |
x-cnc-request-id | String | 唯一标示的id,用于查询每次请求的任务 (适用全部接口) |
code | Integer | code=200,表示成功返回相关数据 |
originip | String | 查询的源站IP |
domainList | List | 返回各个源站IP对应的域名名称列表 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
NotAcceptable | The accept type must contains json. | 406 | 可接受的MIME类型只能是json |
OriginIpExcessive | The number origin ip is excessive once. | 403 | 查询的源站IP超过数量限制 |
InvalidOriginIp | The origin ip you provided is invalid. | 404 | 您提供的源站IP是无效的 |
InternalError | We encountered an internal error. Please try again. | 500 | 服务器异常,数据获取失败等内部错误 |
#!/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/originaldomainlist?originip=221.238.24.56;221.238.24.58" \ -X "GET" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json"
HTTP/1.1 200 OK Server: openresty/1.11.2.2 Date: Mon, 27 May 2019 02:10:27 GMT Content-Type: application/json;charset=utf-8 Content-Length: 2355 Connection: keep-alive App-Name: service_confApi x-cnc-request-id: 8e170db2-3efd-45f6 { "code": 200, "result": { "DomainList": [ { "originIp": "221.238.24.56", "domainList": [ "171101.example.com", "171102.example.com", "171103.example.com" ] }, { "originIp": "221.238.24.58", "domainList": [ "171104.example.com", "171105.example.com", "171106.example.com" ] } ] } }