查看查询字符串配置
更新时间:2026-06-05
接口
本接口用于查看站点的查询字符串配置。
请求接口
| Method | Path | 说明 |
|---|---|---|
| GET | /v2/geo/site/{site}/config | 查看查询字符串配置接口 |
site:表示用户要查询的站点。
响应码
| HTTP Status Code | 说明 |
|---|---|
| 200 | 查看查询字符串配置成功 |
响应体
| 参数 | 类型 | 说明 |
|---|---|---|
| cacheKey | List<CacheKey> | 该接口会返回站点所有的配置,其中 “cacheKey” 参数表示该站点的 cacheKey 配置。 |
请求示例
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
响应示例1:保留指定参数
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 "cacheKey": {
9 "query": false,
10 "include_args": [
11 "test1"
12 ]
13 }
14}
响应示例2:忽略指定参数
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 cacheKey": {
9 "query": false,
10 "exclude_args": [
11 "test1",
12 "test2"
13 ]
14 }
15}
评价此篇文章
