查询规则引擎配置
更新时间:2026-06-18
接口
本接口用于查询规则引擎配置。
请求接口
| Method | Path | 说明 |
|---|---|---|
| GET | /v2/geo/site/{site}/config | 查询规则引擎配置接口 |
site:表示要查询的站点。
响应码
| HTTP Status Code | 说明 |
|---|---|
| 200 | 查询规则引擎配置成功 |
响应体
| 参数 | 类型 | 说明 |
|---|---|---|
| pageRules | List<PageRules> | 该接口会返回站点所有的配置,其中 “pageRules” 参数表示该站点的规则引擎配置。 |
请求示例
Plain Text
1GET /v2/geo/site/test.com/config HTTP/1.1
2Host: geo.baidubce.com
响应示例
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 "pageRules": [
9 {
10 "name": "示例",
11 "rules": [
12 [
13 {
14 "matchFrom": "path",
15 "operator": "inValues",
16 "values": [
17 "/test"
18 ],
19 "ignoreCase": true
20 }
21 ]
22 ],
23 "config": {
24 "cacheTtl": [
25 {
26 "value": "/",
27 "weight": 100,
28 "override_origin": true,
29 "ttl": 0,
30 "type": "path"
31 }
32 ]
33 },
34 "status": "ON"
35 }
36 ]
37}
评价此篇文章
