文档中心 API文档 查询域名URL屏蔽

查询域名URL屏蔽

更新时间:2023-05-30 14:43:35

适用产品

网页加速、下载分发、全站加速、应用安全加速解决方案、IPv6一体化解决方案、电商安全加速解决方案、金融安全加速解决方案、政企安全加速解决方案、应用安全解决方案、区块链安全加速解决方案、IPv6安全加速解决方案、点播分发、移动加速、直播分发

接口描述

通过接口自助查询域名URL屏蔽内容

  • 调用URL: https://open.chinanetcenter.com/api/basicconfig/illegalinformation/*
  • 调用方法:GET
  • 限制说明:·在中国 加速域名必须已备案完成。 · 加速域名必须不包含如下信息:出售药物和管制刀具类,含有不法言论、信息。 · 视频类加速域名必须有视听许可证;博客论坛或社区类加速域名必须有BBS专项审批资质。 · 接口请求和返回结果接受xml和json格式。

请求参数

Body 参数

XML
参数名称类型必填描述
domain-name/domain-id
string在CNC系统中生效的域名或域名对应的id。返回这个域名下所有的url屏蔽内容

返回参数

Body 参数

JSON
参数名称类型描述
domainName
String在CNC系统中生效的域名。返回这个域名下所有的url屏蔽内容
domainId
String在CNC系统中生效的域名。返回这个域名下所有的url屏蔽内容
customerCode
String需要非法屏蔽的客户在我司设置的英文名,如Nicole.
illegalInformations
List非法信息屏蔽详情
url
String屏蔽的url信息
areas
List非法信息屏蔽的区域。为空代表全球。
method
String匹配方式,支持模糊和精确;模糊入参为:fuzzy;精确匹配:exact。为空默认是精确。

示例

JSON
XML
JSON
请求示例
复制代码 复制成功
#!/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 "https://open.chinanetcenter.com/api/basicconfig/illegalinformation/*" \
-X "GET" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json"
-H "Content-Type:application/json"
返回示例
复制代码 复制成功
HTTP/1.1 202 Accepted
Date: Fri, 17 May 2017 06:33:26 GMT
Content-Type: application/json;charset=utf-8
x-cnc-request-id:c54cbbb4-19fe-407a-930c-3988b62ed2fd
{
    "domain-name":"www.example.com",
      "domain-id":"100018"
    "customer-code":"example",
    "illegal-informations":[{
        "url":"http://www.example.com/ban/url",
        "method":"exact",
        "areas":["China","Russia"]
    },
    {
        "url":"http://www.example.com/ban/*",
        "method":"fuzzy",
        "areas":["China","Russia"]
    }]
}
本篇文档内容对您是否有帮助?
有帮助
我要反馈
提交成功!非常感谢您的反馈,我们会继续努力做到更好!