tccli 3.0.1224.1__py2.py3-none-any.whl → 3.0.1225.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +11 -0
  3. tccli/services/batch/v20170312/api.json +33 -11
  4. tccli/services/billing/v20180709/api.json +37 -7
  5. tccli/services/billing/v20180709/examples.json +2 -2
  6. tccli/services/cbs/v20170312/api.json +1 -1
  7. tccli/services/cvm/v20170312/api.json +33 -11
  8. tccli/services/cwp/v20180228/api.json +1 -1
  9. tccli/services/cynosdb/v20190107/api.json +4 -4
  10. tccli/services/ess/v20201111/api.json +2 -2
  11. tccli/services/ess/v20201111/examples.json +2 -2
  12. tccli/services/essbasic/v20210526/api.json +2 -2
  13. tccli/services/essbasic/v20210526/examples.json +2 -2
  14. tccli/services/iotexplorer/v20190423/api.json +11 -11
  15. tccli/services/live/live_client.py +460 -36
  16. tccli/services/live/v20180801/api.json +592 -3
  17. tccli/services/live/v20180801/examples.json +64 -0
  18. tccli/services/mrs/v20200910/api.json +4217 -4211
  19. tccli/services/mrs/v20200910/examples.json +14 -14
  20. tccli/services/ocr/ocr_client.py +0 -53
  21. tccli/services/ocr/v20181119/api.json +0 -162
  22. tccli/services/ocr/v20181119/examples.json +0 -8
  23. tccli/services/teo/teo_client.py +159 -0
  24. tccli/services/teo/v20220901/api.json +199 -0
  25. tccli/services/teo/v20220901/examples.json +36 -0
  26. {tccli-3.0.1224.1.dist-info → tccli-3.0.1225.1.dist-info}/METADATA +2 -2
  27. {tccli-3.0.1224.1.dist-info → tccli-3.0.1225.1.dist-info}/RECORD +30 -30
  28. {tccli-3.0.1224.1.dist-info → tccli-3.0.1225.1.dist-info}/WHEEL +0 -0
  29. {tccli-3.0.1224.1.dist-info → tccli-3.0.1225.1.dist-info}/entry_points.txt +0 -0
  30. {tccli-3.0.1224.1.dist-info → tccli-3.0.1225.1.dist-info}/license_files/LICENSE +0 -0
@@ -123,6 +123,58 @@ def doDescribeOriginGroupHealthStatus(args, parsed_globals):
123
123
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
124
124
 
125
125
 
126
+ def doExportZoneConfig(args, parsed_globals):
127
+ g_param = parse_global_arg(parsed_globals)
128
+
129
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
130
+ cred = credential.CVMRoleCredential()
131
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
132
+ cred = credential.STSAssumeRoleCredential(
133
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
134
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
135
+ )
136
+ 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):
137
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
138
+ else:
139
+ cred = credential.Credential(
140
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
141
+ )
142
+ http_profile = HttpProfile(
143
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
144
+ reqMethod="POST",
145
+ endpoint=g_param[OptionsDefine.Endpoint],
146
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
147
+ )
148
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
149
+ if g_param[OptionsDefine.Language]:
150
+ profile.language = g_param[OptionsDefine.Language]
151
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
152
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
153
+ client._sdkVersion += ("_CLI_" + __version__)
154
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
155
+ model = models.ExportZoneConfigRequest()
156
+ model.from_json_string(json.dumps(args))
157
+ start_time = time.time()
158
+ while True:
159
+ rsp = client.ExportZoneConfig(model)
160
+ result = rsp.to_json_string()
161
+ try:
162
+ json_obj = json.loads(result)
163
+ except TypeError as e:
164
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
165
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
166
+ break
167
+ cur_time = time.time()
168
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
169
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
170
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
171
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
172
+ else:
173
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
174
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
175
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
176
+
177
+
126
178
  def doDeleteFunction(args, parsed_globals):
127
179
  g_param = parse_global_arg(parsed_globals)
128
180
 
@@ -5687,6 +5739,58 @@ def doDescribeZoneSetting(args, parsed_globals):
5687
5739
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5688
5740
 
5689
5741
 
