tccli 3.0.1263.1__py2.py3-none-any.whl → 3.0.1265.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 (50) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +2 -2
  3. tccli/services/batch/v20170312/api.json +2 -2
  4. tccli/services/bh/v20230418/api.json +490 -5
  5. tccli/services/bh/v20230418/examples.json +2 -2
  6. tccli/services/cbs/v20170312/api.json +12 -2
  7. tccli/services/cbs/v20170312/examples.json +2 -2
  8. tccli/services/cdb/v20170320/api.json +2 -2
  9. tccli/services/cdb/v20170320/examples.json +5 -5
  10. tccli/services/cfw/cfw_client.py +0 -53
  11. tccli/services/cfw/v20190904/api.json +0 -163
  12. tccli/services/cfw/v20190904/examples.json +0 -8
  13. tccli/services/chdfs/v20201112/api.json +7 -7
  14. tccli/services/ckafka/v20190819/api.json +11 -2
  15. tccli/services/cls/v20201016/api.json +10 -1
  16. tccli/services/cvm/v20170312/api.json +2 -2
  17. tccli/services/cwp/cwp_client.py +69 -175
  18. tccli/services/cwp/v20180228/api.json +0 -374
  19. tccli/services/cwp/v20180228/examples.json +0 -16
  20. tccli/services/dsgc/v20190723/api.json +12 -3
  21. tccli/services/ess/v20201111/api.json +1 -1
  22. tccli/services/essbasic/v20210526/api.json +1 -1
  23. tccli/services/facefusion/v20220927/api.json +2 -2
  24. tccli/services/lighthouse/v20200324/api.json +84 -7
  25. tccli/services/lighthouse/v20200324/examples.json +2 -2
  26. tccli/services/live/v20180801/api.json +1 -1
  27. tccli/services/lkeap/v20240522/api.json +2 -2
  28. tccli/services/mna/v20210119/api.json +41 -41
  29. tccli/services/mongodb/v20190725/api.json +15 -15
  30. tccli/services/mongodb/v20190725/examples.json +5 -5
  31. tccli/services/monitor/v20180724/api.json +22 -20
  32. tccli/services/monitor/v20180724/examples.json +3 -3
  33. tccli/services/mps/v20190612/api.json +84 -8
  34. tccli/services/mqtt/mqtt_client.py +658 -75
  35. tccli/services/mqtt/v20240516/api.json +1038 -54
  36. tccli/services/mqtt/v20240516/examples.json +88 -0
  37. tccli/services/ocr/v20181119/api.json +52 -22
  38. tccli/services/ssl/ssl_client.py +122 -16
  39. tccli/services/ssl/v20191205/api.json +448 -2
  40. tccli/services/ssl/v20191205/examples.json +18 -2
  41. tccli/services/tccatalog/v20241024/api.json +22 -0
  42. tccli/services/tcr/v20190924/api.json +2 -2
  43. tccli/services/tmt/v20180321/api.json +1 -1
  44. tccli/services/trtc/v20190722/api.json +49 -51
  45. tccli/services/trtc/v20190722/examples.json +13 -13
  46. {tccli-3.0.1263.1.dist-info → tccli-3.0.1265.1.dist-info}/METADATA +2 -2
  47. {tccli-3.0.1263.1.dist-info → tccli-3.0.1265.1.dist-info}/RECORD +50 -50
  48. {tccli-3.0.1263.1.dist-info → tccli-3.0.1265.1.dist-info}/WHEEL +0 -0
  49. {tccli-3.0.1263.1.dist-info → tccli-3.0.1265.1.dist-info}/entry_points.txt +0 -0
  50. {tccli-3.0.1263.1.dist-info → tccli-3.0.1265.1.dist-info}/license_files/LICENSE +0 -0
@@ -1183,7 +1183,7 @@
1183
1183
  },
