tccli 3.0.1255.1__py2.py3-none-any.whl → 3.0.1257.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/bi/v20220105/api.json +172 -86
  3. tccli/services/bi/v20220105/examples.json +6 -6
  4. tccli/services/cdwdoris/v20211228/api.json +215 -165
  5. tccli/services/cdwdoris/v20211228/examples.json +34 -34
  6. tccli/services/cfg/v20210820/api.json +29 -0
  7. tccli/services/cvm/v20170312/api.json +4 -4
  8. tccli/services/cwp/cwp_client.py +0 -106
  9. tccli/services/cwp/v20180228/api.json +0 -405
  10. tccli/services/cwp/v20180228/examples.json +0 -16
  11. tccli/services/dlc/v20210125/api.json +265 -216
  12. tccli/services/dlc/v20210125/examples.json +46 -52
  13. tccli/services/hunyuan/v20230901/api.json +11 -1
  14. tccli/services/lcic/v20220817/api.json +3 -3
  15. tccli/services/lke/v20231130/api.json +821 -10
  16. tccli/services/lke/v20231130/examples.json +10 -16
  17. tccli/services/ocr/ocr_client.py +361 -308
  18. tccli/services/ocr/v20181119/api.json +176 -0
  19. tccli/services/ocr/v20181119/examples.json +8 -0
  20. tccli/services/rum/v20210622/api.json +243 -137
  21. tccli/services/rum/v20210622/examples.json +32 -32
  22. tccli/services/scf/v20180416/api.json +10 -10
  23. tccli/services/tdmq/v20200217/api.json +3 -3
  24. tccli/services/tdmq/v20200217/examples.json +3 -3
  25. tccli/services/teo/teo_client.py +326 -8
  26. tccli/services/teo/v20220901/api.json +3104 -294
  27. tccli/services/teo/v20220901/examples.json +69 -3
  28. tccli/services/trro/v20220325/api.json +6 -6
  29. tccli/services/trro/v20220325/examples.json +2 -2
  30. tccli/services/trtc/v20190722/api.json +11 -0
  31. tccli/services/tse/tse_client.py +53 -0
  32. tccli/services/tse/v20201207/api.json +70 -0
  33. tccli/services/tse/v20201207/examples.json +8 -0
  34. tccli/services/vpc/v20170312/api.json +36658 -29
  35. tccli/services/vpc/v20170312/examples.json +3521 -5
  36. tccli/services/vpc/vpc_client.py +20515 -4
  37. {tccli-3.0.1255.1.dist-info → tccli-3.0.1257.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1255.1.dist-info → tccli-3.0.1257.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1255.1.dist-info → tccli-3.0.1257.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1255.1.dist-info → tccli-3.0.1257.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1255.1.dist-info → tccli-3.0.1257.1.dist-info}/license_files/LICENSE +0 -0
@@ -172,6 +172,14 @@
172
172
  "title": "创建四层代理转发规则"
173
173
  }
174
174
  ],
175
+ "CreateL7AccRules": [
176
+ {
177
+ "document": "创建一条七层加速规则。",
178
+ "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\": \"test\"\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}",
179
+ "output": "{\n \"Response\": {\n \"RuleIds\": [\n \"rule-sjuq23\"\n ],\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
180
+ "title": "创建七层加速规则"
181
+ }
182
+ ],
175
183
  "CreateLoadBalancer": [
176
184
  {
177
185
  "document": "健康检查策略选择 ICMP Ping,请求重试策略选择重试组内其他源站。",
@@ -462,6 +470,14 @@
462
470
  "title": "批量删除四层代理转发规则"
463
471
  }
464
472
  ],
