CDN Pro
删除webhook接口。删除后,如果有异步任务引用了该webhook接口,且任务仍在执行中,则任务执行完毕后不会触发webhook接口调用。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 描述 |
---|---|
*idString | webhook接口id。 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
InvalidWebhookId | The specified webhook ID does not exist. | 404 | 指定的webhook 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/webhooks/{id}" \ -X "DELETE" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json" \
{ "code": "InvalidWebhookId", "message": "The specified webhook ID does not exist." }