网页加速、下载分发、动态加速、全站加速、点播分发、直播分发、上传加速、移动加速、上网加速、S-P2P、PCDN、应用性能管理、WEB应用防火墙、BotGuard爬虫管理、WSS、DMS、DDoS云清洗、IPv6一体化解决方案、电商安全加速解决方案、金融安全加速解决方案、政企安全加速解决方案、应用安全解决方案、区块链安全加速解决方案、IPv6安全加速解决方案
批量删除域名封禁URL
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
isShared | 否 | 是否要开启共享屏蔽,即域名和以这个域名共享缓存的域名的url需要一起屏蔽,入参值,true和false。 true表示要开启共享屏蔽,和共享删除屏蔽url 不填默认是false. | |
banUrls | 是 | 一个组需要非法信息屏蔽url的组合,每个url加匹配模式为一组。URL条数上限100个 | |
url | 是 | url信息,必须是客户名下的非挂起域名的url。 |
参数名称 | 类型 | 描述 |
---|---|---|
code | 错误代码,当HTTPStatus不为202时出现,表示当前请求调用的错误类型 | |
message | 响应信息,成功时为success | |
data | 响应数据 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
26939999 | We encountered an system error. Please try again. | 500 | 系统内部异常,请稍后重试 |
26937001 | This operation requires a body. Ensure that the body is present and the Content-Type header is set. | 400 | body内容为空 |
26937002 | The body of your HTTP request does not match with the content-type [xml/json]. | 400 | 请求报文与Content-Type描述不一致 |
26938005 | The value of isShared must be true or false. | 400 | isShared的值必须为true或者false |
26938005 | No banUrls specified. | 400 | banUrls为空 |
26938005 | The number of banUrls is not allowed to exceed 100. | 400 | banUrls中的url条数不可超过100条 |
26932009 | The following ban-url cannot be associated with any domain, ban-urls:[$url]. | 400 | 屏蔽url未找到关联的域名 |
26938005 | The specified url could not be blank. | 400 | url不可为空 |
26938005 | The specified url is invalid. | 400 | url格式不正确 |
26932005 | The domain is being deleted | 403 | 域名已挂起 |
26936010 | The specified user [$loginName] cannot operate following ban-url, ban-urls:[$url]. | 400 | 该用户无法操作指定的url |
26932007 | The specified ban url are not exist. banUrls: [$url]. | 400 | 指定的屏蔽url不存在。 |
26935006 | Domain([$domainNameList]) has not opened illegal information blocking function, please contact technical support engineer. | 400 | 域名未开通非法信息屏蔽功能 |
26935003 | Can not find effective config form by domain : [$domainName] | 400 | 域名已无生效配置 |
#!/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/config/batchDelIllegalInformation" \ -X "DELETE" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json" \ -H "Content-Type:application/json" \ -d '{ "isShared":true, "banUrls":[ {"url":"http://www.example.com/1.html"} ,{"url":"http://www.example.com/2.html"} ] }'
HTTP/1.1 202 Accepted Date: Sun, 05 May 2019 09:08:53 GMT Content-Type: application/json;charset=utf-8 x-cnc-request-id: 83bbebc7-2c95-47d7 {"code":"0", "message":"success", "data":""}