473
+ "DeleteL7AccRules": [
474
+ {
475
+ "document": "删除规则引擎中指定的规则。",
476
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteL7AccRules\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali12\",\n \"RuleIds\": [\n \"rule-djuq23\"\n ]\n}",
477
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
478
+ "title": "删除规则"
479
+ }
480
+ ],
465
481
  "DeleteLoadBalancer": [
466
482
  {
467
483
  "document": "删除负载均衡实例",
@@ -708,7 +724,7 @@
708
724
  {
709
725
  "document": "",
710
726
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHostsSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-27q0p0bali16\"\n}",
711
- "output": "{\n \"Response\": {\n \"DetailHosts\": [\n {\n \"Status\": \"online\",\n \"Host\": \"test.example.com\",\n \"ZoneId\": \"zone-27q0p0bali16\",\n \"ZoneName\": \"example.com\",\n \"Cname\": \"test.example.com.acc.edgeonedy1.com.\",\n \"Id\": \"edge-ja6yyfjh\",\n \"InstanceId\": \"edge-ja6yyfjh\",\n \"Lock\": 0,\n \"Mode\": 0,\n \"Area\": \"mainland\",\n \"AccelerateType\": {\n \"Switch\": \"on\"\n },\n \"CacheConfig\": {\n \"Cache\": {\n \"Switch\": \"on\",\n \"CacheTime\": 0,\n \"IgnoreCacheControl\": \"abc\"\n },\n \"NoCache\": {\n \"Switch\": \"on\"\n },\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCacheTime\": 0,\n \"DefaultCache\": \"abc\",\n \"DefaultCacheStrategy\": \"abc\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"DDoS\": {\n \"Switch\": \"on\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"CC\": {\n \"PolicyId\": 1996,\n \"Switch\": \"on\"\n },\n \"Waf\": {\n \"PolicyId\": 1995,\n \"Switch\": \"on\"\n },\n \"Https\": {\n \"CertInfo\": [],\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 1,\n \"Preload\": \"off\",\n \"Switch\": \"on\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"ApplyType\": \"abc\",\n \"CipherSuite\": \"abc\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"Origin\": {\n \"BackupOrigins\": [],\n \"CosPrivateAccess\": \"off\",\n \"OriginPullProtocol\": \"follow\",\n \"Origins\": [\n \"1.1.1.1:80:100\"\n ]\n },\n \"SecurityType\": {\n \"Switch\": \"on\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n }\n }\n ],\n \"RequestId\": \"9cc50b24-7dc5-44f4-96ce-95825d53ff2f\",\n \"TotalNumber\": 1\n }\n}",
727
+ "output": "{\n \"Response\": {\n \"DetailHosts\": [\n {\n \"Status\": \"online\",\n \"Host\": \"test.example.com\",\n \"ZoneId\": \"zone-27q0p0bali16\",\n \"ZoneName\": \"example.com\",\n \"Cname\": \"test.example.com.acc.edgeonedy1.com.\",\n \"Id\": \"edge-ja6yyfjh\",\n \"InstanceId\": \"edge-ja6yyfjh\",\n \"Lock\": 0,\n \"Mode\": 0,\n \"Area\": \"mainland\",\n \"AccelerateType\": {\n \"Switch\": \"on\"\n },\n \"CacheConfig\": {\n \"Cache\": {\n \"Switch\": \"on\",\n \"CacheTime\": 0,\n \"IgnoreCacheControl\": \"off\"\n },\n \"NoCache\": {\n \"Switch\": \"on\"\n },\n \"FollowOrigin\": {\n \"Switch\": \"on\",\n \"DefaultCacheTime\": 0,\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"DDoS\": {\n \"Switch\": \"on\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"CC\": {\n \"PolicyId\": 1996,\n \"Switch\": \"on\"\n },\n \"Waf\": {\n \"PolicyId\": 1995,\n \"Switch\": \"on\"\n },\n \"Https\": {\n \"CertInfo\": [],\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 1,\n \"Preload\": \"off\",\n \"Switch\": \"on\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"ApplyType\": \"apply\",\n \"CipherSuite\": \"loose-v2023\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"Origin\": {\n \"BackupOrigins\": [],\n \"CosPrivateAccess\": \"off\",\n \"OriginPullProtocol\": \"follow\",\n \"Origins\": [\n \"1.1.1.1:80:100\"\n ]\n },\n \"SecurityType\": {\n \"Switch\": \"on\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n }\n }\n ],\n \"RequestId\": \"9cc50b24-7dc5-44f4-96ce-95825d53ff2f\",\n \"TotalNumber\": 1\n }\n}",
712
728
  "title": "查询域名详细配置"
713
729
  }
714
730
  ],
@@ -750,6 +766,22 @@
750
766
  "title": "查询指定转发规则 ID 下的四层代理实例转发规则列表"
751
767
  }