5742
+ def doDescribeZoneConfigImportResult(args, parsed_globals):
5743
+ g_param = parse_global_arg(parsed_globals)
5744
+
5745
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5746
+ cred = credential.CVMRoleCredential()
5747
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5748
+ cred = credential.STSAssumeRoleCredential(
5749
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5750
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5751
+ )
5752
+ 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):
5753
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5754
+ else:
5755
+ cred = credential.Credential(
5756
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5757
+ )
5758
+ http_profile = HttpProfile(
5759
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5760
+ reqMethod="POST",
5761
+ endpoint=g_param[OptionsDefine.Endpoint],
5762
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5763
+ )
5764
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5765
+ if g_param[OptionsDefine.Language]:
5766
+ profile.language = g_param[OptionsDefine.Language]
5767
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5768
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
5769
+ client._sdkVersion += ("_CLI_" + __version__)
5770
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5771
+ model = models.DescribeZoneConfigImportResultRequest()
5772
+ model.from_json_string(json.dumps(args))
5773
+ start_time = time.time()
5774
+ while True:
5775
+ rsp = client.DescribeZoneConfigImportResult(model)
5776
+ result = rsp.to_json_string()
5777
+ try:
5778
+ json_obj = json.loads(result)
5779
+ except TypeError as e:
5780
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5781
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5782
+ break
5783
+ cur_time = time.time()
5784
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5785
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5786
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5787
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5788
+ else:
5789
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5790
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5791
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5792
+
5793
+
5690
5794
  def doDeleteSecurityIPGroup(args, parsed_globals):
5691
5795
  g_param = parse_global_arg(parsed_globals)
5692
5796
 
@@ -6051,6 +6155,58 @@ def doDescribeSecurityIPGroup(args, parsed_globals):
6051
6155
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6052
6156
 
6053
6157
 
6158
+ def doImportZoneConfig(args, parsed_globals):
6159
+ g_param = parse_global_arg(parsed_globals)
6160
+
6161
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6162
+ cred = credential.CVMRoleCredential()
6163
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6164
+ cred = credential.STSAssumeRoleCredential(
6165
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6166
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6167
+ )
6168
+ 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):
6169
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6170
+ else:
6171
+ cred = credential.Credential(
6172
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6173
+ )
6174
+ http_profile = HttpProfile(
6175
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6176
+ reqMethod="POST",
6177
+ endpoint=g_param[OptionsDefine.Endpoint],
6178
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6179
+ )
6180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6181
+ if g_param[OptionsDefine.Language]:
6182
+ profile.language = g_param[OptionsDefine.Language]
6183
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6184
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
6185
+ client._sdkVersion += ("_CLI_" + __version__)
6186
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6187
+ model = models.ImportZoneConfigRequest()
6188
+ model.from_json_string(json.dumps(args))
6189
+ start_time = time.time()
6190
+ while True:
6191
+ rsp = client.ImportZoneConfig(model)
6192
+ result = rsp.to_json_string()
6193
+ try:
6194
+ json_obj = json.loads(result)
6195
+ except TypeError as e:
6196
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6197
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6198
+ break
6199
+ cur_time = time.time()
6200
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6201
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6202
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6203
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6204
+ else:
6205
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6206
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6207
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6208
+
6209
+
6054
6210
  def doModifyCustomErrorPage(args, parsed_globals):
6055
6211
  g_param = parse_global_arg(parsed_globals)
6056
6212
 
