查询域名配置接口
更新时间:2025-12-11
接口
本接口用于查询加速域名配置。
请求接口
| Method | Path | 说明 |
|---|---|---|
| POST | /v2/geo/domain/config?action=query | 查询加速域名配置 |
请求体
| 参数 | 类型 | 可选 | 说明 |
|---|---|---|---|
| domain | String | 必选 | GEO 站点对应的加速域名。 |
响应码
| HTTP Status Code | 说明 |
|---|---|
| 200 | 查询成功 |
| 400 | 要查询的域名请求参数无效。 |
| 403 | 该域名不属于用户,用户无法操作。 |
响应体
| 参数 | 类型 | 是否一定存在 | 说明 |
|---|---|---|---|
| domain | String | 是 | GEO 站点对应的加速域名。 |
| config | Config | 是 | 加速域名的详细配置项。 |
请求示例
Plain Text
1POST /v2/geo/domain/config?action=query HTTP/1.1
2Host: geo.baidubce.com
3Content-Length: 46
4Authorization: xxx
5Content-Type: application/json;charset=utf-8
6Accept-Encoding: gzip
7
8{
9 "domain":"1.test.com"
10}
响应示例
Plain Text
1HTTP/1.1 200 OK
2Server: nginx/1.16.1
3Content-Type: application/json; charset=utf-8
4Transfer-Encoding: chunked
5Connection: keep-alive
6
7{
8 "domain": "1.test.com",
9 "config": {
10 "domain": "1.test.com",
11 "status": "RUNNING",
12 "httpsEnabled": "OFF"
13 }
14}
评价此篇文章