752
768
  ],
769
+ "DescribeL7AccRules": [
770
+ {
771
+ "document": "查询规则引擎规则列表。",
772
+ "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}",
773
+ "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\": \"test\"\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}",
774
+ "title": "查询规则引擎规则列表"
775
+ }
776
+ ],
777
+ "DescribeL7AccSetting": [
778
+ {
779
+ "document": "查询站点加速全局配置信息。",
780
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeL7AccSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\"\n}",
781
+ "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"ZoneSetting\": {\n \"ZoneName\": \"example.com\",\n \"ZoneConfig\": {\n \"SmartRouting\": {\n \"Switch\": \"off\"\n },\n \"Cache\": {\n \"CustomTime\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"CacheTime\": 600\n },\n \"CacheKey\": {\n \"FullURLCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Values\": []\n }\n },\n \"CachePrefresh\": {\n \"CacheTimePercent\": 90,\n \"Switch\": \"off\"\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirectHTTPS\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"HSTS\": {\n \"IncludeSubDomains\": \"off\",\n \"Timeout\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"TLSConfig\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n },\n \"OCSPStapling\": {\n \"Switch\": \"off\"\n },\n \"HTTP2\": {\n \"Switch\": \"off\"\n },\n \"QUIC\": {\n \"Switch\": \"off\"\n },\n \"UpstreamHTTP2\": {\n \"Switch\": \"off\"\n },\n \"IPv6\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"ClientIPHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIPCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"Expires\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n }\n }\n }\n }\n}",
782
+ "title": "查询七层加速站点配置"
783
+ }
784
+ ],
753
785
  "DescribeLoadBalancerList": [
754
786
  {
755
787
  "document": "查询负载均衡列表。",
@@ -838,7 +870,7 @@
838
870
  {
839
871
  "document": "",
840
872
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRulesSetting\n<公共请求参数>\n\n{}",
841
- "output": "{\n \"Response\": {\n \"Actions\": [\n {\n \"Action\": \"StatusCodeCache\",\n \"Properties\": [\n {\n \"Name\": \"CacheTime\",\n \"Type\": \"CUSTOM_NUM\",\n \"Min\": 0,\n \"Max\": 0,\n \"ChoicesValue\": [],\n \"IsMultiple\": false,\n \"IsAllowEmpty\": false,\n \"ChoiceProperties\": [],\n \"ExtraParameter\": {\n \"Choices\": [\n \"403\",\n \"404\",\n \"404\",\n \"405\",\n \"414\",\n \"416\",\n \"451\",\n \"500\",\n \"501\",\n \"502\",\n \"503\",\n \"504\"\n ],\n \"Id\": \"StatusCode\",\n \"Type\": \"CHOICE\"\n }\n }\n ]\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
873
+ "output": "{\n \"Response\": {\n \"Actions\": [\n {\n \"Action\": \"StatusCodeCache\",\n \"Properties\": [\n {\n \"Name\": \"CacheTime\",\n \"Type\": \"CUSTOM_NUM\",\n \"Min\": 0,\n \"Max\": 0,\n \"ChoicesValue\": [],\n \"IsMultiple\": false,\n \"IsAllowEmpty\": false,\n \"ChoiceProperties\": [],\n \"ExtraParameter\": {\n \"Choices\": [\n \"403\",\n \"404\",\n \"404\",\n \"405\",\n \"414\",\n \"416\",\n \"451\",\n \"500\",\n \"501\",\n \"502\",\n \"503\",\n \"504\"\n ],\n \"Id\": \"StatusCode\",\n \"Type\": \"CHOICE\"\n }\n }\n ]\n }\n ],\n \"RequestId\": \"9cc50b24-7dc5-44f4-96ce-95825d53ff2f\"\n }\n}",
842
874
  "title": "DescribeRulesSetting"
843
875
  }
844
876
  ],
@@ -930,7 +962,7 @@
930
962
  {
931
963
  "document": "",
932
964
  "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\"\n}",
933
- "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"ZoneSetting\": {\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"Area\": \"global\",\n \"CacheConfig\": {\n \"Cache\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"CachePrefresh\": {\n \"Percent\": 90,\n \"Switch\": \"off\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIpHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirect\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"Https\": {\n \"ApplyType\": \"none\",\n \"CertInfo\": [],\n \"CipherSuite\": \"loose-v2023\",\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ]\n },\n \"ImageOptimize\": {\n \"Switch\": \"off\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"MaxAgeTime\": 600\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Origin\": {\n \"Origins\": [\n \"30.12.34.23\"\n ],\n \"BackupOrigins\": [\n \"30.12.34.11\"\n ],\n \"OriginPullProtocol\": \"follow\",\n \"CosPrivateAccess\": \"abc\"\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"Quic\": {\n \"Switch\": \"off\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"ExpireTime\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n },\n \"UpstreamHttp2\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"JITVideoProcess\": {\n \"Switch\": \"off\"\n },\n \"ZoneName\": \"wxlagame.com\"\n }\n }\n}",
965
+ "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"ZoneSetting\": {\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"Area\": \"global\",\n \"CacheConfig\": {\n \"Cache\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"CacheKey\": {\n \"FullUrlCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Value\": []\n }\n },\n \"CachePrefresh\": {\n \"Percent\": 90,\n \"Switch\": \"off\"\n },\n \"ClientIpCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIpHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirect\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"Https\": {\n \"ApplyType\": \"none\",\n \"CertInfo\": [],\n \"CipherSuite\": \"loose-v2023\",\n \"Hsts\": {\n \"IncludeSubDomains\": \"off\",\n \"MaxAge\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"Http2\": \"on\",\n \"OcspStapling\": \"off\",\n \"TlsVersion\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ]\n },\n \"ImageOptimize\": {\n \"Switch\": \"off\"\n },\n \"Ipv6\": {\n \"Switch\": \"off\"\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"MaxAgeTime\": 600\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Origin\": {\n \"Origins\": [\n \"30.12.34.23\"\n ],\n \"BackupOrigins\": [\n \"30.12.34.11\"\n ],\n \"OriginPullProtocol\": \"follow\",\n \"CosPrivateAccess\": \"off\"\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"Quic\": {\n \"Switch\": \"off\"\n },\n \"SmartRouting\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"ExpireTime\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n },\n \"UpstreamHttp2\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"JITVideoProcess\": {\n \"Switch\": \"off\"\n },\n \"ZoneName\": \"wxlagame.com\"\n }\n }\n}",
934
966
  "title": "查询站点配置"