1184
1184
  {
1185
1185
  "disabled": false,
1186
- "document": "云硬盘大小,单位为GB。<br><li>如果传入`SnapshotId`则可不传`DiskSize`,此时新建云盘的大小为快照大小</li><br><li>如果传入`SnapshotId`同时传入`DiskSize`,则云盘大小必须大于或等于快照大小</li><br><li>云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。</li>",
1186
+ "document": "云硬盘大小,单位为GiB。<br><li>如果传入`SnapshotId`则可不传`DiskSize`,此时新建云盘的大小为快照大小</li><br><li>如果传入`SnapshotId`同时传入`DiskSize`,则云盘大小必须大于或等于快照大小</li><br><li>云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。</li>",
1187
1187
  "example": "500",
1188
1188
  "member": "uint64",
1189
1189
  "name": "DiskSize",
@@ -2584,7 +2584,7 @@
2584
2584
  },
2585
2585
  {
2586
2586
  "disabled": false,
2587
- "document": "云硬盘大小,单位GB。",
2587
+ "document": "云硬盘大小,单位GiB。",
2588
2588
  "example": "50",
2589
2589
  "member": "uint64",
2590
2590
  "name": "DiskSize",
@@ -2771,6 +2771,16 @@
2771
2771
  "output_required": true,
2772
2772
  "type": "bool",
2773
2773
  "value_allowed_null": true
2774
+ },
2775
+ {
2776
+ "disabled": false,
2777
+ "document": "云硬盘加密类型,值为ENCRYPT_V1和ENCRYPT_V2,分别表示第一代和第二代加密技术,两种加密技术互不兼容\n注意:此字段可能返回 null,表示取不到有效值。",
2778
+ "example": "ENCRYPT_V1",
2779
+ "member": "string",
2780
+ "name": "EncryptType",
2781
+ "output_required": false,
2782
+ "type": "string",
2783
+ "value_allowed_null": true
2774
2784
  }
2775
2785
  ],
2776
2786
  "usage": "out"
@@ -58,7 +58,7 @@
58
58
  ],