@@ -6378,6 +6534,7 @@ MODELS_MAP = {
6378
6534
  ACTION_MAP = {
6379
6535
  "DestroyPlan": doDestroyPlan,
6380
6536
  "DescribeOriginGroupHealthStatus": doDescribeOriginGroupHealthStatus,
6537
+ "ExportZoneConfig": doExportZoneConfig,
6381
6538
  "DeleteFunction": doDeleteFunction,
6382
6539
  "CreatePurgeTask": doCreatePurgeTask,
6383
6540
  "DownloadL4Logs": doDownloadL4Logs,
@@ -6485,6 +6642,7 @@ ACTION_MAP = {
6485
6642
  "ModifyL4ProxyRulesStatus": doModifyL4ProxyRulesStatus,
6486
6643
  "RenewPlan": doRenewPlan,
6487
6644
  "DescribeZoneSetting": doDescribeZoneSetting,
6645
+ "DescribeZoneConfigImportResult": doDescribeZoneConfigImportResult,
6488
6646
  "DeleteSecurityIPGroup": doDeleteSecurityIPGroup,
6489
6647
  "CreateApplicationProxyRule": doCreateApplicationProxyRule,
6490
6648
  "DescribeZones": doDescribeZones,
@@ -6492,6 +6650,7 @@ ACTION_MAP = {
6492
6650
  "DeleteZone": doDeleteZone,
6493
6651
  "DescribeSecurityIPGroupInfo": doDescribeSecurityIPGroupInfo,
6494
6652
  "DescribeSecurityIPGroup": doDescribeSecurityIPGroup,
6653
+ "ImportZoneConfig": doImportZoneConfig,
6495
6654
  "ModifyCustomErrorPage": doModifyCustomErrorPage,
6496
6655
  "DescribeDDoSAttackData": doDescribeDDoSAttackData,
6497
6656
  "DeleteSharedCNAME": doDeleteSharedCNAME,
@@ -588,6 +588,13 @@
588
588
  "output": "DescribeTopL7CacheDataResponse",
589
589
  "status": "online"
590
590
  },
591
+ "DescribeZoneConfigImportResult": {
592
+ "document": "查询站点配置项导入结果接口,本接口用于站点配置导入接口(ImportZoneConfig)的结果查询。该功能仅支持标准版或企业版套餐的站点使用。",
593
+ "input": "DescribeZoneConfigImportResultRequest",
594
+ "name": "查询站点配置导入结果",
595
+ "output": "DescribeZoneConfigImportResultResponse",
596
+ "status": "online"
597
+ },
591
598
  "DescribeZoneSetting": {
592
599
  "document": "用于查询站点的所有配置信息。",
593
600
  "input": "DescribeZoneSettingRequest",
@@ -623,6 +630,13 @@
623
630
  "output": "DownloadL7LogsResponse",
624
631
  "status": "online"
625
632
  },
633
+ "ExportZoneConfig": {
634
+ "document": "导出站点配置接口,本接口支持用户根据需要的配置项进行配置导出,导出的配置用于导入站点配置接口(ImportZoneConfig)进行配置导入。该功能仅支持标准版和企业版套餐站点使用。",
635
+ "input": "ExportZoneConfigRequest",
636
+ "name": "导出站点配置",
637
+ "output": "ExportZoneConfigResponse",
638
+ "status": "online"
639
+ },
626
640
  "HandleFunctionRuntimeEnvironment": {
627
641
  "document": "操作边缘函数运行环境,支持环境变量的相关设置。\n设置环境变量后,可在函数代码中使用,具体参考 [边缘函数引入环境变量](https://cloud.tencent.com/document/product/1552/109151#0151fd9a-8b0e-407b-ae37-54553a60ded6)。",
628
642
  "input": "HandleFunctionRuntimeEnvironmentRequest",
@@ -637,6 +651,13 @@
637
651
  "output": "IdentifyZoneResponse",
638
652
  "status": "online"
639
653
  },
654
+ "ImportZoneConfig": {
655
+ "document": "导入站点配置接口,本接口支持站点配置文件的快速导入,发起导入后接口会返回对应的任务 ID(TaskId),用户需通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。该功能仅支持标准版和企业版套餐站点使用。",
656
+ "input": "ImportZoneConfigRequest",
657
+ "name": "导入站点配置",
658
+ "output": "ImportZoneConfigResponse",
659
+ "status": "online"
660
+ },
640
661
  "IncreasePlanQuota": {
641
662
  "document": "当您的套餐绑定的站点数,或配置的 Web 防护 - 自定义规则 - 精准匹配策略的规则数,或 Web 防护 - 速率限制 - 精准速率限制模块的规则数达到套餐允许的配额上限,可以通过该接口增购对应配额。\n> 该接口该仅支持企业版套餐。",
642
663
  "input": "IncreasePlanQuotaRequest",
@@ -9419,6 +9440,92 @@
9419
9440
  ],
9420
9441
  "type": "object"
9421
9442
  },
9443
+ "DescribeZoneConfigImportResultRequest": {
9444
+ "document": "DescribeZoneConfigImportResult请求参数结构体",
9445
+ "members": [
9446
+ {
9447
+ "disabled": false,
9448
+ "document": "站点 ID。",
9449
+ "example": "zone-2zpqp7qztest",
9450
+ "member": "string",
9451
+ "name": "ZoneId",
9452
+ "required": true,
9453
+ "type": "string"
9454
+ },
9455
+ {
9456
+ "disabled": false,
9457
+ "document": "表示需要查询结果的导入配置任务 Id,导入任务 Id 仅支持查询最近 7 天的导入任务。",
9458
+ "example": "33mz68e4gwka",
9459
+ "member": "string",
9460
+ "name": "TaskId",
9461
+ "required": true,
9462
+ "type": "string"
9463
+ }
9464
+ ],
9465
+ "type": "object"
9466
+ },
9467
+ "DescribeZoneConfigImportResultResponse": {
9468
+ "document": "DescribeZoneConfigImportResult返回参数结构体",
9469
+ "members": [
9470
+ {
9471
+ "disabled": false,
9472
+ "document": "本次导入任务的导入状态。取值有: <li>success:表示配置项导入成功;</li> <li>failure:表示配置项导入失败;</li> <li>doing:表示配置项正在导入中。</li>",
9473
+ "example": "success",
9474
+ "member": "string",
9475
+ "name": "Status",
9476
+ "output_required": false,
9477
+ "type": "string",
9478
+ "value_allowed_null": false
9479
+ },
9480
+ {
9481
+ "disabled": false,
9482
+ "document": "本次导入任务的状态的提示信息。当配置项导入失败时,可通过本字段查看失败原因。",
9483
+ "example": "success",
9484
+ "member": "string",
9485
+ "name": "Message",
9486
+ "output_required": false,
9487
+ "type": "string",
9488
+ "value_allowed_null": false
9489
+ },
9490
+ {
9491
+ "disabled": false,
9492
+ "document": "本次导入任务的配置内容。",
9493
+ "example": "{ \"L7AccelerationConfig\": { \"FormatVersion\": \"1.0\", \"ZoneConfig\": { \"SmartRouting\": { \"Switch\": \"off\" }, \"Cache\": { \"NoCache\": { \"Switch\": \"on\" }, \"FollowOrigin\": { \"Switch\": \"off\", \"DefaultCache\": \"on\", \"DefaultCacheStrategy\": \"on\", \"DefaultCacheTime\": 0 }, \"CustomTime\": { \"Switch\": \"off\", \"CacheTime\": 2592000 } }, \"MaxAge\": { \"FollowOrigin\": \"on\", \"CacheTime\": 600 }, \"CacheKey\": { \"FullURLCache\": \"on\", \"QueryString\": { \"Switch\": \"off\", \"Action\": \"includeCustom\" }, \"IgnoreCase\": \"off\" }, \"CachePrefresh\": { \"Switch\": \"off\", \"CacheTimePercent\": 90 }, \"OfflineCache\": { \"Switch\": \"on\" }, \"Compression\": { \"Switch\": \"on\", \"Algorithms\": [ \"brotli\", \"gzip\" ] }, \"ForceRedirectHTTPS\": { \"Switch\": \"off\", \"RedirectStatusCode\": 302 }, \"HSTS\": { \"Switch\": \"off\", \"Timeout\": 0, \"IncludeSubDomains\": \"off\", \"Preload\": \"off\" }, \"TLSConfig\": { \"Version\": [ \"TLSv1\", \"TLSv1.1\", \"TLSv1.2\", \"TLSv1.3\" ], \"CipherSuite\": \"loose-v2023\" }, \"OCSPStapling\": { \"Switch\": \"off\" }, \"HTTP2\": { \"Switch\": \"off\" }, \"QUIC\": { \"Switch\": \"off\" }, \"UpstreamHTTP2\": { \"Switch\": \"off\" }, \"IPv6\": { \"Switch\": \"off\" }, \"WebSocket\": { \"Switch\": \"off\", \"Timeout\": 30 }, \"PostMaxSize\": { \"Switch\": \"on\", \"MaxSize\": 838860800 }, \"ClientIPHeader\": { \"Switch\": \"off\" }, \"ClientIPCountry\": { \"Switch\": \"off\" }, \"gRPC\": { \"Switch\": \"off\" }, \"AccelerateMainland\": { \"Switch\": \"off\" }, \"StandardDebug\": { \"Switch\": \"off\" } }, \"Rules\": [] } }",
9494
+ "member": "string",
9495
+ "name": "Content",
9496
+ "output_required": false,
9497
+ "type": "string",
9498
+ "value_allowed_null": false
9499
+ },
9500
+ {
9501
+ "disabled": false,
9502
+ "document": "本次导入任务的开始时间。",
9503
+ "example": "2024-10-17 20:12:02",
9504
+ "member": "datetime_iso",
9505
+ "name": "ImportTime",
9506
+ "output_required": false,
9507
+ "type": "string",
9508
+ "value_allowed_null": false
9509
+ },
9510
+ {
9511
+ "disabled": false,
9512
+ "document": "本次导入任务的结束时间。",
9513
+ "example": "2024-10-17 20:14:30",
9514
+ "member": "datetime_iso",
9515
+ "name": "FinishTime",
9516
+ "output_required": false,
9517
+ "type": "string",
9518
+ "value_allowed_null": false
9519
+ },
9520
+ {
9521
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9522
+ "member": "string",
9523
+ "name": "RequestId",
9524
+ "type": "string"
9525
+ }
9526
+ ],
9527
+ "type": "object"
9528
+ },
9422
9529
  "DescribeZoneSettingRequest": {
9423
9530
  "document": "DescribeZoneSetting请求参数结构体",
9424
9531
  "members": [
@@ -10497,6 +10604,52 @@
10497
10604
  ],
10498
10605
  "usage": "both"
10499
10606
  },
10607
+ "ExportZoneConfigRequest": {
10608
+ "document": "ExportZoneConfig请求参数结构体",
10609
+ "members": [
10610
+ {
10611
+ "disabled": false,
10612
+ "document": "站点 ID。",
10613
+ "example": "zone-2zpqp7qztest",
10614
+ "member": "string",
10615
+ "name": "ZoneId",
10616
+ "required": true,
10617
+ "type": "string"
10618
+ },
10619
+ {
10620
+ "disabled": false,
10621
+ "document": "导出配置项的类型列表,不填表示导出所有类型的配置,当前支持的取值有:<li>L7AccelerationConfig:表示导出七层加速配置,对应控制台「站点加速-全局加速配置」和「站点加速-规则引擎」。</li>\n需注意:后续支持导出的类型会随着迭代增加,导出所有类型时需要注意导出文件大小,建议使用时指定需要导出的配置类型,以便控制请求响应包负载大小。",
10622
+ "example": "L7AccelerationConfig",
10623
+ "member": "string",
10624
+ "name": "Types",
10625
+ "required": false,
10626
+ "type": "list"
10627
+ }
10628
+ ],
10629
+ "type": "object"
10630
+ },
10631
+ "ExportZoneConfigResponse": {
10632
+ "document": "ExportZoneConfig返回参数结构体",
10633
+ "members": [
10634
+ {
10635
+ "disabled": false,
10636
+ "document": "导出的配置的具体内容。以 JSON 格式返回,按照 UTF-8 方式进行编码。配置内容可参考下方示例。",
10637
+ "example": "无",
10638
+ "member": "string",
10639
+ "name": "Content",
10640
+ "output_required": false,
10641
+ "type": "string",
10642
+ "value_allowed_null": false
10643
+ },
10644
+ {
10645
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10646
+ "member": "string",
10647
+ "name": "RequestId",
10648
+ "type": "string"
10649
+ }
10650
+ ],
10651
+ "type": "object"
10652
+ },
10500
10653
  "FailReason": {
10501
10654
  "document": "失败原因",
10502
10655
  "members": [
@@ -11536,6 +11689,52 @@
11536
11689
  ],
11537
11690
  "usage": "both"
11538
11691
  },
11692
+ "ImportZoneConfigRequest": {
11693
+ "document": "ImportZoneConfig请求参数结构体",
11694
+ "members": [
11695
+ {
11696
+ "disabled": false,
11697
+ "document": "站点 ID。",
11698
+ "example": "zone-2zpqp7qztest",
11699
+ "member": "string",
11700
+ "name": "ZoneId",
11701
+ "required": true,
11702
+ "type": "string"
11703
+ },
11704
+ {
11705
+ "disabled": false,
11706
+ "document": "待导入的配置内容。要求采用 JSON 格式,按照 UTF-8 方式进行编码。配置内容可通过站点配置导出接口(ExportZoneConfig)获取。您可以单独导入「站点加速-全局加速配置」或「站点加速-规则引擎」,传入对应的字段即可,详情可以参考下方示例。",
11707
+ "example": "无",
11708
+ "member": "string",
11709
+ "name": "Content",
11710
+ "required": true,
11711
+ "type": "string"
11712
+ }
11713
+ ],
11714
+ "type": "object"
11715
+ },
11716
+ "ImportZoneConfigResponse": {
11717
+ "document": "ImportZoneConfig返回参数结构体",
11718
+ "members": [
11719
+ {
11720
+ "disabled": false,
11721
+ "document": "表示该次导入配置的任务 Id,通过查询站点配置导入结果接口(DescribeZoneConfigImportResult)获取本次导入任务执行的结果。注意:导入任务 Id 仅支持查询最近 7 天的导入任务。",
11722
+ "example": "33mz68e4gwka",
11723
+ "member": "string",
11724
+ "name": "TaskId",
11725
+ "output_required": false,
11726
+ "type": "string",
11727
+ "value_allowed_null": false
11728
+ },
11729
+ {
11730
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11731
+ "member": "string",
11732
+ "name": "RequestId",
11733
+ "type": "string"
11734
+ }
11735
+ ],
11736
+ "type": "object"
11737
+ },
11539
11738
  "IncreasePlanQuotaRequest": {
11540
11739
  "document": "IncreasePlanQuota请求参数结构体",
11541
11740
  "members": [
@@ -846,6 +846,14 @@
846
846
  "title": "查询指定状态码的top流量数据"
847
847
  }
848
848
  ],
849
+ "DescribeZoneConfigImportResult": [
850
+ {
851
+ "document": "查询站点 zone-21xfqlh4qjee 下七层加速配置项的导入结果。",
852
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeZoneConfigImportResult\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh4qjee\",\n \"TaskId\": \"33mz68e4gwka\"\n}",
853
+ "output": "{\n \"Response\": {\n \"RequestId\": \"88215c08-67de-4c7d-974e-a14461816f5b\",\n \"Status\": \"success\",\n \"Message\": \"success\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\",\n \"ImportTime\": \"2024-10-13T23:58:00+08:00\",\n \"FinishTime\": \"2024-10-13T23:59:00+08:00\"\n }\n}",
854
+ "title": "查询配置导入结果"
855
+ }
856
+ ],
849
857
  "DescribeZoneSetting": [
850
858
  {
851
859
  "document": "",
@@ -886,6 +894,14 @@
886
894
  "title": "下载七层离线日志"
887
895
  }
888
896
  ],
897
+ "ExportZoneConfig": [
898
+ {
899
+ "document": "导出站点 zone-21xfqlh5qjee 下的七层加速配置。",
900
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportZoneConfig\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-21xfqlh5qjee\",\n \"Types\": [\n \"L7AccelerationConfig\"\n ]\n}",
901
+ "output": "{\n \"Response\": {\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches '.*'\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in ['.jpg']\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in ['.png']\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
902
+ "title": "导出站点配置"
903
+ }
904
+ ],
889
905
  "HandleFunctionRuntimeEnvironment": [
890
906
  {
891
907
  "document": "添加指定的环境变量列表到函数运行环境中。",
@@ -920,6 +936,26 @@
920
936
  "title": "认证站点"
921
937
  }
922
938
  ],
939
+ "ImportZoneConfig": [
940
+ {
941
+ "document": "导入站点 zone-m2kplohsdc4b 下的七层加速配置。",
942
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}, \\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\"\n}",
943
+ "output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
944
+ "title": "导入站点七层加速配置"
945
+ },
946
+ {
947
+ "document": "单独导入站点 zone-m2kplohsdc4b 下七层加速配置的全局加速配置。",
948
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"ZoneConfig\\\": {\\\"SmartRouting\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"Cache\\\": {\\\"CustomTime\\\": {\\\"Switch\\\": \\\"on\\\", \\\"CacheTime\\\": 604800}}, \\\"MaxAge\\\": {\\\"FollowOrigin\\\": \\\"on\\\", \\\"CacheTime\\\": 600}, \\\"CacheKey\\\": {\\\"FullURLCache\\\": \\\"off\\\", \\\"QueryString\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Action\\\": \\\"includeCustom\\\", \\\"Values\\\": [\\\"key1\\\", \\\"key2\\\"]}, \\\"IgnoreCase\\\": \\\"on\\\"}, \\\"CachePrefresh\\\": {\\\"Switch\\\": \\\"off\\\", \\\"CacheTimePercent\\\": 90}, \\\"OfflineCache\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"Compression\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Algorithms\\\": [\\\"brotli\\\", \\\"gzip\\\"]}, \\\"ImageOptimize\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"ForceRedirectHTTPS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"RedirectStatusCode\\\": 302}, \\\"HSTS\\\": {\\\"Switch\\\": \\\"on\\\", \\\"IncludeSubDomains\\\": \\\"on\\\", \\\"Timeout\\\": 16070400, \\\"Preload\\\": \\\"on\\\"}, \\\"TLSConfig\\\": {\\\"CipherSuite\\\": \\\"loose-v2023\\\", \\\"Version\\\": [\\\"TLSv1\\\", \\\"TLSv1.1\\\", \\\"TLSv1.2\\\", \\\"TLSv1.3\\\"]}, \\\"OCSPStapling\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"HTTP2\\\": {\\\"Switch\\\": \\\"on\\\"}, \\\"QUIC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"UpstreamHTTP2\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"IPv6\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"WebSocket\\\": {\\\"Switch\\\": \\\"on\\\", \\\"Timeout\\\": 30}, \\\"PostMaxSize\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 838860800}, \\\"ClientIPHeader\\\": {\\\"Switch\\\": \\\"off\\\", \\\"HeaderName\\\": \\\"\\\"}, \\\"ClientIPCountry\\\": {\\\"Switch\\\": \\\"on\\\", \\\"HeaderName\\\": \\\"EO-Client-IPCountry\\\"}, \\\"gRPC\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"AccelerateMainland\\\": {\\\"Switch\\\": \\\"off\\\"}, \\\"StandardDebug\\\": {\\\"Switch\\\": \\\"on\\\", \\\"AllowClientIPList\\\": [\\\"1.2.3.4\\\"], \\\"Expires\\\": \\\"2023-11-04T04:46:28Z\\\"}}\"\n}",
949
+ "output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
950
+ "title": "导入站点七层加速配置的站点加速配置"
951
+ },
952
+ {
953
+ "document": "单独导入站点 zone-m2kplohsdc4b 下七层加速配置的规则引擎配置。",
954
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ImportZoneConfig \n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-m2kplohsdc4b\",\n \"Content\": \"{\\\"FormatVersion\\\":\\\"1.0\\\",\\\"Rules\\\": [{\\\"RuleName\\\": \\\"未命名规则\\\", \\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.host} matches \\\".*\\\"\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"UpstreamURLRewrite\\\", \\\"Parameters\\\": {\\\"Type\\\": \\\"Path\\\", \\\"Action\\\": \\\"rmvPrefix\\\", \\\"Value\\\": \\\"/prefix\\\"}}], \\\"SubRules\\\": [{\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".jpg\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 524288000}}]}]}, {\\\"Branches\\\": [{\\\"Condition\\\": \\\"${http.request.file_extension} in [\\\".png\\\"]\\\", \\\"Actions\\\": [{\\\"Name\\\": \\\"PostMaxSize\\\", \\\"Parameters\\\": {\\\"Switch\\\": \\\"on\\\", \\\"MaxSize\\\": 209715200}}]}]}]}]}]}\"\n}",
955
+ "output": "{\n \"Response\": {\n \"TaskId\": \"33mz68e4gwka\",\n \"RequestId\": \"5e0a2b4e-dw6d-4dsa-ac39-1706cbf8a703\"\n }\n}",
956
+ "title": "导入站点七层加速配置的规则引擎配置"
957
+ }
958
+ ],
923
959
  "IncreasePlanQuota": [
924
960
  {
925
961
  "document": "为套餐 edgeone-2unuvzjmmn2q 增购 10 个站点数配额。",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1224.1
3
+ Version: 3.0.1225.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.1224
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1225
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介