云解析CloudDNS
删除记录
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
recordId | Integer | 是 | 主机记录ID |
language | String | 否 | 为空返回中文结果(默认) en:返回英文提示结果 |
参数名称 | 类型 | 描述 |
---|---|---|
resCode | String | 状态码。resCode的详细说明请参见“调度业务状态码”。 |
msg | String | 状态码的详细说明。 |
#!/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/clouddns/DelRecord" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json" \ -d '{ "recordId":231009 }'
{ "resCode":0, "msg":"操作成功" }