935
967
  }
936
968
  ],
@@ -1226,6 +1258,40 @@
1226
1258
  "title": "启用四层代理实例"
1227
1259
  }
1228
1260
  ],
1261
+ "ModifyL7AccRule": [
1262
+ {
1263
+ "document": "修改规则引擎的单条规则内容。",
1264
+ "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\": \"test\"\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}",
1265
+ "output": "{\n \"Response\": {\n \"RequestId\": \"811d2583-310c-41f4-b5e7-abe407404sxsd\"\n }\n}",
1266
+ "title": "修改规则"
1267
+ }
1268
+ ],
1269
+ "ModifyL7AccSetting": [
1270
+ {
1271
+ "document": "修改站点加速全局配置。",
1272
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"ZoneConfig\": {\n \"SmartRouting\": {\n \"Switch\": \"on\"\n },\n \"Cache\": {\n \"CustomTime\": {\n \"CacheTime\": 2592000,\n \"Switch\": \"off\"\n },\n \"FollowOrigin\": {\n \"DefaultCache\": \"on\",\n \"DefaultCacheStrategy\": \"on\",\n \"DefaultCacheTime\": 0,\n \"Switch\": \"on\"\n },\n \"NoCache\": {\n \"Switch\": \"off\"\n }\n },\n \"MaxAge\": {\n \"FollowOrigin\": \"on\",\n \"CacheTime\": 600\n },\n \"CacheKey\": {\n \"FullURLCache\": \"on\",\n \"IgnoreCase\": \"off\",\n \"QueryString\": {\n \"Action\": \"includeCustom\",\n \"Switch\": \"off\",\n \"Values\": []\n }\n },\n \"CachePrefresh\": {\n \"CacheTimePercent\": 90,\n \"Switch\": \"on\"\n },\n \"OfflineCache\": {\n \"Switch\": \"on\"\n },\n \"Compression\": {\n \"Algorithms\": [\n \"brotli\",\n \"gzip\"\n ],\n \"Switch\": \"on\"\n },\n \"ForceRedirectHTTPS\": {\n \"RedirectStatusCode\": 302,\n \"Switch\": \"off\"\n },\n \"HSTS\": {\n \"IncludeSubDomains\": \"off\",\n \"Timeout\": 0,\n \"Preload\": \"off\",\n \"Switch\": \"off\"\n },\n \"TLSConfig\": {\n \"Version\": [\n \"TLSv1\",\n \"TLSv1.1\",\n \"TLSv1.2\",\n \"TLSv1.3\"\n ],\n \"CipherSuite\": \"loose-v2023\"\n },\n \"OCSPStapling\": {\n \"Switch\": \"off\"\n },\n \"HTTP2\": {\n \"Switch\": \"off\"\n },\n \"QUIC\": {\n \"Switch\": \"off\"\n },\n \"UpstreamHTTP2\": {\n \"Switch\": \"off\"\n },\n \"IPv6\": {\n \"Switch\": \"off\"\n },\n \"WebSocket\": {\n \"Switch\": \"off\",\n \"Timeout\": 30\n },\n \"PostMaxSize\": {\n \"MaxSize\": 524288000,\n \"Switch\": \"on\"\n },\n \"ClientIPHeader\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"ClientIPCountry\": {\n \"HeaderName\": \"\",\n \"Switch\": \"off\"\n },\n \"Grpc\": {\n \"Switch\": \"off\"\n },\n \"AccelerateMainland\": {\n \"Switch\": \"off\"\n },\n \"StandardDebug\": {\n \"AllowClientIPList\": [],\n \"Expires\": \"1969-12-31T16:00:00Z\",\n \"Switch\": \"off\"\n }\n }\n}",
1273
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
1274
+ "title": "修改站点加速全局配置"
1275
+ },
1276
+ {
1277
+ "document": "针对站点下所有域名开启 IPv6 访问",
1278
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"ZoneConfig\": {\n \"IPv6\": {\n \"Switch\": \"on\"\n }\n }\n}",
1279
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
1280
+ "title": "修改站点加速全局 IPv6 访问配置"
1281
+ },
1282
+ {
1283
+ "document": "针对站点下所有域名开启 QUIC",
1284
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"ZoneConfig\": {\n \"QUIC\": {\n \"Switch\": \"on\"\n }\n }\n}",
1285
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
1286
+ "title": "修改站点加速全局 QUIC 配置"
1287
+ },
1288
+ {
1289
+ "document": "针对站点下所有域名将缓存配置为不缓存",
1290
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyL7AccSetting\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"ZoneConfig\": {\n \"Cache\": {\n \"NoCache\": {\n \"Switch\": \"on\"\n }\n }\n }\n}",
1291
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707\"\n }\n}",
1292
+ "title": "修改站点加速全局节点缓存 TTL 配置"
1293
+ }
1294
+ ],
1229
1295
  "ModifyLoadBalancer": [
1230
1296
  {
1231
1297
  "document": "修改负载均衡实例的检查策略,调整为 HTTP 探测。",
@@ -1204,7 +1204,7 @@
1204
1204
  "example": "无",
1205
1205
  "member": "SessionIntervalStatistic",
1206
1206
  "name": "SessionStatistics",
1207
- "required": true,
1207
+ "output_required": true,
1208
1208
  "type": "list",
1209
1209
  "value_allowed_null": false
1210
1210
  },
@@ -1268,7 +1268,7 @@
1268
1268
  "example": "10",
1269
1269
  "member": "uint64",
1270
1270
  "name": "SessionNum",
1271
- "required": true,
1271
+ "output_required": true,
1272
1272
  "type": "int",
1273
1273
  "value_allowed_null": false
1274
1274
  },
