查询回源忽略参数
更新时间:2024-04-16
接口描述
本接口用于查询指定加速域名的回源忽略参数。
请求结构
Plain Text
1GET /v2/domain/{domain}/config?originArg HTTP/1.1
2Host: cdn.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
URL参数
参数名称 | 类型 | 是否必选 | 描述 |
---|---|---|---|
domain | string | 是 | 要查询的加速域名。 |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
originArg | OriginArg | 回源忽略参数配置。 |
OriginArg类型说明:
参数名称 | 类型 | 描述 |
---|---|---|
ignore | bool | true、false分别表示忽略和不忽略URL参数。 |
args | list<string> | URL参数列表。当ignore=true且列表为空时表示全部忽略,当ignore=false且列表为空时表示不忽略。 |
请求示例
JSON
1GET /v2/domain/myself.baidu.com/config?originArg HTTP/1.1
2Host: cdn.baidubce.com
3Authorization: authorization string
响应示例
JSON
1HTTP/1.1 200 OK
2Content-Type: application/json; charset=utf-8
3Date: Tue, 16 Apr 2024 03:55:14 GMT
4x-bce-request-id: 8afd54bc-5136-c8d8-3395-b539e644b434
5Server: nginx/1.16.1
6
7{
8 "originArg": {
9 "ignore": false,
10 "args": [
11 "test"
12 ]
13 }
14}