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