帮助与文档

域名删除 下载PDF文档

接口地址

请求URL: domain (DELETE)

接口请求域名: cdn.api.baishan.com
接口版本: v2

接口描述

删除域名

输入参数

以下请求参数列表仅列出了接口请求参数,正式调用时需要加上公共请求参数,见公共请求参数页面。

请求参数(POST)

参数支持 form-data、x-www-form-urlencoded、json 等格式

参数名数据类型是否必须说明
domainsstring域名, 多个域名以逗号(,)分隔, 可传入域名id, 也可传入域名, 例如: a.com,b.com112,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"
        },
        ...
    ]
}

响应(Response Header)

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
CopyRight © 2015-2025 BaishanCloud . All Rights Reserved.