@@ -1278,7 +1278,7 @@
1278
1278
  "example": "100",
1279
1279
  "member": "uint64",
1280
1280
  "name": "TotalDuration",
1281
- "required": true,
1281
+ "output_required": true,
1282
1282
  "type": "int",
1283
1283
  "value_allowed_null": false
1284
1284
  },
@@ -1288,7 +1288,7 @@
1288
1288
  "example": "30",
1289
1289
  "member": "uint64",
1290
1290
  "name": "ActiveFieldDeviceNum",
1291
- "required": true,
1291
+ "output_required": true,
1292
1292
  "type": "int",
1293
1293
  "value_allowed_null": false
1294
1294
  },
@@ -1298,7 +1298,7 @@
1298
1298
  "example": "60",
1299
1299
  "member": "uint64",
1300
1300
  "name": "ActiveRemoteDeviceNum",
1301
- "required": true,
1301
+ "output_required": true,
1302
1302
  "type": "int",
1303
1303
  "value_allowed_null": false
1304
1304
  },
@@ -1308,7 +1308,7 @@
1308
1308
  "example": "90",
1309
1309
  "member": "uint64",
1310
1310
  "name": "NotBadSessionRatio",
1311
- "required": true,
1311
+ "output_required": true,
1312
1312
  "type": "int",
