增量修改域名配置 示例: 请求路径: 示例1: 请求参数: plaintext { "domain": "sd55sd12.baidu.ctyun.cn", "productcode": "008", "ipv6enable": 2, "origin": [ { "role": "master", "port": 80, "origin": "1.1.1.1", "weight": 10 }, { "role": "master", "port": 80, "origin": "test.hnoss.xstore.ctyun.cn", "weight": 10 } ], "xosoriginis": 1, "xosorigin": { "origin": "test.hnoss.xstore.ctyun.cn", "ak": "akxxx", "sk": "skxxx" }, "reqhost": "www.test.ctyun.cn", "originhosttype": 1, "originhosthttp": { "1.1.1.1": "aaa.ctyun.cn" }, "blackreferer": { "allowlist": [ "www.test1.ctyun.cn" ], "exceptlist": [ "a.test.ctyun.cn" ], "allowempty": "on", "refereremptyprotocol": "on", "matchallports": "on", "ignorecase": "on" }, "blackreferercondition": { "blackreferer": [ { "mode": 2, "content": "/" } ] }, "useragent": { "type": 0, "ua": [ "linux", "windows" ], "mode": 1, "ignorecase": "on" }, "filetypettl": [ { "ttl": 300, "filetype": "ts,mp4", "cachetype": 2, "mode": 0, "cachewithargs": 0 } ], "ipblacklist": "1.1.1.1,2.2.2.2,3.3.3.3", "respheaders": [ { "value": "reqheadertest", "key": "AccessControlAllowOrigin", "corscheck": "on" } ], "httpsstatus": "off", "certname": "cert009", "httpsbasic": { "httpsforce": "on", "originprotocol": "https" }, "basicconf": { "follow302": 1, "usehttp2": 1, "httporiginport": 80, "httpsoriginport": 8080 }, "limitspeeduri": [ { "id": "116576155090830", "unit": "Kb/s", "args": "good", "weight": 2 } ], "limitspeeduricondition": { "116576155090830": [ { "mode": 1, "content": "/sss" } ] }, "limitspeedconst": [ { "id": "116576155090830", "unit": "Mb/s", "rate": 1, "weight": 2 } ], "limitspeedconstcondition": { "116576155090830": [ { "mode": 1, "content": "/sss" } ] }, "ssl": "TLSv1", "sslstapling": "on", "entrylimits": [ { "id": "123abc", "limitelement": "entrylimits", "frequencythreshold": 0, "frequencytimerange": 3600, "forbiddenduration": 1000, "forbiddendurationunit": "s", "forbiddencode": 0, "whiteipcontrol": [ "1.1.1.11", "58.14.0.0/15", "240e:94a:4001::3007" ], "priority": 100 }, { "id": "456abc", "limitelement": "entrylimits", "frequencythreshold": 1000, "frequencytimerange": 3000, "forbiddenduration": 1000, "forbiddendurationunit": "millis", "forbiddencode": 123, "whiteipcontrol": [ "192.168.1.1", "58.14.0.0/15", "240e:94a:4001::3007" ], "priority": 1 } ], "entrylimitscondition": { "123abc": [ { "mode": 1, "content": "/test1,/test2" } ], "456abc": [ { "mode": 4, "content": "/test3$,/test4" } ] }, "cusgzip": [ { "id": "123abc", "minlength": "1k", "filetype": "tar", "type": 1, "httpversion": "1.1", "vary": "on", "maxlength": "1m" }, { "id": "123abcd", "minlength": "1M", "filetype": "zip", "type": 0, "httpversion": "1.0", "vary": "off", "maxlength": "1000M" } ], "cusgzipcondition": { "123abc": [ { "mode": 1, "content": "/test1,/test2" } ], "123abcd": [ { "mode": 4, "content": "/test3,/test4" } ] }, "cachekeyargs": [ { "id": "cachekeyargs1234561231", "ignore": 0, "iswithargs": 1, "mode": 1, "args": "", "priority": 10, "ignoreargs": "xxx", "subject": "xxx", "pattern": "xxx", "replace": "xxx" }, { "id": "cachekeyargs123456abd@12" } ], "cachekeyargscondition": { "cachekeyargs123456abd@12": [ { "mode": 2, "content": "/" } ] }, "backoriginurirewrite": [ { "id": "backoriginurirewrite1673511594048", "pattern": "pattern", "replace": "replace", "subject": "$uri", "globalreplacemode": "on" } ], "backoriginurirewritecondition": { "backoriginurirewrite1673511594048": [ { "mode": 1, "content": "/flg/1" } ] }, "backoriginargrewrite": [ { "id": "backoriginargrewrite1673511594048", "keepargsorder": "on", "needencodeargs": "on", "mode": "add", "args": { "key1": "value1", "key2": "value2" }, "priority": 10 } ], "backoriginargrewritecondition": { "backoriginargrewrite1673511594048": [ { "mode": 1, "content": "/flg/1" } ] }, "ignorebackoriginargs": 1, "dnsquery": { "switch": 1, "querytype": "ipv4first" }, "errorpage": [ { "code": "404", "url": " "locationcode": "302", "priority": 10 } ], "defineredirect": [ { "id": "defineredirect116576155090830", "pattern": "/pattern", "replacement": "/replacement", "code": "302", "priority": 10 } ], "defineredirectcondition": { "defineredirect116576155090830": [ { "mode": 1, "content": "/split" } ] } } 返回结果: plaintext { "code": 100000, "message": "success" } 错误码请参考:参数code和message含义