tccli 3.0.1397.1__py2.py3-none-any.whl → 3.0.1399.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.
Files changed (41) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ccc/v20200210/api.json +33 -0
  3. tccli/services/cdb/cdb_client.py +53 -0
  4. tccli/services/cdb/v20170320/api.json +76 -14
  5. tccli/services/cdb/v20170320/examples.json +8 -0
  6. tccli/services/cdwpg/v20201230/api.json +11 -1
  7. tccli/services/cdwpg/v20201230/examples.json +1 -1
  8. tccli/services/cls/v20201016/api.json +3 -3
  9. tccli/services/dbbrain/dbbrain_client.py +114 -61
  10. tccli/services/dbbrain/v20191016/api.json +63 -61
  11. tccli/services/dbbrain/v20210527/api.json +324 -163
  12. tccli/services/dbbrain/v20210527/examples.json +11 -3
  13. tccli/services/dlc/dlc_client.py +53 -0
  14. tccli/services/dlc/v20210125/api.json +206 -24
  15. tccli/services/dlc/v20210125/examples.json +11 -3
  16. tccli/services/dts/v20180330/api.json +4 -4
  17. tccli/services/dts/v20211206/api.json +54 -54
  18. tccli/services/dts/v20211206/examples.json +2 -2
  19. tccli/services/ess/v20201111/api.json +118 -3
  20. tccli/services/essbasic/v20210526/api.json +117 -2
  21. tccli/services/ioa/v20220601/api.json +11 -0
  22. tccli/services/lke/v20231130/api.json +162 -36
  23. tccli/services/lke/v20231130/examples.json +20 -20
  24. tccli/services/mongodb/v20190725/api.json +322 -313
  25. tccli/services/mongodb/v20190725/examples.json +17 -17
  26. tccli/services/monitor/v20180724/api.json +5 -4
  27. tccli/services/monitor/v20180724/examples.json +8 -2
  28. tccli/services/redis/v20180412/api.json +13 -13
  29. tccli/services/rum/v20210622/api.json +4 -4
  30. tccli/services/rum/v20210622/examples.json +2 -2
  31. tccli/services/teo/teo_client.py +166 -7
  32. tccli/services/teo/v20220901/api.json +341 -0
  33. tccli/services/teo/v20220901/examples.json +27 -3
  34. tccli/services/tke/v20180525/api.json +6 -6
  35. tccli/services/tke/v20180525/examples.json +1 -1
  36. tccli/services/waf/v20180125/api.json +19 -0
  37. {tccli-3.0.1397.1.dist-info → tccli-3.0.1399.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1397.1.dist-info → tccli-3.0.1399.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1397.1.dist-info → tccli-3.0.1399.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1397.1.dist-info → tccli-3.0.1399.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1397.1.dist-info → tccli-3.0.1399.1.dist-info}/license_files/LICENSE +0 -0
@@ -44,6 +44,14 @@
44
44
  "title": "查询域名 CNAME 状态"
45
45
  }
46
46
  ],
47
+ "ConfirmMultiPathGatewayOriginACL": [
48
+ {
49
+ "document": "确认 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'mpgw-lbxuhk1oh' 的实例已将最新的回源 IP 网段更新至源站防火墙。",
50
+ "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}",
51
+ "output": "{\n \"Response\": {\n \"RequestId\": \"af0a2b4f-df6d-4d2a-ac39-1706cbf8a868\"\n }\n}",
52
+ "title": "确认已更新至最新的回源 IP 网段"
53
+ }
54
+ ],
47
55
  "ConfirmOriginACLUpdate": [
48
56
  {
49
57
  "document": "ZoneId 为 'zone-276zs184g93m' 的站点确认已将最新的回源 IP 网段更新至源站防火墙。",
@@ -191,7 +199,7 @@
191
199
  "CreateL7AccRules": [
192
200
  {
193
201
  "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}",
202
+ "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
203
  "output": "{\n \"Response\": {\n \"RuleIds\": [\n \"rule-sjuq23\"\n ],\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
196
204
  "title": "创建七层加速规则"
197
205
  }
@@ -972,7 +980,7 @@
972
980
  {
973
981
  "document": "查询规则引擎规则列表。",
974
982
  "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}",
983
+ "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
984
  "title": "查询规则引擎规则列表"
977
985
  }
978
986
  ],
@@ -1026,6 +1034,14 @@
1026
1034
  "title": "查询多通道安全加速网关的自定义接入线路"
1027
1035
  }
1028
1036
  ],
1037
+ "DescribeMultiPathGatewayOriginACL": [
1038
+ {
1039
+ "document": "查询 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'mpgw-lbxuhk1oh' 的实例与回源 IP 网段的绑定关系,以及回源 IP 网段详情。",
1040
+ "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}",
1041
+ "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}",
1042
+ "title": "查询多通道安全加速网关源站防护详情"
1043
+ }
1044
+ ],
1029
1045
  "DescribeMultiPathGatewayRegions": [
1030
1046
  {
1031
1047
  "document": "获取站点( ZoneId 为 zone-27q0p0bal192 )下,云上网关的可用地域列表。",
@@ -1669,7 +1685,7 @@
1669
1685
  "ModifyL7AccRule": [
1670
1686
  {
1671
1687
  "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}",
1688
+ "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
1689
  "output": "{\n \"Response\": {\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
1674
1690
  "title": "修改规则"
1675
1691
  }
@@ -1746,6 +1762,14 @@
1746
1762
  "title": "修改接入密钥"
1747
1763
  }
1748
1764
  ],
1765
+ "ModifyMultiPathGatewayStatus": [
1766
+ {
1767
+ "document": "更新 ZoneId 为 'zone-27q0p0bal192' ,GatewayId 为 'eo-gw-lb-uhk1oh 的多通道安全网关状态。",
1768
+ "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}",
1769
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a03c3e4d-3a8c-4ef1-924c-81b33df6453a\"\n }\n}",
1770
+ "title": "更新多通道安全网关状态"
1771
+ }
1772
+ ],
1749
1773
  "ModifyOriginACL": [
1750
1774
  {
1751
1775
  "document": "ZoneId 为 'zone-276zs184g93m' 的站点新增七层加速域名 ‘www.qq.com’ 使用特定回源 IP 网段回源。",