1313
1313
  "value_allowed_null": false
1314
1314
  },
@@ -124,7 +124,7 @@
124
124
  {
125
125
  "document": "",
126
126
  "input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSessionStatisticsByInterval\n<公共请求参数>\n\n{\n \"ProjectId\": \"abcdefg\",\n \"EndTime\": \"1670000000\",\n \"StatisticInterval\": \"hour\",\n \"DeviceId\": \"dev2\",\n \"StartTime\": \"0\"\n}",
127
- "output": "{\n \"Response\": {\n \"RequestId\": \"abcdefg-774e-4756-9f5b-8faa55ae1e5b\",\n \"SessionStatistics\": [\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 1,\n \"TotalDuration\": 0\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 2,\n \"TotalDuration\": 0\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 1,\n \"SessionNum\": 4,\n \"TotalDuration\": 604\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 1,\n \"TotalDuration\": 0\n }\n ]\n }\n}",
127
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abcdefg-774e-4756-9f5b-8faa55ae1e5b\",\n \"SessionStatistics\": [\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 1,\n \"StartTime\": 1661151600,\n \"EndTime\": 1661152600,\n \"TotalDuration\": 20,\n \"NotBadSessionRatio\": 50\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 2,\n \"StartTime\": 1661162400,\n \"EndTime\": 1661152600,\n \"TotalDuration\": 20,\n \"NotBadSessionRatio\": 10\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 1,\n \"SessionNum\": 4,\n \"StartTime\": 1661166000,\n \"EndTime\": 1661176000,\n \"TotalDuration\": 604,\n \"NotBadSessionRatio\": 20\n },\n {\n \"ActiveFieldDeviceNum\": 1,\n \"ActiveRemoteDeviceNum\": 0,\n \"SessionNum\": 1,\n \"StartTime\": 1661166000,\n \"EndTime\": 1661176000,\n \"TotalDuration\": 10,\n \"NotBadSessionRatio\": 30\n }\n ]\n }\n}",
128
128
  "title": "示例"
129
129
  }
130
130
  ],