59
59
  "CreateDisks": [
60
60
  {
61
- "document": "新购云盘具体配置如下:云盘所在位置为广州二区,云盘大小50GB,云盘类型为普通云盘,所属项目ID为0,付费模式为预付费,购买时长1个月,通知过期且自动续费。",
61
+ "document": "新购云盘具体配置如下:云盘所在位置为广州二区,云盘大小50GiB,云盘类型为普通云盘,所属项目ID为0,付费模式为预付费,购买时长1个月,通知过期且自动续费。",
62
62
  "input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDisks\n<公共请求参数>\n\n{\n \"Placement\": {\n \"ProjectId\": \"0\",\n \"Zone\": \"ap-guangzhou-2\"\n },\n \"DiskChargeType\": \"PREPAID\",\n \"DiskCount\": \"1\",\n \"DiskType\": \"CLOUD_HSSD\",\n \"ThroughputPerformance\": \"100\",\n \"DiskSize\": \"500\",\n \"DiskChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": \"1\"\n }\n}",
63
63
  "output": "{\n \"Response\": {\n \"DiskIdSet\": [\n \"disk-lzrg2pwi\"\n ],\n \"RequestId\": \"6a57da9a-2049-7182-2de3-5a1f8014ccfd\"\n }\n}",
64
64
  "title": "使用基本参数购买"
@@ -70,7 +70,7 @@
70
70
  "title": "根据快照新建云硬盘"
71
71
  },
72
72
  {
73
- "document": "在广州三区创建一块云硬盘,云盘类型为高性能云硬盘,大小100GB,付费类型为按小时后付费。",
73
+ "document": "在广州三区创建一块云硬盘,云盘类型为高性能云硬盘,大小100GiB,付费类型为按小时后付费。",
74
74
  "input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDisks\n<公共请求参数>\n\n{\n \"DiskName\": \"postPayDisk\",\n \"Placement\": {\n \"ProjectId\": \"0\",\n \"Zone\": \"ap-guangzhou-3\"\n },\n \"DiskChargeType\": \"POSTPAID_BY_HOUR\",\n \"DiskCount\": \"1\",\n \"DiskType\": \"CLOUD_PREMIUM\",\n \"DiskSize\": \"100\"\n}",
75
75
  "output": "{\n \"Response\": {\n \"DiskIdSet\": [\n \"disk-ecjc4cpw\"\n ],\n \"RequestId\": \"fe2274fa-eaec-4009-807b-6ffc00963fec\"\n }\n}",
76
76
  "title": "创建按小时后付费云盘"
@@ -5898,7 +5898,7 @@
5898
5898
  {
5899
5899
  "disabled": false,
5900
5900
  "document": "只读实例信息。购买只读实例时,该参数必传。",
5901
- "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": \"5\",\"MinRoInGroup\": \"1\",\"RoOfflineDelay\": \"1\"}",
5901
+ "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}",
5902
5902
  "member": "RoGroup",
5903
5903
  "name": "RoGroup",
5904
5904
  "required": false,
@@ -6323,7 +6323,7 @@
6323
6323
  {
6324
6324
  "disabled": false,
6325
6325
  "document": "只读实例参数。购买只读实例时,该参数必传。",
6326
- "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": \"5\",\"MinRoInGroup\": \"1\",\"RoOfflineDelay\": \"1\"}",
6326
+ "example": "{\"RoGroupMode\": \"allinone\",\"RoGroupName\": \"jersey\",\"RoMaxDelayTime\": 5,\"MinRoInGroup\": 1,\"RoOfflineDelay\": 1}",
6327
6327
  "member": "RoGroup",
6328
6328
  "name": "RoGroup",
6329
6329
  "required": false,
@@ -197,13 +197,13 @@
197
197
  "CreateDBInstance": [
198
198
  {
199
199
  "document": "购买主实例",
200
- "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": \"0\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": \"1\",\n \"Period\": \"1\",\n \"Volume\": \"25\",\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": \"1000\",\n \"InstanceNodes\": \"2\"\n}",
200
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"Period\": 1,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"InstanceNodes\": 2\n}",
201
201
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-pn6gd5jp\"\n ],\n \"DealIds\": [\n \"20171201110011\"\n ]\n }\n}",
202
202
  "title": "购买主实例"
203
203
  },
204
204
  {
205
205
  "document": "购买只读实例",
206
- "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\": \"5\",\n \"MinRoInGroup\": \"1\",\n \"RoOfflineDelay\": \"1\"\n },\n \"GoodsNum\": \"1\",\n \"InstanceRole\": \"ro\",\n \"MasterInstanceId\": \"cdb-fn3f9xpx\",\n \"Period\": \"1\",\n \"Volume\": \"100\",\n \"Memory\": \"4000\"\n}",
206
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstance\n<公共请求参数>\n\n{\n \"RoGroup\": {\n \"RoGroupMode\": \"allinone\",\n \"RoGroupName\": \"jersey\",\n \"RoMaxDelayTime\": 5,\n \"MinRoInGroup\": 1,\n \"RoOfflineDelay\": 1\n },\n \"GoodsNum\": 1,\n \"InstanceRole\": \"ro\",\n \"MasterInstanceId\": \"cdb-fn3f9xpx\",\n \"Period\": 1,\n \"Volume\": 100,\n \"Memory\": 4000\n}",
207
207
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"DealIds\": [\n \"20171205110051\"\n ],\n \"InstanceIds\": [\n \"cdbro-hlpl4ik9\"\n ]\n }\n}",
208
208
  "title": "购买只读实例"
209
209
  }
@@ -211,7 +211,7 @@
211
211
  "CreateDBInstanceHour": [
212
212
  {
213
213
  "document": "创建云数据库实例(按量计费)",
214
- "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": \"0\",\n \"SlaveZone\": \"ap-guangzhou-3\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": \"1\",\n \"DeployMode\": \"0\",\n \"Volume\": \"25\",\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": \"1000\",\n \"ProtectMode\": \"0\"\n}",
214
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDBInstanceHour\n<公共请求参数>\n\n{\n \"ResourceTags\": [\n {\n \"TagKey\": \"march\",\n \"TagValue\": [\n \"march1\"\n ]\n }\n ],\n \"Zone\": \"ap-guangzhou-3\",\n \"UniqVpcId\": \"vpc-0akbol5v\",\n \"ProjectId\": 0,\n \"SlaveZone\": \"ap-guangzhou-3\",\n \"InstanceRole\": \"master\",\n \"GoodsNum\": 1,\n \"DeployMode\": 0,\n \"Volume\": 25,\n \"EngineVersion\": \"5.6\",\n \"UniqSubnetId\": \"subnet-fyrtjbqw\",\n \"Memory\": 1000,\n \"ProtectMode\": 0\n}",
215
215
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceIds\": [\n \"cdb-03brtubb\"\n ],\n \"DealIds\": [\n \"20171201160000002670226599824833\"\n ]\n }\n}",
216
216
  "title": "创建云数据库实例(按量计费)"
217
217
  }
@@ -631,13 +631,13 @@
631
631
  "DescribeDBPrice": [
632
632
  {
633
633
  "document": "查询数据库实例新购价格",
634
- "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\": \"1\",\n \"PayType\": \"PRE_PAID\",\n \"Period\": \"24\",\n \"Volume\": \"25\",\n \"Memory\": \"1000\"\n}",
634
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-1\",\n \"GoodsNum\": 1,\n \"PayType\": \"PRE_PAID\",\n \"Period\": 24,\n \"Volume\": 25,\n \"Memory\": 1000\n}",
635
635
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}",
636
636
  "title": "查询数据库实例新购价格"
637
637
  },
638
638
  {
639
639
  "document": "查询数据库实例续费价格",
640
- "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\": \"24\"\n}",
640
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBPrice\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6no119yd\",\n \"Period\": 24\n}",
641
641
  "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Currency\": \"CNY\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}",
642
642
  "title": "查询数据库实例续费价格"
643
643
  }
@@ -3449,58 +3449,6 @@ def doModifySequenceRules(args, parsed_globals):
3449
3449
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
3450
 
3451
3451
 
3452
- def doAddAcRule(args, parsed_globals):
3453
- g_param = parse_global_arg(parsed_globals)
3454
-
3455
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3456
- cred = credential.CVMRoleCredential()
3457
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3458
- cred = credential.STSAssumeRoleCredential(
3459
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3460
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3461
- )
3462
- 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):
3463
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3464
- else:
3465
- cred = credential.Credential(
3466
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3467
- )
3468
- http_profile = HttpProfile(
3469
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3470
- reqMethod="POST",
3471
- endpoint=g_param[OptionsDefine.Endpoint],
3472
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3473
- )
3474
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3475
- if g_param[OptionsDefine.Language]:
3476
- profile.language = g_param[OptionsDefine.Language]
3477
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3478
- client = mod.CfwClient(cred, g_param[OptionsDefine.Region], profile)
3479
- client._sdkVersion += ("_CLI_" + __version__)
3480
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
- model = models.AddAcRuleRequest()
3482
- model.from_json_string(json.dumps(args))
3483
- start_time = time.time()
3484
- while True:
3485
- rsp = client.AddAcRule(model)
3486
- result = rsp.to_json_string()
3487
- try:
3488
- json_obj = json.loads(result)
3489
- except TypeError as e:
3490
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3491
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3492
- break
3493
- cur_time = time.time()
3494
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3495
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3496
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3497
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3498
- else:
3499
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3500
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3501
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
-
3503
-
3504
3452
  def doModifySequenceAclRules(args, parsed_globals):
3505
3453
  g_param = parse_global_arg(parsed_globals)
3506
3454
 
@@ -5970,7 +5918,6 @@ ACTION_MAP = {
5970
5918
  "ModifyAssetScan": doModifyAssetScan,
5971
5919
  "DeleteIdsWhiteRule": doDeleteIdsWhiteRule,
5972
5920
  "ModifySequenceRules": doModifySequenceRules,
5973
- "AddAcRule": doAddAcRule,
5974
5921
  "ModifySequenceAclRules": doModifySequenceAclRules,
5975
5922
  "DescribeRuleOverview": doDescribeRuleOverview,
5976
5923
  "DescribeIPStatusList": doDescribeIPStatusList,
@@ -1,12 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "AddAcRule": {
4
- "document": "接口不再使用,已有新接口AddAclRule\n\n添加互联网边界规则",
5
- "input": "AddAcRuleRequest",
6
- "name": "添加互联网边界规则(不再使用,已迁移到新接口AddAclRule)",
7
- "output": "AddAcRuleResponse",
8
- "status": "deprecated"
9
- },
10
3
  "AddAclRule": {
11
4
  "document": "添加互联网边界访问控制规则",
12
5
  "input": "AddAclRuleRequest",
@@ -1045,162 +1038,6 @@
1045
1038
  ],
1046
1039
  "usage": "out"
1047
1040
  },
1048
- "AddAcRuleRequest": {
1049
- "document": "AddAcRule请求参数结构体",
1050
- "members": [
1051
- {
1052
- "disabled": false,
1053
- "document": "-1表示优先级最低,1表示优先级最高",
1054
- "example": "-1",
1055
- "member": "string",
1056
- "name": "OrderIndex",
1057
- "required": true,
1058
- "type": "string"
1059
- },
1060
- {
1061
- "disabled": false,
1062
- "document": "访问控制策略中设置的流量通过云防火墙的方式。取值:\naccept:放行\ndrop:拒绝\nlog:观察",
1063
- "example": "accept",
1064
- "member": "string",
1065
- "name": "RuleAction",
1066
- "required": true,
1067
- "type": "string"
1068
- },
1069
- {
1070
- "disabled": false,
1071
- "document": "访问控制策略的流量方向。取值:\nin:外对内流量访问控制\nout:内对外流量访问控制",
1072
- "example": "in",
1073
- "member": "string",
1074
- "name": "Direction",
1075
- "required": true,
1076
- "type": "string"
1077
- },
1078
- {
1079
- "disabled": false,
1080
- "document": "访问控制策略的描述信息",
1081
- "example": "默认拒绝所有流量",
1082
- "member": "string",
1083
- "name": "Description",
1084
- "required": true,
1085
- "type": "string"
1086
- },
1087
- {
1088
- "disabled": false,
1089
- "document": "访问控制策略中的源地址类型。取值:\nnet:源IP或网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商",
1090
- "example": "net",
1091
- "member": "string",
1092
- "name": "SourceType",
1093
- "required": true,
1094
- "type": "string"
1095
- },
1096
- {
1097
- "disabled": false,
1098
- "document": "访问控制策略中的源地址。取值:\n当SourceType为net时,SourceContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当SourceType为template时,SourceContent为源地址模板id。\n\n当SourceType为location时,SourceContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当SourceType为instance时,SourceContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个",
1099
- "example": "1.1.1.1",
1100
- "member": "string",
1101
- "name": "SourceContent",
1102
- "required": true,
1103
- "type": "string"
1104
- },
1105
- {
1106
- "disabled": false,
1107
- "document": "访问控制策略中的目的地址类型。取值:\nnet:目的IP或者网段(IP或者CIDR)\nlocation:源区域\ntemplate:云防火墙地址模板\ninstance:实例id\nvendor:云厂商\ndomain: 域名或者ip",
1108
- "example": "domain",
1109
- "member": "string",
1110
- "name": "DestType",
1111
- "required": true,
1112
- "type": "string"
1113
- },
1114
- {
1115
- "disabled": false,
1116
- "document": "访问控制策略中的目的地址。取值:\n当DestType为net时,DestContent为源IP地址或者CIDR地址。\n例如:1.1.1.0/24\n\n当DestType为template时,DestContent为源地址模板id。\n\n当DestType为location时,DestContent为源区域。\n例如[\"BJ11\", \"ZB\"]\n\n当DestType为instance时,DestContent为该实例id对应的公网ip。\n例如ins-xxxxx\n\n当DestType为domain时,DestContent为该实例id对应的域名规则。\n例如*.qq.com\n\n当DestType为vendor时,DestContent为所选择厂商的公网ip列表。\n例如:aws,huawei,tencent,aliyun,azure,all代表以上五个",
1117
- "example": "*.qq.com",
1118
- "member": "string",
1119
- "name": "DestContent",
1120
- "required": true,
1121
- "type": "string"
1122
- },
1123
- {
1124
- "disabled": false,
1125
- "document": "访问控制策略的端口。取值:\n-1/-1:全部端口\n80,443:80或者443",
1126
- "example": "-1/-1",
1127
- "member": "string",
1128
- "name": "Port",
1129
- "required": true,
1130
- "type": "string"
1131
- },
1132
- {
1133
- "disabled": false,
1134
- "document": "访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP",
1135
- "example": "TCP",
1136
- "member": "string",
1137
- "name": "Protocol",
1138
- "required": false,
1139
- "type": "string"
1140
- },
1141
- {
1142
- "disabled": false,
1143
- "document": "七层协议,取值:\nHTTP/HTTPS\nTLS/SSL",
1144
- "example": "HTTP",
1145
- "member": "string",
1146
- "name": "ApplicationName",
1147
- "required": false,
1148
- "type": "string"
1149
- },
1150
- {
1151
- "disabled": false,
1152
- "document": "是否启用规则,默认为启用,取值:\ntrue为启用,false为不启用",
1153
- "example": "true",
1154
- "member": "string",
1155
- "name": "Enable",
1156
- "required": false,
1157
- "type": "string"
1158
- }
1159
- ],
1160
- "type": "object"
1161
- },
1162
- "AddAcRuleResponse": {
1163
- "document": "AddAcRule返回参数结构体",
1164
- "members": [
1165
- {
1166
- "disabled": false,
1167
- "document": "创建成功后返回新策略的uuid",
1168
- "example": "8888",
1169
- "member": "int64",
1170
- "name": "RuleUuid",
1171
- "output_required": true,
1172
- "type": "int",
1173
- "value_allowed_null": false
1174
- },
1175
- {
1176
- "disabled": false,
1177
- "document": "0代表成功,-1代表失败",
1178
- "example": "0",
1179
- "member": "int64",
1180
- "name": "ReturnCode",
1181
- "output_required": true,
1182
- "type": "int",
1183
- "value_allowed_null": false
1184
- },
1185
- {
1186
- "disabled": false,
1187
- "document": "success代表成功,failed代表失败",
1188
- "example": "success",
1189
- "member": "string",
1190
- "name": "ReturnMsg",
1191
- "output_required": true,
1192
- "type": "string",
1193
- "value_allowed_null": false
1194
- },
1195
- {
1196
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1197
- "member": "string",
1198
- "name": "RequestId",
1199
- "type": "string"
1200
- }
1201
- ],
1202
- "type": "object"
1203
- },
1204
1041
  "AddAclRuleRequest": {
1205
1042
  "document": "AddAclRule请求参数结构体",
1206
1043
  "members": [
@@ -1,13 +1,5 @@
1
1
  {
2
2
  "actions": {
3
- "AddAcRule": [
4
- {
5
- "document": "",
6
- "input": "POST / HTTP/1.1\nHost: cfw.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddAcRule\n<公共请求参数>\n\n{\n \"OrderIndex\": \"-1\",\n \"Description\": \"api test1\",\n \"SourceType\": \"location\",\n \"SourceContent\": \"cq50,sh31,tj12,bj11\",\n \"DestType\": \"net\",\n \"DestContent\": \"0.0.0.0/0\",\n \"Enable\": \"true\",\n \"Direction\": \"in\",\n \"RuleAction\": \"accept\",\n \"Port\": \"-1/-1\",\n \"Protocol\": \"tcp\"\n}",
7
- "output": "{\n \"Response\": {\n \"RuleUuid\": 8888,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"ReturnCode\": 0,\n \"ReturnMsg\": \"success\"\n }\n}",
8
- "title": "添加互联网边界规则"
9
- }
10
- ],
11
3
  "AddAclRule": [
12
4
  {
13
5
  "document": "添加互联网边界访问控制规则",
@@ -462,13 +462,13 @@
462
462
  "members": [
463
463
  {
464
464
  "disabled": false,
465
- "document": "权限规则列表\n注意:此字段可能返回 null,表示取不到有效值。",
465
+ "document": "权限规则列表",
466
466
  "example": "无",
467
467
  "member": "AccessRule",
468
468
  "name": "AccessRules",
469
- "required": true,
469
+ "output_required": true,
470
470
  "type": "list",
471
- "value_allowed_null": true
471
+ "value_allowed_null": false
472
472
  },
473
473
  {
474
474
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -1456,23 +1456,23 @@
1456
1456
  },
1457
1457
  {
1458
1458
  "disabled": false,
1459
- "document": "是否打开Ranger地址校验\n注意:此字段可能返回 null,表示取不到有效值。",
1459
+ "document": "是否打开Ranger地址校验",
1460
1460
  "example": "false",
1461
1461
  "member": "bool",
1462
1462
  "name": "EnableRanger",
1463
1463
  "output_required": true,
1464
1464
  "type": "bool",
1465
- "value_allowed_null": true
1465
+ "value_allowed_null": false
1466
1466
  },
1467
1467
  {
1468
1468
  "disabled": false,
1469
- "document": "Ranger地址列表\n注意:此字段可能返回 null,表示取不到有效值。",
1469
+ "document": "Ranger地址列表",
1470
1470
  "example": "[\"127.0.0.1:8080\"]",
1471
1471
  "member": "string",
1472
1472
  "name": "RangerServiceAddresses",
1473
1473
  "output_required": true,
1474
1474
  "type": "list",
1475
- "value_allowed_null": true
1475
+ "value_allowed_null": false
1476
1476
  }
1477
1477
  ],
1478
1478
  "usage": "out"
@@ -13612,8 +13612,8 @@
13612
13612
  },
13613
13613
  {
13614
13614
  "disabled": false,
13615
- "document": "升配Rebalance时间 参数已废弃,忽略不填!!!",
13616
- "example": "20",
13615
+ "document": "用于修改升级版本或升配定时任务的执行时间,Unix时间戳,精确到秒",
13616
+ "example": "1566144000",
13617
13617
  "member": "int64",
13618
13618
  "name": "RebalanceTime",
13619
13619
  "required": false,
@@ -13645,6 +13645,15 @@
13645
13645
  "name": "MaxMessageByte",
13646
13646
  "required": false,
13647
13647
  "type": "int"
13648
+ },
13649
+ {
13650
+ "disabled": false,
13651
+ "document": "集群topic默认 unclean.leader.election.enable配置: 1 开启 0 关闭",
13652
+ "example": "1",
13653
+ "member": "int64",
13654
+ "name": "UncleanLeaderElectionEnable",
13655
+ "required": false,
13656
+ "type": "int"
13648
13657
  }
13649
13658
  ],
13650
13659
  "type": "object"
@@ -5628,7 +5628,7 @@
5628
5628
  },
5629
5629
  {
5630
5630
  "disabled": false,
5631
- "document": "生命周期,单位天,标准存储取值范围1\\~3600,低频存储取值范围7\\~3600天。取值为3640时代表永久保存。\n不传此值,默认获取该日志主题对应日志集的Period值(当获取失败时默认为30天)。",
5631
+ "document": "存储时间,单位天。\n- 日志接入标准存储时,支持13600天,值为3640时代表永久保存。\n- 日志接入低频存储时,支持73600天,值为3640时代表永久保存。",
5632
5632
  "example": "30",
5633
5633
  "member": "int64",
5634
5634
  "name": "Period",
@@ -5653,6 +5653,15 @@
5653
5653
  "required": false,
5654
5654
  "type": "int"
5655
5655
  },
5656
+ {
5657
+ "disabled": false,
5658
+ "document": "主题自定义ID,格式为:用户自定义部分-APPID。未填写该参数时将自动生成ID。\n- 用户自定义部分仅支持小写字母、数字和-,且不能以-开头和结尾,长度为3至40字符\n- APPID可在https://console.cloud.tencent.com/developer页面查询",
5659
+ "example": "user-define-233435352",
5660
+ "member": "string",
5661
+ "name": "TopicId",
5662
+ "required": false,
5663
+ "type": "string"
5664
+ },
5656
5665
  {
5657
5666
  "disabled": false,
5658
5667
  "document": "免鉴权开关。 false:关闭; true:开启。默认为false。\n开启后将支持指定操作匿名访问该日志主题。详情请参见[日志主题](https://cloud.tencent.com/document/product/614/41035)。",
@@ -2661,7 +2661,7 @@
2661
2661
  },
2662
2662
  {
2663
2663
  "disabled": false,
2664
- "document": "数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID,暂时不支持该参数。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
2664
+ "document": "数据盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
2665
2665
  "example": "disk-ciezoimt",
2666
2666
  "member": "string",
2667
2667
  "name": "DiskId",
@@ -11270,7 +11270,7 @@
11270
11270
  },
11271
11271
  {
11272
11272
  "disabled": false,
11273
- "document": "系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
11273
+ "document": "系统盘ID。\n该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。",
11274
11274
  "example": "disk-xyzw1234",
11275
11275
  "member": "string",
11276
11276
  "name": "DiskId",