tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tccli might be problematic. Click here for more details.

Files changed (226) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/ai3d/v20250513/api.json +22 -4
  4. tccli/services/aiart/aiart_client.py +173 -67
  5. tccli/services/aiart/v20221229/api.json +193 -0
  6. tccli/services/aiart/v20221229/examples.json +16 -0
  7. tccli/services/apm/apm_client.py +53 -0
  8. tccli/services/apm/v20210622/api.json +354 -0
  9. tccli/services/apm/v20210622/examples.json +8 -0
  10. tccli/services/asr/v20190614/api.json +3 -3
  11. tccli/services/autoscaling/v20180419/api.json +24 -2
  12. tccli/services/batch/v20170312/api.json +1 -1
  13. tccli/services/bda/bda_client.py +15 -704
  14. tccli/services/bda/v20200324/api.json +107 -1819
  15. tccli/services/bda/v20200324/examples.json +0 -176
  16. tccli/services/billing/billing_client.py +326 -8
  17. tccli/services/billing/v20180709/api.json +2200 -255
  18. tccli/services/billing/v20180709/examples.json +48 -0
  19. tccli/services/cam/v20190116/api.json +4 -4
  20. tccli/services/captcha/v20190722/api.json +3 -3
  21. tccli/services/cat/v20180409/api.json +7 -7
  22. tccli/services/ccc/ccc_client.py +235 -76
  23. tccli/services/ccc/v20200210/api.json +502 -18
  24. tccli/services/ccc/v20200210/examples.json +24 -0
  25. tccli/services/cdb/cdb_client.py +106 -0
  26. tccli/services/cdb/v20170320/api.json +257 -44
  27. tccli/services/cdb/v20170320/examples.json +22 -6
  28. tccli/services/cdn/cdn_client.py +4 -163
  29. tccli/services/cdn/v20180606/api.json +61 -310
  30. tccli/services/cdn/v20180606/examples.json +1 -25
  31. tccli/services/cdwdoris/v20211228/api.json +51 -12
  32. tccli/services/cdwpg/v20201230/api.json +11 -1
  33. tccli/services/cdwpg/v20201230/examples.json +1 -1
  34. tccli/services/cfg/v20210820/api.json +11 -1
  35. tccli/services/cfs/cfs_client.py +41 -94
  36. tccli/services/cfs/v20190719/api.json +171 -55
  37. tccli/services/cfs/v20190719/examples.json +1 -9
  38. tccli/services/cfw/v20190904/api.json +122 -10
  39. tccli/services/ckafka/ckafka_client.py +188 -29
  40. tccli/services/ckafka/v20190819/api.json +277 -4
  41. tccli/services/ckafka/v20190819/examples.json +25 -1
  42. tccli/services/clb/clb_client.py +0 -265
  43. tccli/services/clb/v20180317/api.json +130 -296
  44. tccli/services/clb/v20180317/examples.json +12 -40
  45. tccli/services/cloudapp/v20220530/api.json +55 -0
  46. tccli/services/cloudaudit/v20190319/api.json +11 -0
  47. tccli/services/cloudhsm/v20191112/api.json +10 -10
  48. tccli/services/cls/v20201016/api.json +63 -45
  49. tccli/services/cls/v20201016/examples.json +10 -4
  50. tccli/services/csip/v20221121/api.json +53 -3
  51. tccli/services/ctem/v20231128/api.json +320 -0
  52. tccli/services/ctem/v20231128/examples.json +3 -3
  53. tccli/services/cvm/cvm_client.py +0 -212
  54. tccli/services/cvm/v20170312/api.json +91 -843
  55. tccli/services/cvm/v20170312/examples.json +32 -58
  56. tccli/services/cynosdb/cynosdb_client.py +167 -8
  57. tccli/services/cynosdb/v20190107/api.json +1126 -148
  58. tccli/services/cynosdb/v20190107/examples.json +31 -7
  59. tccli/services/dbbrain/dbbrain_client.py +246 -87
  60. tccli/services/dbbrain/v20191016/api.json +74 -62
  61. tccli/services/dbbrain/v20191016/examples.json +1 -1
  62. tccli/services/dbbrain/v20210527/api.json +601 -177
  63. tccli/services/dbbrain/v20210527/examples.json +28 -4
  64. tccli/services/dc/v20180410/api.json +101 -3
  65. tccli/services/dcdb/v20180411/api.json +1 -1
  66. tccli/services/dlc/dlc_client.py +53 -0
  67. tccli/services/dlc/v20210125/api.json +237 -24
  68. tccli/services/dlc/v20210125/examples.json +12 -4
  69. tccli/services/dnspod/dnspod_client.py +106 -0
  70. tccli/services/dnspod/v20210323/api.json +126 -20
  71. tccli/services/dnspod/v20210323/examples.json +17 -7
  72. tccli/services/dsgc/v20190723/api.json +73 -15
  73. tccli/services/dts/v20180330/api.json +4 -4
  74. tccli/services/dts/v20211206/api.json +408 -127
  75. tccli/services/dts/v20211206/examples.json +15 -9
  76. tccli/services/eb/v20210416/api.json +41 -1
  77. tccli/services/eb/v20210416/examples.json +1 -1
  78. tccli/services/emr/v20190103/api.json +56 -9
  79. tccli/services/emr/v20190103/examples.json +5 -5
  80. tccli/services/es/es_client.py +273 -8
  81. tccli/services/es/v20180416/api.json +845 -33
  82. tccli/services/es/v20180416/examples.json +33 -1
  83. tccli/services/es/v20250101/api.json +135 -2
  84. tccli/services/es/v20250101/examples.json +8 -0
  85. tccli/services/ess/ess_client.py +509 -32
  86. tccli/services/ess/v20201111/api.json +1366 -113
  87. tccli/services/ess/v20201111/examples.json +94 -10
  88. tccli/services/essbasic/v20210526/api.json +265 -27
  89. tccli/services/essbasic/v20210526/examples.json +12 -12
  90. tccli/services/facefusion/v20220927/api.json +1 -1
  91. tccli/services/gaap/v20180529/api.json +18 -8
  92. tccli/services/gme/gme_client.py +53 -0
  93. tccli/services/gme/v20180711/api.json +241 -1
  94. tccli/services/gme/v20180711/examples.json +8 -0
  95. tccli/services/gs/gs_client.py +216 -4
  96. tccli/services/gs/v20191118/api.json +202 -1
  97. tccli/services/gs/v20191118/examples.json +32 -0
  98. tccli/services/gwlb/gwlb_client.py +53 -0
  99. tccli/services/gwlb/v20240906/api.json +150 -0
  100. tccli/services/gwlb/v20240906/examples.json +8 -0
  101. tccli/services/hai/v20230812/api.json +5 -5
  102. tccli/services/hunyuan/v20230901/api.json +3 -3
  103. tccli/services/hunyuan/v20230901/examples.json +1 -1
  104. tccli/services/iai/v20180301/api.json +227 -207
  105. tccli/services/iai/v20180301/examples.json +26 -26
  106. tccli/services/iai/v20200303/api.json +4 -4
  107. tccli/services/iai/v20200303/examples.json +1 -1
  108. tccli/services/ioa/ioa_client.py +265 -0
  109. tccli/services/ioa/v20220601/api.json +781 -85
  110. tccli/services/ioa/v20220601/examples.json +46 -0
  111. tccli/services/iotexplorer/iotexplorer_client.py +387 -16
  112. tccli/services/iotexplorer/v20190423/api.json +1183 -63
  113. tccli/services/iotexplorer/v20190423/examples.json +92 -0
  114. tccli/services/keewidb/v20220308/api.json +69 -17
  115. tccli/services/keewidb/v20220308/examples.json +5 -5
  116. tccli/services/lcic/v20220817/api.json +61 -15
  117. tccli/services/lighthouse/v20200324/api.json +193 -24
  118. tccli/services/lighthouse/v20200324/examples.json +9 -3
  119. tccli/services/live/v20180801/api.json +6 -6
  120. tccli/services/live/v20180801/examples.json +7 -1
  121. tccli/services/lke/lke_client.py +40 -93
  122. tccli/services/lke/v20231130/api.json +943 -390
  123. tccli/services/lke/v20231130/examples.json +38 -46
  124. tccli/services/lkeap/v20240522/api.json +39 -12
  125. tccli/services/lkeap/v20240522/examples.json +12 -0
  126. tccli/services/mariadb/v20170312/api.json +1 -1
  127. tccli/services/mna/v20210119/api.json +11 -2
  128. tccli/services/mna/v20210119/examples.json +1 -1
  129. tccli/services/mongodb/mongodb_client.py +334 -16
  130. tccli/services/mongodb/v20190725/api.json +1092 -383
  131. tccli/services/mongodb/v20190725/examples.json +69 -21
  132. tccli/services/monitor/monitor_client.py +106 -0
  133. tccli/services/monitor/v20180724/api.json +383 -12
  134. tccli/services/monitor/v20180724/examples.json +24 -2
  135. tccli/services/mps/mps_client.py +220 -8
  136. tccli/services/mps/v20190612/api.json +1999 -179
  137. tccli/services/mps/v20190612/examples.json +56 -6
  138. tccli/services/mqtt/v20240516/api.json +10 -0
  139. tccli/services/mqtt/v20240516/examples.json +3 -9
  140. tccli/services/nlp/v20190408/api.json +6 -6
  141. tccli/services/oceanus/oceanus_client.py +318 -0
  142. tccli/services/oceanus/v20190422/api.json +461 -26
  143. tccli/services/oceanus/v20190422/examples.json +50 -2
  144. tccli/services/ocr/ocr_client.py +41 -253
  145. tccli/services/ocr/v20181119/api.json +153 -659
  146. tccli/services/ocr/v20181119/examples.json +8 -40
  147. tccli/services/omics/v20221128/api.json +90 -7
  148. tccli/services/organization/v20210331/api.json +46 -7
  149. tccli/services/postgres/v20170312/api.json +333 -77
  150. tccli/services/postgres/v20170312/examples.json +37 -31
  151. tccli/services/privatedns/privatedns_client.py +641 -58
  152. tccli/services/privatedns/v20201028/api.json +930 -19
  153. tccli/services/privatedns/v20201028/examples.json +91 -3
  154. tccli/services/pts/v20210728/api.json +2 -2
  155. tccli/services/redis/v20180412/api.json +303 -109
  156. tccli/services/redis/v20180412/examples.json +12 -12
  157. tccli/services/region/v20220627/api.json +1 -1
  158. tccli/services/rum/v20210622/api.json +22 -4
  159. tccli/services/rum/v20210622/examples.json +2 -2
  160. tccli/services/sms/v20190711/api.json +12 -12
  161. tccli/services/sms/v20190711/examples.json +9 -3
  162. tccli/services/sms/v20210111/api.json +13 -13
  163. tccli/services/sms/v20210111/examples.json +8 -2
  164. tccli/services/sqlserver/v20180328/api.json +46 -7
  165. tccli/services/sqlserver/v20180328/examples.json +2 -2
  166. tccli/services/ssl/v20191205/api.json +28 -0
  167. tccli/services/svp/v20240125/api.json +14 -4
  168. tccli/services/tag/v20180813/api.json +3 -3
  169. tccli/services/tat/v20201028/api.json +22 -3
  170. tccli/services/tcb/v20180608/api.json +1 -1
  171. tccli/services/tcss/tcss_client.py +228 -69
  172. tccli/services/tcss/v20201101/api.json +273 -25
  173. tccli/services/tcss/v20201101/examples.json +26 -2
  174. tccli/services/teo/teo_client.py +317 -52
  175. tccli/services/teo/v20220901/api.json +1824 -242
  176. tccli/services/teo/v20220901/examples.json +109 -21
  177. tccli/services/thpc/thpc_client.py +57 -4
  178. tccli/services/thpc/v20230321/api.json +163 -21
  179. tccli/services/thpc/v20230321/examples.json +13 -5
  180. tccli/services/tione/tione_client.py +163 -4
  181. tccli/services/tione/v20211111/api.json +285 -21
  182. tccli/services/tione/v20211111/examples.json +27 -3
  183. tccli/services/tke/tke_client.py +8 -8
  184. tccli/services/tke/v20180525/api.json +168 -130
  185. tccli/services/tke/v20180525/examples.json +20 -20
  186. tccli/services/tke/v20220501/api.json +215 -3
  187. tccli/services/tke/v20220501/examples.json +8 -0
  188. tccli/services/tms/tms_client.py +106 -0
  189. tccli/services/tms/v20201229/api.json +249 -3
  190. tccli/services/tms/v20201229/examples.json +16 -0
  191. tccli/services/tmt/v20180321/api.json +78 -1
  192. tccli/services/trabbit/v20230418/api.json +271 -4
  193. tccli/services/trabbit/v20230418/examples.json +9 -3
  194. tccli/services/trocket/v20230308/api.json +4 -4
  195. tccli/services/trro/trro_client.py +106 -0
  196. tccli/services/trro/v20220325/api.json +456 -0
  197. tccli/services/trro/v20220325/examples.json +16 -0
  198. tccli/services/trtc/v20190722/api.json +197 -49
  199. tccli/services/trtc/v20190722/examples.json +4 -4
  200. tccli/services/tse/v20201207/api.json +69 -2
  201. tccli/services/tse/v20201207/examples.json +3 -3
  202. tccli/services/tsf/v20180326/api.json +70 -7
  203. tccli/services/tsf/v20180326/examples.json +2 -2
  204. tccli/services/vclm/v20240523/api.json +145 -0
  205. tccli/services/vclm/v20240523/examples.json +16 -0
  206. tccli/services/vclm/vclm_client.py +106 -0
  207. tccli/services/vcube/v20220410/api.json +1 -1
  208. tccli/services/vod/v20180717/api.json +7 -7
  209. tccli/services/vpc/v20170312/api.json +1216 -70
  210. tccli/services/vpc/v20170312/examples.json +139 -3
  211. tccli/services/vpc/vpc_client.py +1023 -122
  212. tccli/services/vrs/v20200824/api.json +11 -11
  213. tccli/services/vrs/v20200824/examples.json +1 -1
  214. tccli/services/vtc/v20240223/api.json +14 -14
  215. tccli/services/waf/v20180125/api.json +812 -143
  216. tccli/services/waf/v20180125/examples.json +2 -2
  217. tccli/services/wedata/v20210820/api.json +1281 -601
  218. tccli/services/wedata/v20210820/examples.json +127 -157
  219. tccli/services/wedata/v20250806/api.json +19335 -0
  220. tccli/services/wedata/v20250806/examples.json +999 -0
  221. tccli/services/wedata/wedata_client.py +7072 -1131
  222. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
  223. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
  224. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
  225. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
  226. {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "actions": {
3
+ "ApplyFreeCertificate": [
4
+ {
5
+ "document": "站点(ZoneId 为 zone-2fgd17m17xw)下的域名(abc.test.com)使用 HTTP 访问文件验证方式申请免费证书。",
6
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyFreeCertificate\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2fgd17m17xw\",\n \"Domain\": \"abc.test.com\",\n \"VerificationMethod\": \"http_challenge\"\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"064a8c04-2d3e-4c9d-9473-39a8f76276ea\",\n \"FileVerification\": {\n \"Content\": \"9i8vhsvt9y8y3sx1s2d\",\n \"Path\": \"/.well-known/teo-verification/yvnu7sesms\"\n }\n }\n}",
8
+ "title": "使用 HTTP 访问文件验证方式申请免费证书"
9
+ },
10
+ {
11
+ "document": "站点(ZoneId 为 zone-2fgd17m17xw)下的域名(qwe.test.com) 使用 DNS 委派验证方式申请免费证书。",
12
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyFreeCertificate\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2fgd17m17xw\",\n \"Domain\": \"qwe.test.com\",\n \"VerificationMethod\": \"dns_challenge\"\n}",
13
+ "output": "{\n \"Response\": {\n \"RequestId\": \"064a8c04-2d3e-4c9d-9473-39a8f76276ea\",\n \"DnsVerification\": {\n \"RecordType\": \"CNAME\",\n \"RecordValue\": \"_acme-challenge\",\n \"Subdomain\": \"www.example.com.edgeone.com\"\n }\n }\n}",
14
+ "title": "使用 DNS 委派验证方式申请免费证书"
15
+ }
16
+ ],
3
17
  "BindSecurityTemplateToEntity": [
4
18
  {
5
19
  "document": "此方法会把已经绑定策略模板的指定域名从策略模板解绑。目前仅支持同时解绑一个域名。解绑时,支持下列选项:\n1. 在规则配额允许情况下,保留当前策略。解绑时,将会为域名生成一条独立安全策略,该策略使用与当前策略模板相同的配置,其中的规则将额外占用规则配额。\n2. 使用空白安全策略。使用默认空白策略,预设规则将使用默认配置,自定义规则内容将不再生效。\n\n例如:将 a.test.com 从已有策略模板(策略模板 ID 为 temp-cuwg1hki,所属站点 ID 为 zone-2aq0e8rhu6jx )解绑,可以参考以下示例进行解绑操作。\n\n注意:如您选择保留当前策略配置,请确保当前站点有足够安全规则配额。剩余配额不足以支持保留当前策略时,解绑失败,域名将仍然绑定于当前策略模板上。",
@@ -44,6 +58,28 @@
44
58
  "title": "查询域名 CNAME 状态"
45
59
  }
46
60
  ],
61
+ "CheckFreeCertificateVerification": [
62
+ {
63
+ "document": "针对站点(ZoneId 为 zone-28v607hq8d3m)下的域名(cc.xzone.cloud)在触发申请免费证书后,检查免费证书是否申请成功。",
64
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckFreeCertificateVerification\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-28v607hq8d3m\",\n \"Domain\": \"cc.xzone.cloud\"\n}",
65
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"ResourceUnavailable.RecordUnExpected\",\n \"Message\": \"无法正确检测到验证值,请检查当前域名是否配置了分区域解析或者安全策略拦截。\"\n },\n \"RequestId\": \"ed93f3cb-f35e-473f-b9f3-0d451b8b79c6\"\n }\n}",
66
+ "title": "检查免费证书申请结果,免费证书申请失败"
67
+ },
68
+ {
69
+ "document": "针对站点(ZoneId 为 zone-28v607hq8d3m)下的域名(aa.xzone.cloud)在触发申请免费证书后,检查免费证书是否申请成功。",
70
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckFreeCertificateVerification\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-28v607hq8d3m\",\n \"Domain\": \"aa.xzone.cloud\"\n}",
71
+ "output": "{\n \"Response\": {\n \"RequestId\": \"dc1ba58b-4e4e-4a71-bed6-2b777c48d17e\",\n \"CommonName\": \"aa.xzone.cloud\",\n \"SignatureAlgorithm\": \"RSA 2048\",\n \"ExpireTime\": \"2025-07-31T07:06:57Z\"\n }\n}",
72
+ "title": "检查免费证书申请结果,免费证书申请成功"
73
+ }
74
+ ],
75
+ "ConfirmMultiPathGatewayOriginACL": [
76
+ {
77
+ "document": "确认 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'mpgw-lbxuhk1oh' 的实例已将最新的回源 IP 网段更新至源站防火墙。",
78
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConfirmOriginACLUpdate\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bal192\",\n \"GatewayId\": \"mpgw-lbxuhk1oh\",\n \"OriginACLVersion\": 1\n}",
79
+ "output": "{\n \"Response\": {\n \"RequestId\": \"af0a2b4f-df6d-4d2a-ac39-1706cbf8a868\"\n }\n}",
80
+ "title": "确认已更新至最新的回源 IP 网段"
81
+ }
82
+ ],
47
83
  "ConfirmOriginACLUpdate": [
48
84
  {
49
85
  "document": "ZoneId 为 'zone-276zs184g93m' 的站点确认已将最新的回源 IP 网段更新至源站防火墙。",
@@ -152,10 +188,22 @@
152
188
  ],
153
189
  "CreateFunctionRule": [
154
190
  {
155
- "document": "",
156
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"/123\"\n ],\n \"Target\": \"url\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"my function rule\"\n}",
191
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。",
192
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
193
+ "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
194
+ "title": "创建边缘函数规则命中规则后执行指定函数"
195
+ },
196
+ {
197
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
198
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
199
+ "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
200
+ "title": "创建边缘函数规则命中规则后根据客户请求地区执行不同的函数"
201
+ },
202
+ {
203
+ "document": "为站点 zone-293e7s5jne1i 创建一个边缘函数规则,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
204
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
157
205
  "output": "{\n \"Response\": {\n \"RuleId\": \"rule-vnqup0uc\",\n \"RequestId\": \"aab9a28a-4cce-434d-852f-5442275817aa\"\n }\n}",
158
- "title": "创建边缘函数规则"
206
+ "title": "创建边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
159
207
  }
160
208
  ],
161
209
  "CreateJustInTimeTranscodeTemplate": [
@@ -191,7 +239,7 @@
191
239
  "CreateL7AccRules": [
192
240
  {
193
241
  "document": "创建一条七层加速规则。",
194
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL7AccRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali12\",\n \"Rules\": [\n {\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\"\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}",
242
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateL7AccRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali12\",\n \"Rules\": [\n {\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\",\n \"OriginPullProtocolParameters\": {\n \"Protocol\": \"follow\"\n }\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}",
195
243
  "output": "{\n \"Response\": {\n \"RuleIds\": [\n \"rule-sjuq23\"\n ],\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
196
244
  "title": "创建七层加速规则"
197
245
  }
@@ -355,15 +403,27 @@
355
403
  "CreateRealtimeLogDeliveryTask": [
356
404
  {
357
405
  "document": "创建目的地为腾讯云 CLS 的日志投递任务,投递数据范围为 domain.example.com 在中国大陆境内产生的站点加速日志,包含字段有 RequestID、ClientIP、RequestTime 以及从 Accept-Language 请求头中提取的字段值,配置采样比例为 60.5%。",
358
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxx\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"cls\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"CustomFields\": [\n {\n \"Name\": \"ReqHeader\",\n \"Value\": \"Accept-Language\",\n \"Enabled\": true\n }\n ],\n \"Sample\": 605,\n \"CLS\": {\n \"LogSetId\": \"1a6efff1-0e40-4d37-a4ed-02c92513406b\",\n \"TopicId\": \"0b3a07c0-5cf6-4017-8a75-cd4459aea588\",\n \"LogSetRegion\": \"ap-guangzhou\"\n }\n}",
406
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2z55fgysdtmc\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"cls\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"CustomFields\": [\n {\n \"Name\": \"ReqHeader\",\n \"Value\": \"Accept-Language\",\n \"Enabled\": true\n }\n ],\n \"Sample\": 605,\n \"CLS\": {\n \"LogSetId\": \"1a6efff1-0e40-4d37-a4ed-02c92513406b\",\n \"TopicId\": \"0b3a07c0-5cf6-4017-8a75-cd4459aea588\",\n \"LogSetRegion\": \"ap-guangzhou\"\n }\n}",
359
407
  "output": "{\n \"Response\": {\n \"TaskId\": \"26580056-1187-43ed-b2c7-ecdb5bae0b46\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a703\"\n }\n}",
360
408
  "title": "创建目的地为腾讯云 CLS 的日志投递任务"
361
409
  },
362
410
  {
363
411
  "document": "创建目的地为自定义 HTTP 服务的日志投递任务,投递数据范围为 domain.example.com 在中国大陆境内产生的、请求最终安全处置方式为拦截或挑战的站点加速日志,包含字段有 RequestID、ClientIP、RequestTime,不开启日志采样,开启日志投递压缩,并且在投递日志时携带自定义请求头 Vendor,值固定为 EdgeOne。",
364
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-xxxxx\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"custom_endpoint\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"Sample\": 1000,\n \"DeliveryConditions\": [\n {\n \"Conditions\": [\n {\n \"Key\": \"SecurityAction\",\n \"Operator\": \"equal\",\n \"Value\": [\n \"Deny\",\n \"JSChallenge\",\n \"ManagedChallenge\"\n ]\n }\n ]\n }\n ],\n \"CustomEndpoint\": {\n \"Url\": \"http://custom_endpoint/access_log/post\",\n \"CompressType\": \"gzip\",\n \"Headers\": [\n {\n \"Name\": \"Vendor\",\n \"Value\": \"EdgeOne\"\n }\n ]\n }\n}",
412
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2z55fgysdtmc\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"custom_endpoint\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"Sample\": 1000,\n \"DeliveryConditions\": [\n {\n \"Conditions\": [\n {\n \"Key\": \"SecurityAction\",\n \"Operator\": \"equal\",\n \"Value\": [\n \"Deny\",\n \"JSChallenge\",\n \"ManagedChallenge\"\n ]\n }\n ]\n }\n ],\n \"CustomEndpoint\": {\n \"Url\": \"http://custom_endpoint/access_log/post\",\n \"CompressType\": \"gzip\",\n \"Headers\": [\n {\n \"Name\": \"Vendor\",\n \"Value\": \"EdgeOne\"\n }\n ]\n }\n}",
365
413
  "output": "{\n \"Response\": {\n \"TaskId\": \"26580056-1187-43ed-b2c7-ecdb5bae0b46\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a703\"\n }\n}",
366
414
  "title": "创建目的地为自定义 HTTP 服务的日志投递任务"
415
+ },
416
+ {
417
+ "document": "创建目的地为AWS S3 兼容存储桶的日志投递任务,投递数据范围为 domain.example.com 在中国大陆境内产生的、请求最终安全处置方式为拦截或挑战的站点加速日志,包含字段有 RequestID、ClientIP、RequestTime,不开启日志采样,开启日志投递压缩,并且在投递日志时携带自定义请求头 Vendor,值固定为 EdgeOne,存储桶选择的是 腾讯云的 COS。",
418
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2z55fgysdtmc\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"s3\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"CustomFields\": [\n {\n \"Name\": \"ReqHeader\",\n \"Value\": \"Accept-Language\",\n \"Enabled\": true\n }\n ],\n \"Sample\": 605,\n \"S3\": {\n \"Endpoint\": \"https://example.cos.ap-guangzhou.myqcloud.com\",\n \"Region\": \"ap-guangzhou\",\n \"Bucket\": \"example-bucket-4-1310765013/example-4-1310765013/logs/EdgeOne/test\",\n \"CompressType\": \"\",\n \"AccessId\": \"你的存储桶访问密钥 ID\",\n \"AccessKey\": \"你的存储桶访问密钥 KEY\"\n }\n}",
419
+ "output": "{\n \"Response\": {\n \"TaskId\": \"26580056-1187-43ed-b2c7-ecdb5bae0b46\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a703\"\n }\n}",
420
+ "title": "创建目的地为AWS S3 兼容存储桶的日志投递任务,投递数据范围为 domain.example.com 在中国大陆境内产生的站点加速日志,包含字段有 RequestID、ClientIP、RequestTime 以及从 Accept-Language 请"
421
+ },
422
+ {
423
+ "document": "创建目的地为 EdgeOne 日志分析 的日志投递任务,投递数据范围为 domain.example.com 在中国大陆境内产生的站点加速日志,包含字段有 RequestID、ClientIP、RequestTime 以及从 Accept-Language 请求头中提取的字段值,配置采样比例为 60.5%。",
424
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRealtimeLogDeliveryTask\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2z55fgysdtmc\",\n \"TaskName\": \"test_log_task\",\n \"TaskType\": \"log_analysis\",\n \"EntityList\": [\n \"domain.example.com\"\n ],\n \"LogType\": \"domain\",\n \"Area\": \"mainland\",\n \"Fields\": [\n \"RequestID\",\n \"ClientIP\",\n \"RequestTime\"\n ],\n \"CustomFields\": [\n {\n \"Name\": \"ReqHeader\",\n \"Value\": \"Accept-Language\",\n \"Enabled\": true\n }\n ],\n \"Sample\": 605\n}",
425
+ "output": "{\n \"Response\": {\n \"TaskId\": \"26580056-1187-43ed-b2c7-ecdb5bae0b46\",\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a703\"\n }\n}",
426
+ "title": "创建推送目的地为 EdgeOne 日志分析的日志投递任务"
367
427
  }
368
428
  ],
369
429
  "CreateRule": [
@@ -812,7 +872,7 @@
812
872
  {
813
873
  "document": "",
814
874
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDDoSAttackData\n<公共请求参数>\n\n{\n \"MetricNames\": [\n \"ddos_attackMaxBandwidth\"\n ],\n \"Interval\": \"min\",\n \"PolicyIds\": [\n 1706\n ],\n \"ZoneIds\": [\n \"zone-21xfqlh4qjee\"\n ],\n \"StartTime\": \"2022-08-22T00:00:00+00:00\",\n \"EndTime\": \"2022-08-23T00:00:00+00:00\",\n \"Area\": \"overseas\"\n}",
815
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Data\": [\n {\n \"Value\": [\n {\n \"Max\": 100,\n \"Metric\": \"ddos_attackMaxBandwidth\",\n \"Avg\": 100.0,\n \"Detail\": [\n {\n \"Timestamp\": 1660010100,\n \"Value\": 100\n }\n ],\n \"Sum\": 100.0\n }\n ],\n \"Key\": \"ddos_attackMaxBandwidth\"\n }\n ],\n \"RequestId\": \"a79e60f8-34cc-4ee5-a7f9-a24adb572c68\"\n }\n}",
875
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Data\": [\n {\n \"Value\": [\n {\n \"Max\": 100,\n \"Metric\": \"ddos_attackMaxBandwidth\",\n \"Avg\": 100,\n \"Detail\": [\n {\n \"Timestamp\": 1660010100,\n \"Value\": 100\n }\n ],\n \"Sum\": 100\n }\n ],\n \"Key\": \"ddos_attackMaxBandwidth\"\n }\n ],\n \"RequestId\": \"a79e60f8-34cc-4ee5-a7f9-a24adb572c68\"\n }\n}",
816
876
  "title": "查询DDoS攻击时序数据"
817
877
  }
818
878
  ],
@@ -886,9 +946,9 @@
886
946
  ],
887
947
  "DescribeFunctionRules": [
888
948
  {
889
- "document": "",
949
+ "document": "查询站点 zone-293e7s5jne1i 下的函数规则。",
890
950
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFunctionRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\"\n}",
891
- "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-n1j14wfm\",\n \"FunctionName\": \"testfunction\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
951
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d7213f7f-a67b-4602-b630-ed6740e1a124\",\n \"FunctionRules\": [\n {\n \"RuleId\": \"rule-53qpdadi\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Target\": \"url\",\n \"Values\": [\n \"/test3\"\n ],\n \"IgnoreCase\": false,\n \"Name\": \"\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"FunctionId\": \"\",\n \"FunctionName\": \"\",\n \"Priority\": 2,\n \"Remark\": \"my function rule\",\n \"CreateTime\": \"2023-04-19T07:32:09Z\",\n \"UpdateTime\": \"2023-04-19T07:36:43Z\"\n }\n ]\n }\n}",
892
952
  "title": "查询边缘函数触发规则列表"
893
953
  }
894
954
  ],
@@ -972,7 +1032,7 @@
972
1032
  {
973
1033
  "document": "查询规则引擎规则列表。",
974
1034
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeL7AccRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0lali12\"\n}",
975
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Rules\": [\n {\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"RuleId\": \"rule-djuq23\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\"\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n}",
1035
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Rules\": [\n {\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"RuleId\": \"rule-djuq23\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\",\n \"OriginPullProtocolParameters\": {\n \"Protocol\": \"follow\"\n }\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n}",
976
1036
  "title": "查询规则引擎规则列表"
977
1037
  }
978
1038
  ],
@@ -1026,6 +1086,14 @@
1026
1086
  "title": "查询多通道安全加速网关的自定义接入线路"
1027
1087
  }
1028
1088
  ],
1089
+ "DescribeMultiPathGatewayOriginACL": [
1090
+ {
1091
+ "document": "查询 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'mpgw-lbxuhk1oh' 的实例与回源 IP 网段的绑定关系,以及回源 IP 网段详情。",
1092
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOriginACL\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bal192\",\n \"GatewayId\": \"mpgw-lbxuhk1oh\"\n}",
1093
+ "output": "{\n \"Response\": {\n \"RequestId\": \"de0a2b4f-df6d-4d2a-ac39-1706cbf8a797\",\n \"MultiPathGatewayOriginACLInfo\": {\n \"MultiPathGatewayCurrentOriginACL\": {\n \"EntireAddresses\": {\n \"IPv4\": [\n \"11.11.11.11/24\"\n ],\n \"IPv6\": [\n \"2001:980:7002:6::/64\"\n ]\n },\n \"Version\": 3,\n \"IsPlaned\": \"false\"\n },\n \"MultiPathGatewayNextOriginACL\": {\n \"Version\": 4,\n \"EntireAddresses\": {\n \"IPv4\": [\n \"11.11.11.11/24\",\n \"22.22.22.22/24\"\n ],\n \"IPv6\": [\n \"2001:980:7002:6::/64\"\n ]\n },\n \"AddedAddresses\": {\n \"IPv4\": [\n \"22.22.22.22/24\"\n ],\n \"IPv6\": []\n },\n \"RemovedAddresses\": {\n \"IPv4\": [],\n \"IPv6\": []\n },\n \"NoChangeAddresses\": {\n \"IPv4\": [\n \"11.11.11.11/24\"\n ],\n \"IPv6\": [\n \"2001:980:7002:6::/64\"\n ]\n }\n }\n }\n }\n}",
1094
+ "title": "查询多通道安全加速网关源站防护详情"
1095
+ }
1096
+ ],
1029
1097
  "DescribeMultiPathGatewayRegions": [
1030
1098
  {
1031
1099
  "document": "获取站点( ZoneId 为 zone-27q0p0bal192 )下,云上网关的可用地域列表。",
@@ -1106,16 +1174,16 @@
1106
1174
  ],
1107
1175
  "DescribePrefetchTasks": [
1108
1176
  {
1109
- "document": "通过 CreatePrefetchTasks 提交预热任务后,通过该查询接口查询预热任务记录及执行进度。",
1110
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrefetchTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-z8m9mgx\",\n \"StartTime\": \"2022-02-09T00:00:00+08:00\",\n \"EndTime\": \"2022-02-09T23:59:00+08:00\",\n \"Limit\": 1,\n \"Offset\": 7\n}",
1111
- "output": "{\n \"Response\": {\n \"RequestId\": \"abc-afhhakf-24hkahf-2424\",\n \"Tasks\": [\n {\n \"JobId\": \"20g9wz8m9mgx\",\n \"Status\": \"success\",\n \"Target\": \"http://www.qq.com/a.txt\",\n \"Type\": \"prefetch_url\",\n \"CreateTime\": \"2022-02-09T02:28:43Z\",\n \"UpdateTime\": \"2022-02-09T02:28:52Z\"\n }\n ],\n \"TotalCount\": 8\n }\n}",
1177
+ "document": "通过 CreatePrefetchTasks 提交预热任务后,用该查询接口查询预热任务记录及执行进度。",
1178
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrefetchTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-z8m9mgx\",\n \"StartTime\": \"2022-02-09T00:00:00+08:00\",\n \"EndTime\": \"2022-02-09T23:59:00+08:00\",\n \"Limit\": 2,\n \"Offset\": 0\n}",
1179
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc-afhhakf-24hkahf-2424\",\n \"Tasks\": [\n {\n \"JobId\": \"20g9wz8m9mgx\",\n \"Status\": \"success\",\n \"Target\": \"http://www.qq.com/a.txt\",\n \"Type\": \"prefetch_url\",\n \"CreateTime\": \"2022-02-09T02:28:43Z\",\n \"UpdateTime\": \"2022-02-09T02:28:52Z\"\n },\n {\n \"JobId\": \"3duxkechrr0c\",\n \"Status\": \"failed\",\n \"Target\": \"http://www.qq.com/b.txt\",\n \"Type\": \"prefetch_url\",\n \"FailType\": \"originPullFailed\",\n \"FailMessage\": \"回源失败,请重试或检查源站是否存在,服务不可用或响应超时、触发限速策略、安全策略限制、网络故障、带宽/连接数上限。\",\n \"CreateTime\": \"2022-02-09T02:28:43Z\",\n \"UpdateTime\": \"2022-02-09T02:28:52Z\"\n }\n ],\n \"TotalCount\": 2\n }\n}",
1112
1180
  "title": "查询预热任务"
1113
1181
  }
1114
1182
  ],
1115
1183
  "DescribePurgeTasks": [
1116
1184
  {
1117
- "document": "通过 CreatePurgeTasks 提交刷新任务后,通过该查询接口 查询刷新任务记录及处理进度。",
1118
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePurgeTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-wz8m9mgx\",\n \"StartTime\": \"2022-02-09T00:00:00+08:00\",\n \"EndTime\": \"2022-02-09T23:59:00+08:00\",\n \"Limit\": 1,\n \"Offset\": 7\n}",
1185
+ "document": "通过 CreatePurgeTasks 提交刷新任务后,用该查询接口查询刷新任务记录及处理进度。",
1186
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePurgeTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-wz8m9mgx\",\n \"StartTime\": \"2022-02-09T00:00:00+08:00\",\n \"EndTime\": \"2022-02-09T23:59:00+08:00\",\n \"Limit\": 1,\n \"Offset\": 0\n}",
1119
1187
  "output": "{\n \"Response\": {\n \"RequestId\": \"abc-afhhakf-24hkahf-2424\",\n \"Tasks\": [\n {\n \"JobId\": \"20g9wz8m9mgx\",\n \"Status\": \"success\",\n \"Target\": \"http://www.qq.com/a.txt\",\n \"Type\": \"purge_url\",\n \"CreateTime\": \"2022-02-09T02:28:43Z\",\n \"UpdateTime\": \"2022-02-09T02:28:52Z\"\n }\n ],\n \"TotalCount\": 8\n }\n}",
1120
1188
  "title": "查询清除缓存历史记录"
1121
1189
  }
@@ -1216,7 +1284,7 @@
1216
1284
  {
1217
1285
  "document": "查询安全防护配置",
1218
1286
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecurityPolicy\n<公共请求参数>\n\n{\n \"Entity\": \"Host\",\n \"Host\": \"www.example.com\",\n \"ZoneId\": \"zone-xxqr76cy\"\n}",
1219
- "output": "{\n \"Response\": {\n \"RequestId\": \"cb5d2c0e-295e-412a-891a-9f8ab6057b4a\",\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ASimpleIPRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24'] or ${http.request.ip.asn} in ['132203']\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Enabled\": \"on\",\n \"RuleType\": \"PreciseMatchRule\",\n \"Priority\": 50\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MetaData\": {\n \"GroupDetail\": \"扫描器攻击漏洞防护\",\n \"GroupName\": \"扫描器攻击漏洞防护\",\n \"RuleDetails\": [\n {\n \"RuleId\": \"4401215444\",\n \"RiskLevel\": \"extreme\",\n \"Description\": \"针对dedecms历史sql注入漏洞的防护规则\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n },\n {\n \"RuleId\": \"4401214877\",\n \"RiskLevel\": \"medium\",\n \"Description\": \"拦截常见扫描器的xss验证payload\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n }\n ]\n }\n }\n ]\n }\n }\n }\n}",
1287
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cb5d2c0e-295e-412a-891a-9f8ab6057b4a\",\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ASimpleIPRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24'] or ${http.request.ip.asn} in ['132203']\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Enabled\": \"on\",\n \"RuleType\": \"PreciseMatchRule\",\n \"Priority\": 50\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MetaData\": {\n \"GroupDetail\": \"扫描器攻击漏洞防护\",\n \"GroupName\": \"扫描器攻击漏洞防护\",\n \"RuleDetails\": [\n {\n \"RuleId\": \"4401215444\",\n \"RiskLevel\": \"extreme\",\n \"Description\": \"针对dedecms历史sql注入漏洞的防护规则\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n },\n {\n \"RuleId\": \"4401214877\",\n \"RiskLevel\": \"medium\",\n \"Description\": \"拦截常见扫描器的xss验证payload\",\n \"Tags\": [],\n \"RuleVersion\": \"2023-12-21T12:00:32Z\"\n }\n ]\n }\n }\n ],\n \"FrequentScanningProtection\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"CountBy\": \"http.request.ip\",\n \"BlockThreshold\": 100,\n \"CountingPeriod\": \"10s\",\n \"ActionDuration\": \"60s\"\n }\n },\n \"BotManagement\": {\n \"Enabled\": \"on\",\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"2181407895\",\n \"Name\": \"Bot自定义规则##1\",\n \"Condition\": \"${http.request.bot.search_engine_bot_id} in ['1843332521']\",\n \"Enabled\": \"on\",\n \"Action\": [\n {\n \"SecurityAction\": {\n \"Name\": \"Deny\"\n },\n \"Weight\": 20\n },\n {\n \"SecurityAction\": {\n \"Name\": \"Monitor\"\n },\n \"Weight\": 80\n }\n ],\n \"Priority\": 30\n },\n {\n \"Id\": \"2181407896\",\n \"Name\": \"Bot自定义规则##2\",\n \"Condition\": \"${http.request.bot.user_agent_feature_id} in ['1843332521'] and ${http.request.bot.client_reputation_name} in ['cyber-attack@low']\",\n \"Enabled\": \"on\",\n \"Action\": [\n {\n \"SecurityAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n },\n \"Weight\": 70\n },\n {\n \"SecurityAction\": {\n \"Name\": \"Monitor\"\n },\n \"Weight\": 30\n }\n ],\n \"Priority\": 40\n }\n ]\n },\n \"BasicBotSettings\": {\n \"SourceIDC\": {\n \"BaseAction\": {\n \"Name\": \"Deny\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"8868370050\",\n \"8868370049\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Disabled\"\n },\n \"Ids\": [\n \"8868370054\",\n \"8868370055\"\n ]\n }\n ]\n },\n \"SearchEngineBots\": {\n \"BaseAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"9126905505\",\n \"9126905506\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Disabled\"\n },\n \"Ids\": [\n \"9126905514\",\n \"9126905515\"\n ]\n }\n ]\n },\n \"KnownBotCategories\": {\n \"BaseAction\": {\n \"Name\": \"Disabled\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"9395241960\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"Ids\": [\n \"9395241965\",\n \"9395241966\"\n ]\n }\n ]\n },\n \"IPReputation\": {\n \"Enabled\": \"on\",\n \"IPReputationGroup\": {\n \"BaseAction\": {\n \"Name\": \"Deny\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Ids\": [\n \"IPREP_WEB_AND_DDOS_ATTACKERS_LOW\",\n \"IPREP_PROXIES_AND_ANONYMIZERS_HIGH\",\n \"IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_MID\"\n ],\n \"Action\": {\n \"Name\": \"Disabled\"\n }\n },\n {\n \"Ids\": [\n \"IPREP_WEB_AND_DDOS_ATTACKERS_HIGH\",\n \"IPREP_ATO_ATTACKERS_MID\",\n \"IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_LOW\"\n ],\n \"Action\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"ManagedChallenge\"\n },\n \"Name\": \"Challenge\"\n }\n }\n ]\n }\n },\n \"BotIntelligence\": {\n \"BotRatings\": {\n \"HighRiskBotRequestsAction\": {\n \"Name\": \"Deny\"\n },\n \"LikelyBotRequestsAction\": {\n \"Name\": \"Monitor\"\n },\n \"HumanRequestsAction\": {\n \"Name\": \"Allow\"\n },\n \"VerifiedBotRequestsAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n }\n }\n }\n },\n \"BrowserImpersonationDetection\": {\n \"Rules\": [\n {\n \"Id\": \"2181409112\",\n \"Name\": \"Bot主动特征识别##1\",\n \"Condition\": \"${http.request.method} in ['POST']\",\n \"Enabled\": \"on\",\n \"Action\": {\n \"BotSessionValidation\": {\n \"MaxNewSessionTriggerConfig\": {\n \"MaxNewSessionCountInterval\": \"10s\",\n \"MaxNewSessionCountThreshold\": 300\n },\n \"IssueNewBotSessionCookie\": \"on\",\n \"SessionExpiredAction\": {\n \"DenyActionParameters\": {\n \"Stall\": \"on\"\n },\n \"Name\": \"Deny\"\n },\n \"SessionInvalidAction\": {\n \"AllowActionParameters\": {\n \"MinDelayTime\": \"5s\"\n },\n \"Name\": \"Allow\"\n },\n \"SessionRateControl\": {\n \"Enabled\": \"on\",\n \"HighRateSessionAction\": {\n \"Name\": \"Deny\"\n },\n \"LowRateSessionAction\": {\n \"Name\": \"Allow\",\n \"AllowActionParameters\": {\n \"MaxDelayTime\": \"5s\"\n }\n },\n \"MidRateSessionAction\": {\n \"Name\": \"Monitor\"\n }\n }\n },\n \"ClientBehaviorDetection\": {\n \"BotClientAction\": {\n \"Name\": \"Allow\",\n \"AllowActionParameters\": {\n \"MinDelayTime\": \"5s\"\n }\n },\n \"ChallengeNotFinishedAction\": {\n \"Name\": \"Deny\"\n },\n \"ChallengeTimeoutAction\": {\n \"Name\": \"Monitor\"\n },\n \"CryptoChallengeDelayBefore\": \"500ms\",\n \"CryptoChallengeIntensity\": \"medium\",\n \"MaxChallengeCountInterval\": \"10s\",\n \"MaxChallengeCountThreshold\": 1000\n }\n }\n },\n {\n \"Id\": \"2181409113\",\n \"Name\": \"Bot主动特征识别##2\",\n \"Condition\": \"${http.request.uri.path} match ['zzz']\",\n \"Enabled\": \"on\",\n \"Action\": {\n \"BotSessionValidation\": {\n \"IssueNewBotSessionCookie\": \"off\",\n \"SessionExpiredAction\": {\n \"DenyActionParameters\": {\n \"Stall\": \"on\"\n },\n \"Name\": \"Deny\"\n },\n \"SessionInvalidAction\": {\n \"AllowActionParameters\": {\n \"MaxDelayTime\": \"5s\"\n },\n \"Name\": \"Allow\"\n },\n \"SessionRateControl\": {\n \"Enabled\": \"off\"\n }\n }\n }\n }\n ]\n },\n \"ClientAttestationRules\": {\n \"Rules\": [\n {\n \"AttesterId\": \"attest-0000326616\",\n \"Condition\": \"${http.request.api_resource} in [${api_resource['apires-0000323976'@'zone-364last8ueun']}]\",\n \"DeviceProfiles\": [\n {\n \"ClientType\": \"Android\",\n \"HighRiskMinScore\": 50,\n \"HighRiskRequestAction\": {\n \"Name\": \"Monitor\"\n },\n \"MediumRiskMinScore\": 15,\n \"MediumRiskRequestAction\": {\n \"AllowActionParameters\": {\n \"MaxDelayTime\": \"10s\",\n \"MinDelayTime\": \"5s\"\n },\n \"Name\": \"Allow\"\n }\n }\n ],\n \"Enabled\": \"on\",\n \"Id\": \"2181412270\",\n \"InvalidAttestationAction\": {\n \"Name\": \"Monitor\"\n },\n \"Name\": \"qwe\",\n \"Priority\": 50\n }\n ]\n }\n }\n }\n }\n}",
1220
1288
  "title": "查询安全防护配置"
1221
1289
  }
1222
1290
  ],
@@ -1600,10 +1668,22 @@
1600
1668
  ],
1601
1669
  "ModifyFunctionRule": [
1602
1670
  {
1603
- "document": "",
1604
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2gqxim9jstab\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"/test\"\n ],\n \"Target\": \"url\"\n }\n ]\n }\n ],\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"my function\"\n}",
1671
+ "document": "修改函数规则 rule-vnqup0uc ,当请求host为 www.function.com 时命中规则,采用 direct(直接指定)的方式选择目标函数,目标函数 ID 为 ef-1pakhnuy 。\n\n",
1672
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"direct\",\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Remark\": \"function rule trigger direct\"\n}",
1673
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1674
+ "title": "修改边缘函数规则命中规则后执行指定函数"
1675
+ },
1676
+ {
1677
+ "document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 region(基于客户端 IP 国家/地区)的方式选择目标函数,如果客户端的 IP 归属地为中国大陆,则执行函数 ef-1pakhnuy ,如果客户端的 IP 归属地为其他地区,则执行函数 ef-1wekxwnu 。",
1678
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"region\",\n \"RegionMappingSelections\": [\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Regions\": [\n \"CN\"\n ]\n },\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Regions\": [\n \"Default\"\n ]\n }\n ],\n \"Remark\": \"function rule trigger region\"\n}",
1679
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1680
+ "title": "修改边缘函数规则命中规则后根据客户请求地区执行不同的函数"
1681
+ },
1682
+ {
1683
+ "document": "修改函数规则 rule-vnqup0uc,当请求host为 www.function.com 时命中规则,采用 weight(基于权重)的方式选择目标函数,有20%的概率,执行函数 ef-1pakhnuy ,有80%的概率,执行函数 ef-1wekxwnu 。",
1684
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyFunctionRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-293e7s5jne1i\",\n \"RuleId\": \"rule-vnqup0uc\",\n \"FunctionRuleConditions\": [\n {\n \"RuleConditions\": [\n {\n \"Operator\": \"equal\",\n \"Values\": [\n \"www.function.com\"\n ],\n \"Target\": \"host\"\n }\n ]\n }\n ],\n \"TriggerType\": \"weight\",\n \"WeightedSelections\": [\n {\n \"FunctionId\": \"ef-1wekxwnu\",\n \"Weight\": 80\n },\n {\n \"FunctionId\": \"ef-1pakhnuy\",\n \"Weight\": 20\n }\n ],\n \"Remark\": \"function rule trigger weight\"\n}",
1605
1685
  "output": "{\n \"Response\": {\n \"RequestId\": \"7a1e998f-fa00-4670-8457-ed4b4fe5018a\"\n }\n}",
1606
- "title": "修改边缘函数规则"
1686
+ "title": "修改边缘函数规则命中规则后根据客户设置的权重执行不同的函数"
1607
1687
  }
1608
1688
  ],
1609
1689
  "ModifyFunctionRulePriority": [
@@ -1669,7 +1749,7 @@
1669
1749
  "ModifyL7AccRule": [
1670
1750
  {
1671
1751
  "document": "修改规则引擎的单条规则内容。",
1672
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali12\",\n \"Rule\": {\n \"RuleId\": \"rule-djuq23\",\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\"\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n}",
1752
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccRule\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali12\",\n \"Rule\": {\n \"RuleId\": \"rule-djuq23\",\n \"RuleName\": \"测试规则\",\n \"Status\": \"disable\",\n \"Description\": [\n \"注释 1\",\n \"注释 2\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyOrigin\",\n \"ModifyOriginParameters\": {\n \"OriginType\": \"IPDomain\",\n \"Origin\": \"1.1.1.1\",\n \"OriginProtocol\": \"follow\",\n \"HTTPOriginPort\": 80,\n \"HTTPSOriginPort\": 443\n }\n }\n ],\n \"SubRules\": [\n {\n \"Description\": [\n \"节点缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Cache\",\n \"CacheParameters\": {\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"浏览器缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"MaxAge\",\n \"MaxAgeParameters\": {\n \"FollowOrigin\": \"off\",\n \"CacheTime\": 0\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"自定义CacheKey示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CacheKey\",\n \"CacheKeyParameters\": {\n \"FullURLCache\": \"off\",\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"IgnoreCase\": \"on\",\n \"Header\": {\n \"Switch\": \"on\",\n \"Values\": [\n \"EO-Client-Device\",\n \"EO-Client-OS\"\n ]\n },\n \"Scheme\": \"on\",\n \"Cookie\": {\n \"Switch\": \"off\"\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"状态码缓存TTL示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"StatusCodeCache\",\n \"StatusCodeCacheParameters\": {\n \"StatusCodeCacheParams\": [\n {\n \"StatusCode\": 400,\n \"CacheTime\": 4\n },\n {\n \"StatusCode\": 401,\n \"CacheTime\": 180\n },\n {\n \"StatusCode\": 403,\n \"CacheTime\": 7200\n },\n {\n \"StatusCode\": 404,\n \"CacheTime\": 86400\n }\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"缓存预刷新示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"CachePrefresh\",\n \"CachePrefreshParameters\": {\n \"Switch\": \"on\",\n \"CacheTimePercent\": 80\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"离线缓存示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OfflineCache\",\n \"OfflineCacheParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTP2\",\n \"HTTP2Parameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"QUIC示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"QUIC\",\n \"QUICParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"WebSocket示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"WebSocket\",\n \"WebSocketParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 30\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"最大上传大小示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"PostMaxSize\",\n \"PostMaxSizeParameters\": {\n \"Switch\": \"on\",\n \"MaxSize\": 524288000\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能压缩示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"Compression\",\n \"CompressionParameters\": {\n \"Switch\": \"on\",\n \"Algorithms\": [\n \"gzip\"\n ]\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"智能加速示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"SmartRouting\",\n \"SmartRoutingParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HTTP2回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"UpstreamHTTP2\",\n \"UpstreamHTTP2Parameters\": {\n \"Switch\": \"off\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源超时时间示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HTTPUpstreamTimeout\",\n \"HTTPUpstreamTimeoutParameters\": {\n \"ResponseTimeout\": 15\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"强制 HTTPS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ForceRedirectHTTPS\",\n \"ForceRedirectHTTPSParameters\": {\n \"Switch\": \"on\",\n \"RedirectStatusCode\": 302\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"HSTS示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"HSTS\",\n \"HSTSParameters\": {\n \"Switch\": \"on\",\n \"Timeout\": 1000,\n \"IncludeSubDomains\": \"on\",\n \"Preload\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"SSL/TLS 安全配置示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"TLSConfig\",\n \"TLSConfigParameters\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"OCSP 装订示例\",\n \"回源请求参数设置示例\",\n \"回源跟随重定向示例\",\n \"自定义错误页面示例\",\n \"分片回源示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OCSPStapling\",\n \"OCSPStaplingParameters\": {\n \"Switch\": \"on\"\n }\n },\n {\n \"Name\": \"UpstreamRequest\",\n \"UpstreamRequestParameters\": {\n \"QueryString\": {\n \"Switch\": \"on\",\n \"Action\": \"includeCustom\",\n \"Values\": [\n \"name1\",\n \"name2\"\n ]\n },\n \"Cookie\": {\n \"Switch\": \"on\",\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"UpstreamFollowRedirect\",\n \"UpstreamFollowRedirectParameters\": {\n \"Switch\": \"on\",\n \"MaxTimes\": 3\n }\n },\n {\n \"Name\": \"ErrorPage\",\n \"ErrorPageParameters\": {\n \"ErrorPageParams\": [\n {\n \"StatusCode\": 400,\n \"RedirectURL\": \"http://www.test-v.com/custom-page.html\"\n },\n {\n \"StatusCode\": 403,\n \"RedirectURL\": \"http://www.test-v.com/custom-page1.html\"\n }\n ]\n }\n },\n {\n \"Name\": \"RangeOriginPull\",\n \"RangeOriginPullParameters\": {\n \"Switch\": \"on\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"回源 HTTPS示例\",\n \"修改 HTTP 回源请求头示例\",\n \"Host Header 重写示例\",\n \"访问 URL 重定向示例\",\n \"Token 鉴权示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"OriginPullProtocol\",\n \"OriginPullProtocolParameters\": {\n \"Protocol\": \"follow\"\n }\n },\n {\n \"Name\": \"ModifyRequestHeader\",\n \"ModifyRequestHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"EO-Client-Browser\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"EO-Client-Device\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"EO-Client-OS\"\n }\n ]\n }\n },\n {\n \"Name\": \"HostHeader\",\n \"HostHeaderParameters\": {\n \"Action\": \"followOrigin\"\n }\n },\n {\n \"Name\": \"AccessURLRedirect\",\n \"AccessURLRedirectParameters\": {\n \"StatusCode\": 302,\n \"Protocol\": \"follow\",\n \"HostName\": {\n \"Action\": \"follow\"\n },\n \"URLPath\": {\n \"Action\": \"follow\"\n },\n \"QueryString\": {\n \"Action\": \"full\"\n }\n }\n },\n {\n \"Name\": \"Authentication\",\n \"AuthenticationParameters\": {\n \"AuthType\": \"TypeA\",\n \"Timeout\": 5,\n \"SecretKey\": \"BCChgIM4o0k08Uk0Jgi3f27ir3\",\n \"BackupSecretKey\": \"3deJ7O6CsqlIk\",\n \"AuthParam\": \"test123QQ\"\n }\n }\n ]\n }\n ]\n },\n {\n \"Description\": [\n \"修改 HTTP 节点响应头示例\",\n \"客户端 IP 头部示例\",\n \"客户端 IP 地理位置头部示例\",\n \"HTTP 应答示例\",\n \"回源 URL 重写示例\"\n ],\n \"Branches\": [\n {\n \"Condition\": \"${http.request.host} in ['www.example.com']\",\n \"Actions\": [\n {\n \"Name\": \"ModifyResponseHeader\",\n \"ModifyResponseHeaderParameters\": {\n \"HeaderActions\": [\n {\n \"Action\": \"add\",\n \"Name\": \"Access-Control-Allow-Methods\",\n \"Value\": \"POST,GET\"\n },\n {\n \"Action\": \"set\",\n \"Name\": \"Access-Control-Allow-Origin\",\n \"Value\": \"http://test.com,http://1.1.1.1\"\n },\n {\n \"Action\": \"del\",\n \"Name\": \"Content-Disposition\"\n }\n ]\n }\n },\n {\n \"Name\": \"ClientIPHeader\",\n \"ClientIPHeaderParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"testheader\"\n }\n },\n {\n \"Name\": \"ClientIPCountry\",\n \"ClientIPCountryParameters\": {\n \"Switch\": \"on\",\n \"HeaderName\": \"EO-Client-IPCountry\"\n }\n },\n {\n \"Name\": \"HttpResponse\",\n \"HttpResponseParameters\": {\n \"StatusCode\": 400,\n \"ResponsePage\": \"p-30tcxgl8i0ls\"\n }\n },\n {\n \"Name\": \"UpstreamURLRewrite\",\n \"UpstreamURLRewriteParameters\": {\n \"Type\": \"Path\",\n \"Action\": \"addPrefix\",\n \"Value\": \"/prefix\"\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n}",
1673
1753
  "output": "{\n \"Response\": {\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
1674
1754
  "title": "修改规则"
1675
1755
  }
@@ -1746,6 +1826,14 @@
1746
1826
  "title": "修改接入密钥"
1747
1827
  }
1748
1828
  ],
1829
+ "ModifyMultiPathGatewayStatus": [
1830
+ {
1831
+ "document": "更新 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'eo-gw-lb-uhk1oh 的多通道安全网关状态。",
1832
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMultiPathGatewayStatus\n<公共请求参数>\n\n{\n \"GatewayId\": \"eo-gw-lb-uhk1oh\",\n \"GatewayStatus\": \"offline\",\n \"ZoneId\": \"zone-27q0p0bal192\"\n}",
1833
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a03c3e4d-3a8c-4ef1-924c-81b33df6453a\"\n }\n}",
1834
+ "title": "更新多通道安全网关状态"
1835
+ }
1836
+ ],
1749
1837
  "ModifyOriginACL": [
1750
1838
  {
1751
1839
  "document": "ZoneId 为 'zone-276zs184g93m' 的站点新增七层加速域名 ‘www.qq.com’ 使用特定回源 IP 网段回源。",
@@ -1883,7 +1971,7 @@
1883
1971
  "ModifySecurityPolicy": [
1884
1972
  {
1885
1973
  "document": "修改eotest.com站点下a.eotest.com域名策略",
1886
- "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Host\",\n \"Host\": \"a.eotest.com\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"Enabled\": \"on\",\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"Enabled\": \"on\",\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ]\n }\n }\n}",
1974
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Host\",\n \"Host\": \"a.eotest.com\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"ExceptionRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"ExampleSkipModule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"WebSecurityModules\",\n \"WebSecurityModulesForException\": [\n \"websec-mod-custom-rules\",\n \"websec-mod-rate-limiting\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"SkipOption\": \"SkipOnAllRequestFields\",\n \"ManagedRuleGroupsForException\": [\n \"wafgroup-sql-injection-attacks\"\n ],\n \"Enabled\": \"On\"\n },\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleSkipManagedRuleForField\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit'] and ${http.request.method} in ['POST']\",\n \"SkipScope\": \"ManagedRules\",\n \"ManagedRulesForException\": [\n \"4401215074\",\n \"4368124487\"\n ],\n \"SkipOption\": \"SkipOnSpecifiedRequestFields\",\n \"RequestFieldsForException\": [\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['session-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"cookie\",\n \"Condition\": \"${key} in ['account-id'] and ${value} like ['prefix-*']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} in ['x-trace-id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"header\",\n \"Condition\": \"${key} like ['x-auth-*'] and ${value} like ['Bearer *']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri.query\",\n \"Condition\": \"${key} in ['action'] and ${value} in ['upload', 'delete']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"query\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"path\"\n },\n {\n \"Scope\": \"uri\",\n \"Condition\": \"\",\n \"TargetField\": \"fullpath\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"\",\n \"TargetField\": \"key\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body.json\",\n \"Condition\": \"${key} in ['user.id'] and ${value} in ['1234', '5678']\",\n \"TargetField\": \"value\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"fullbody\"\n },\n {\n \"Scope\": \"body\",\n \"Condition\": \"\",\n \"TargetField\": \"multipart\"\n }\n ],\n \"Enabled\": \"On\"\n }\n ]\n },\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n },\n \"HttpDDoSProtection\": {\n \"AdaptiveFrequencyControl\": {\n \"Enabled\": \"on\",\n \"Sensitivity\": \"Loose\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"ClientFiltering\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"BandwidthAbuseDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n },\n \"SlowAttackDefense\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"MinimalRequestBodyTransferRate\": {\n \"Enabled\": \"on\",\n \"MinimalAvgTransferRateThreshold\": \"50bps\",\n \"CountingPeriod\": \"60s\"\n },\n \"RequestBodyTransferTimeout\": {\n \"Enabled\": \"on\",\n \"IdleTimeout\": \"5s\"\n }\n }\n },\n \"RateLimitingRules\": {\n \"Rules\": [\n {\n \"Enabled\": \"on\",\n \"Name\": \"SampleHttpDdosRule\",\n \"Condition\": \"${http.request.uri.path} in ['/api/v3/test','/api/v3/submit']\",\n \"CountBy\": [\n \"http.request.ip\",\n \"http.request.cookies['UserSession']\"\n ],\n \"MaxRequestThreshold\": 1000,\n \"CountingPeriod\": \"2m\",\n \"ActionDuration\": \"20h\",\n \"Action\": {\n \"Name\": \"ManagedChallenge\"\n },\n \"Id\": \"2181399690\",\n \"Priority\": 100\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ],\n \"FrequentScanningProtection\": {\n \"Enabled\": \"on\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"CountBy\": \"http.request.ip\",\n \"BlockThreshold\": 100,\n \"CountingPeriod\": \"10s\",\n \"ActionDuration\": \"60s\"\n }\n },\n \"BotManagement\": {\n \"Enabled\": \"on\",\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Name\": \"Bot自定义规则##1\",\n \"Condition\": \"${http.request.bot.search_engine_bot_id} in ['1843332521']\",\n \"Enabled\": \"on\",\n \"Action\": [\n {\n \"SecurityAction\": {\n \"Name\": \"Deny\"\n },\n \"Weight\": 20\n },\n {\n \"SecurityAction\": {\n \"Name\": \"Monitor\"\n },\n \"Weight\": 80\n }\n ],\n \"Priority\": 30\n },\n {\n \"Name\": \"Bot自定义规则##2\",\n \"Condition\": \"${http.request.bot.user_agent_feature_id} in ['1843332521'] and ${http.request.bot.client_reputation_name} in ['cyber-attack@low']\",\n \"Enabled\": \"on\",\n \"Action\": [\n {\n \"SecurityAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n },\n \"Weight\": 70\n },\n {\n \"SecurityAction\": {\n \"Name\": \"Monitor\"\n },\n \"Weight\": 30\n }\n ],\n \"Priority\": 40\n }\n ]\n },\n \"BasicBotSettings\": {\n \"SourceIDC\": {\n \"BaseAction\": {\n \"Name\": \"Deny\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"8868370050\",\n \"8868370049\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Disabled\"\n },\n \"Ids\": [\n \"8868370054\",\n \"8868370055\"\n ]\n }\n ]\n },\n \"SearchEngineBots\": {\n \"BaseAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"9126905505\",\n \"9126905506\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Disabled\"\n },\n \"Ids\": [\n \"9126905514\",\n \"9126905515\"\n ]\n }\n ]\n },\n \"KnownBotCategories\": {\n \"BaseAction\": {\n \"Name\": \"Disabled\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Action\": {\n \"Name\": \"Allow\"\n },\n \"Ids\": [\n \"9395241960\"\n ]\n },\n {\n \"Action\": {\n \"Name\": \"Monitor\"\n },\n \"Ids\": [\n \"9395241965\",\n \"9395241966\"\n ]\n }\n ]\n },\n \"IPReputation\": {\n \"Enabled\": \"on\",\n \"IPReputationGroup\": {\n \"BaseAction\": {\n \"Name\": \"Deny\"\n },\n \"BotManagementActionOverrides\": [\n {\n \"Ids\": [\n \"IPREP_WEB_AND_DDOS_ATTACKERS_LOW\",\n \"IPREP_PROXIES_AND_ANONYMIZERS_HIGH\",\n \"IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_MID\"\n ],\n \"Action\": {\n \"Name\": \"Disabled\"\n }\n },\n {\n \"Ids\": [\n \"IPREP_WEB_AND_DDOS_ATTACKERS_HIGH\",\n \"IPREP_ATO_ATTACKERS_MID\",\n \"IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_LOW\"\n ],\n \"Action\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"ManagedChallenge\"\n },\n \"Name\": \"Challenge\"\n }\n }\n ]\n }\n },\n \"BotIntelligence\": {\n \"Enabled\": \"on\",\n \"BotRatings\": {\n \"HighRiskBotRequestsAction\": {\n \"Name\": \"Deny\"\n },\n \"LikelyBotRequestsAction\": {\n \"Name\": \"Monitor\"\n },\n \"HumanRequestsAction\": {\n \"Name\": \"Allow\"\n },\n \"VerifiedBotRequestsAction\": {\n \"ChallengeActionParameters\": {\n \"ChallengeOption\": \"JSChallenge\"\n },\n \"Name\": \"Challenge\"\n }\n }\n }\n },\n \"BrowserImpersonationDetection\": {\n \"Rules\": [\n {\n \"Id\": \"2181409112\",\n \"Name\": \"Bot主动特征识别##1\",\n \"Condition\": \"${http.request.method} in ['POST']\",\n \"Enabled\": \"on\",\n \"Action\": {\n \"BotSessionValidation\": {\n \"MaxNewSessionTriggerConfig\": {\n \"MaxNewSessionCountInterval\": \"10s\",\n \"MaxNewSessionCountThreshold\": 300\n },\n \"IssueNewBotSessionCookie\": \"on\",\n \"SessionExpiredAction\": {\n \"DenyActionParameters\": {\n \"Stall\": \"on\"\n },\n \"Name\": \"Deny\"\n },\n \"SessionInvalidAction\": {\n \"AllowActionParameters\": {\n \"MinDelayTime\": \"5s\"\n },\n \"Name\": \"Allow\"\n },\n \"SessionRateControl\": {\n \"Enabled\": \"on\",\n \"HighRateSessionAction\": {\n \"Name\": \"Deny\"\n },\n \"LowRateSessionAction\": {\n \"Name\": \"Allow\",\n \"AllowActionParameters\": {\n \"MaxDelayTime\": \"5s\"\n }\n },\n \"MidRateSessionAction\": {\n \"Name\": \"Monitor\"\n }\n }\n },\n \"ClientBehaviorDetection\": {\n \"BotClientAction\": {\n \"Name\": \"Allow\",\n \"AllowActionParameters\": {\n \"MinDelayTime\": \"5s\"\n }\n },\n \"ChallengeNotFinishedAction\": {\n \"Name\": \"Deny\"\n },\n \"ChallengeTimeoutAction\": {\n \"Name\": \"Monitor\"\n },\n \"CryptoChallengeDelayBefore\": \"500ms\",\n \"CryptoChallengeIntensity\": \"medium\",\n \"MaxChallengeCountInterval\": \"10s\",\n \"MaxChallengeCountThreshold\": 1000\n }\n }\n },\n {\n \"Id\": \"2181409113\",\n \"Name\": \"Bot主动特征识别##2\",\n \"Condition\": \"${http.request.uri.path} match ['zzz']\",\n \"Enabled\": \"on\",\n \"Action\": {\n \"BotSessionValidation\": {\n \"IssueNewBotSessionCookie\": \"off\",\n \"SessionExpiredAction\": {\n \"DenyActionParameters\": {\n \"Stall\": \"on\"\n },\n \"Name\": \"Deny\"\n },\n \"SessionInvalidAction\": {\n \"AllowActionParameters\": {\n \"MaxDelayTime\": \"5s\"\n },\n \"Name\": \"Allow\"\n },\n \"SessionRateControl\": {\n \"Enabled\": \"off\"\n }\n }\n }\n }\n ]\n }\n }\n }\n}",
1887
1975
  "output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-777c481da684\"\n }\n}",
1888
1976
  "title": "修改域名策略"
1889
1977
  },