CDN Pro
使用该接口删除调度域名。如果您的DNS配置了 CNAME 记录指向该调度域名,那么您必须在删除调度域名之前更改DNS记录。否则,访问相关的加速域名将会报错。
单用户调用频率:300/5min
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 描述 |
---|---|
Check-UsageString | 当您删除调度域名时,后台会校验调度域名是否处于活跃状态。如果调度域名在过去24小时有DNS解析请求,则会拒绝删除调度域名,避免误操作。如果您确定要删除调度域名,可以在调用接口时传入请求头Check-Usage: no来跳过校验。 |
参数名称 | 描述 |
---|---|
*edgeHostnameString | 调度域名。 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
InvalidEdgeHostname | The specified edge hostname does not exist or the caller doesn't have access to this resource. | 404 | 指定的调度域名不存在,或者您无访问权限。 |
#!/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/cdn/edgeHostnames/{edgeHostname}" \ -X "DELETE" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json"
{ "code": "InvalidEdgeHostname", "message": "The specified edge hostname does not exist or the caller doesn't have access to this resource." }