CDN Pro
删除日志配置。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 描述 |
---|---|
*idInteger | 日志配置的id。 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
AccessDenied | You are not allowed to perform this action. | 403 | 无操作权限。 |
InvalidLogConfigId | The specified log config ID does not exist or the caller doesn't have access to this resource. | 404 | 指定的日志配置ID不存在,或者您无访问权限。 |
#!/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/report/logConfigs/{id}" \ -X "DELETE" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json"
{ "code": "AccessDenied", "message": "You are not allowed to perform this action." }