查询离线模式配置
更新时间:2026-06-04
接口
本接口用于查询站点的离线模式配置。
请求接口
| Method | Path | 说明 |
|---|---|---|
| GET | /v2/geo/site/{site}/config | 查询离线模式配置接口 |
site:表示要查询的站点。
响应码
| HTTP Status Code | 说明 |
|---|---|
| 200 | 查询离线模式配置成功 |
响应体
| 参数 | 类型 | 说明 |
|---|---|---|
| offlineMode | String | 该接口会返回站点所有的配置,其中 “offlineMode” 参数表示该站点的离线模式配置。 |
请求示例
Plain Text
1GET /v2/geo/site/test.com/config HTTP/1.1
2Host: geo.baidubce.com
3Content-Length: 46
4Authorization: xxx
5Content-Type: application/json;charset=utf-8
6Accept-Encoding: gzip
响应示例
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 "offlineMode": "ON"
9}
评价此篇文章
