查询域名是否备案
更新时间:2019-12-04
本接口用于查询指定域名是否备案
Method | Path | 说明 |
---|---|---|
GET | /v2/domain/{domain}/icp | 查询域名是否备案 |
domain:被查询的域名
响应体 (Response Body)
参数 | 可选 | 类型 | 说明 |
---|---|---|---|
IcpStatus | 必选 | string | "true"表示该域名已经备案,"false"表示该域名尚未备案 |
请求示例
GET /v2/domain/www.baidu.com/icp HTTP/1.1
Host: cdn.baidubce.com
响应示例
-
域名能被添加
HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2019 03:30:08 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: PHP/7.1.5 x-bce-request-id: 934b05db-484f-a5ad-7f54-e60c4c707a0 { "IcpStatus":"true" }
-
域名不能被添加
HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2019 03:30:08 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: PHP/7.1.5 x-bce-request-id: 934b05db-484f-a5ad-7f54-e60c4c707a0 { "IcpStatus":"false" }