tccli 3.0.1256.1__py2.py3-none-any.whl → 3.0.1258.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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/bi/v20220105/api.json +389 -300
- tccli/services/bi/v20220105/examples.json +27 -33
- tccli/services/cdwdoris/v20211228/api.json +220 -170
- tccli/services/cdwdoris/v20211228/examples.json +36 -36
- tccli/services/cfg/v20210820/api.json +29 -0
- tccli/services/cmq/v20190304/api.json +59 -59
- tccli/services/cmq/v20190304/examples.json +3 -3
- tccli/services/cwp/cwp_client.py +0 -106
- tccli/services/cwp/v20180228/api.json +0 -405
- tccli/services/cwp/v20180228/examples.json +0 -16
- tccli/services/dbbrain/v20210527/api.json +9 -0
- tccli/services/dlc/v20210125/api.json +265 -216
- tccli/services/dlc/v20210125/examples.json +46 -52
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +118 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +11 -1
- tccli/services/lke/v20231130/api.json +821 -10
- tccli/services/lke/v20231130/examples.json +10 -16
- tccli/services/ocr/ocr_client.py +361 -308
- tccli/services/ocr/v20181119/api.json +176 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/rum/v20210622/api.json +241 -135
- tccli/services/rum/v20210622/examples.json +31 -31
- tccli/services/scf/v20180416/api.json +2 -2
- tccli/services/ssl/ssl_client.py +61 -8
- tccli/services/ssl/v20191205/api.json +44 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/tccatalog/__init__.py +4 -0
- tccli/services/tccatalog/tccatalog_client.py +366 -0
- tccli/services/tccatalog/v20241024/api.json +525 -0
- tccli/services/tccatalog/v20241024/examples.json +37 -0
- tccli/services/tdmq/v20200217/api.json +3 -3
- tccli/services/tdmq/v20200217/examples.json +3 -3
- tccli/services/teo/teo_client.py +326 -8
- tccli/services/teo/v20220901/api.json +3104 -294
- tccli/services/teo/v20220901/examples.json +69 -3
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/RECORD +45 -41
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.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\": \"
|
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\": \"
|
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\": \"
|
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 探测。",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1258.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1258
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|