请求URL: domain (DELETE)
接口请求域名:
cdn.api.baishan.com
接口版本:v2
删除域名
以下请求参数列表仅列出了接口请求参数,正式调用时需要加上公共请求参数,见公共请求参数页面。
参数支持 form-data、x-www-form-urlencoded、json 等格式
| 参数名 | 数据类型 | 是否必须 | 说明 |
|---|---|---|---|
| domains | string | 是 | 域名, 多个域名以逗号(,)分隔, 可传入域名id, 也可传入域名, 例如: a.com,b.com和112,332 单次域名不超过10个 |
curl -X DELETE "https://cdn.api.baishan.com/v2/domain?"curl -X DELETE "https://cdn.api.baishan.com/v2/domain?token=xxx&domains=a.com,b.com"json格式
{
"code": 0,//为0表示操作成功
"message":"", //code非0时会返回该描述信息
"data": [
{
"id": "4422945",
"domain": "a.com",
"status": "deleted",
"delete_time": "2018-03-23 17:46:18"
},
...
]
}HTTP/1.0 200 OK
Api-Id: 100757115
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 300
X-Retry-After: 42