@@ -148,7 +148,7 @@
148
148
  {
149
149
  "document": "统计各个类型的license数量",
150
150
  "input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetLicenseStat\n<公共请求参数>\n\n{}",
151
- "output": "{\n \"Response\": {\n \"Valid\": 10,\n \"Bound\": 8,\n \"UnBound\": 2,\n \"Expire\": 1,\n \"MonthlyExpire\": 0,\n \"RequestId\": \"abc\"\n }\n}",
151
+ "output": "{\n \"Response\": {\n \"Valid\": 10,\n \"Bound\": 8,\n \"UnBound\": 2,\n \"Expire\": 1,\n \"MonthlyExpire\": 0,\n \"RequestId\": \"72e27b83-97e4-4325-f4e3-cac52c5ed9e3\"\n }\n}",
152
152
  "title": "license统计"
153
153
  }
154
154
  ],
@@ -590,6 +590,17 @@
590
590
  "required": false,
591
591
  "type": "bool",
592
592
  "value_allowed_null": false
593
+ },
594
+ {
595
+ "disabled": false,
596
+ "document": "欢迎消息优先级,0默认,1高优,高优不能被打断。",
597
+ "example": "0",
598
+ "member": "uint64",
599
+ "name": "WelcomeMessagePriority",
600
+ "output_required": false,
601
+ "required": false,
602
+ "type": "int",
603
+ "value_allowed_null": false
593
604
  }
594
605
  ],
595
606
  "usage": "both"
@@ -3189,6 +3189,58 @@ def doDescribeNativeGatewayServiceSources(args, parsed_globals):
3189
3189
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
3190
 
3191
3191
 
3192
+ def doDescribeCloudNativeAPIGatewayInfoByIp(args, parsed_globals):
3193
+ g_param = parse_global_arg(parsed_globals)
3194
+
3195
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3196
+ cred = credential.CVMRoleCredential()
3197
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3198
+ cred = credential.STSAssumeRoleCredential(
3199
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3200
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3201
+ )
3202
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3203
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3204
+ else:
3205
+ cred = credential.Credential(
3206
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3207
+ )
3208
+ http_profile = HttpProfile(
3209
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3210
+ reqMethod="POST",
3211
+ endpoint=g_param[OptionsDefine.Endpoint],
3212
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3213
+ )
3214
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3215
+ if g_param[OptionsDefine.Language]:
3216
+ profile.language = g_param[OptionsDefine.Language]
3217
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3218
+ client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
3219
+ client._sdkVersion += ("_CLI_" + __version__)
3220
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
+ model = models.DescribeCloudNativeAPIGatewayInfoByIpRequest()
3222
+ model.from_json_string(json.dumps(args))
3223
+ start_time = time.time()
3224
+ while True:
3225
+ rsp = client.DescribeCloudNativeAPIGatewayInfoByIp(model)
3226
+ result = rsp.to_json_string()
3227
+ try:
3228
+ json_obj = json.loads(result)
3229
+ except TypeError as e:
3230
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3231
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3232
+ break
3233
+ cur_time = time.time()
3234
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3235
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3236
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3237
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3238
+ else:
3239
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3240
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3241
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
+
3243
+
3192
3244
  def doModifyNativeGatewayServerGroup(args, parsed_globals):
3193
3245
  g_param = parse_global_arg(parsed_globals)
3194
3246
 
@@ -6225,6 +6277,7 @@ ACTION_MAP = {
6225
6277
  "DescribeNacosReplicas": doDescribeNacosReplicas,
6226
6278
  "DescribeUpstreamHealthCheckConfig": doDescribeUpstreamHealthCheckConfig,
6227
6279
  "DescribeNativeGatewayServiceSources": doDescribeNativeGatewayServiceSources,
6280
+ "DescribeCloudNativeAPIGatewayInfoByIp": doDescribeCloudNativeAPIGatewayInfoByIp,
6228
6281
  "ModifyNativeGatewayServerGroup": doModifyNativeGatewayServerGroup,
6229
6282
  "DescribeCloudNativeAPIGatewayCertificates": doDescribeCloudNativeAPIGatewayCertificates,
6230
6283
  "ModifyCloudNativeAPIGatewayServiceRateLimit": doModifyCloudNativeAPIGatewayServiceRateLimit,