tccli 3.0.1168.1__py2.py3-none-any.whl → 3.0.1170.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +18 -0
- tccli/services/cls/cls_client.py +224 -12
- tccli/services/cls/v20201016/api.json +346 -6
- tccli/services/cls/v20201016/examples.json +32 -0
- tccli/services/cwp/cwp_client.py +118 -65
- tccli/services/cwp/v20180228/api.json +135 -2
- tccli/services/cwp/v20180228/examples.json +8 -0
- tccli/services/emr/emr_client.py +163 -4
- tccli/services/emr/v20190103/api.json +880 -11
- tccli/services/emr/v20190103/examples.json +24 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/ioa/v20220601/api.json +5 -5
- tccli/services/organization/organization_client.py +167 -8
- tccli/services/organization/v20210331/api.json +307 -0
- tccli/services/organization/v20210331/examples.json +24 -0
- tccli/services/pts/v20210728/api.json +10 -10
- tccli/services/pts/v20210728/examples.json +14 -14
- tccli/services/smh/smh_client.py +281 -16
- tccli/services/smh/v20210712/api.json +806 -2
- tccli/services/smh/v20210712/examples.json +40 -0
- tccli/services/tcss/v20201101/api.json +156 -53
- tccli/services/tcss/v20201101/examples.json +39 -9
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +71 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +7 -7
- tccli/services/vod/v20180717/api.json +12 -0
- tccli/services/waf/v20180125/api.json +12 -6
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1170.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1170.1.dist-info}/RECORD +35 -35
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1170.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1170.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1168.1.dist-info → tccli-3.0.1170.1.dist-info}/license_files/LICENSE +0 -0
@@ -36,6 +36,12 @@
|
|
36
36
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddComplianceAssetPolicySetToWhitelist\n<公共请求参数>\n\n{\n \"AssetPolicySetList\": [\n {\n \"CustomerPolicyItemIdSet\": [\n 1\n ],\n \"CustomerAssetItemId\": 1\n }\n ]\n}",
|
37
37
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
38
38
|
"title": "忽略检测项+资产列表"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"document": "忽略资产未通过检测项",
|
42
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddComplianceAssetPolicySetToWhitelist\n<公共请求参数>\n\n{\n \"AssetPolicySetList\": [\n {\n \"CustomerAssetItemId\": 2202462,\n \"CustomerPolicyItemIdSet\": [\n 2809\n ]\n }\n ],\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
43
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5728fa7b-e88a-4cb0-aabb-a403c470ca36\"\n }\n}",
|
44
|
+
"title": "忽略资产未通过检测项"
|
39
45
|
}
|
40
46
|
],
|
41
47
|
"AddCompliancePolicyAssetSetToWhitelist": [
|
@@ -518,6 +524,12 @@
|
|
518
524
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteComplianceAssetPolicySetFromWhitelist\n<公共请求参数>\n\n{\n \"AssetItemId\": 10001,\n \"CustomerPolicyItemIdSet\": [\n 10001,\n 10002\n ]\n}",
|
519
525
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
520
526
|
"title": "忽略检测项+资产列表"
|
527
|
+
},
|
528
|
+
{
|
529
|
+
"document": "取消资产忽略项",
|
530
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteComplianceAssetPolicySetFromWhitelist\n<公共请求参数>\n\n{\n \"AssetItemId\": 2202462,\n \"CustomerPolicyItemIdSet\": [\n 2809\n ],\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
531
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"925e6419-1fb8-4169-a96c-020e3ae9171e\"\n }\n}",
|
532
|
+
"title": "取消资产忽略项"
|
521
533
|
}
|
522
534
|
],
|
523
535
|
"DeleteCompliancePolicyAssetSetFromWhitelist": [
|
@@ -1216,10 +1228,10 @@
|
|
1216
1228
|
],
|
1217
1229
|
"DescribeComplianceAssetDetailInfo": [
|
1218
1230
|
{
|
1219
|
-
"document": "",
|
1220
|
-
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeComplianceAssetDetailInfo\n<公共请求参数>\n\n{\n \"CustomerAssetId\":
|
1221
|
-
"output": "{\n \"Response\": {\n \"
|
1222
|
-
"title": "
|
1231
|
+
"document": "请求资产详细信息",
|
1232
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeComplianceAssetDetailInfo\n<公共请求参数>\n\n{\n \"CustomerAssetId\": 2202462,\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
1233
|
+
"output": "{\n \"Response\": {\n \"AssetDetailInfo\": {\n \"AssetCreateTime\": \"2024-07-24 11:32:45\",\n \"AssetName\": \"my-elasticsearch-container\",\n \"AssetStatus\": \"ASSET_STOPPED\",\n \"AssetType\": \"ASSET_CONTAINER\",\n \"CheckResult\": \"RESULT_FAILED\",\n \"CheckStatus\": \"CHECK_FINISHED\",\n \"CustomerAssetId\": 2202462,\n \"FailedPolicyItemCount\": 7,\n \"HostIP\": \"172.16.49.104\",\n \"HostName\": \"VM-49-104-centos\",\n \"LastCheckTime\": \"2024-07-24 11:17:15\",\n \"NodeName\": \"云镜漏洞测试机-目标机器\",\n \"PassedPolicyItemCount\": 17\n },\n \"ContainerDetailInfo\": {\n \"ContainerId\": \"e822238a07e0\",\n \"PodName\": \"\"\n },\n \"HostDetailInfo\": {\n \"ContainerdVersion\": \"\",\n \"DockerVersion\": \"\",\n \"K8SVersion\": \"\"\n },\n \"ImageDetailInfo\": {\n \"ImageId\": \"\",\n \"ImageName\": \"\",\n \"ImageTag\": \"\",\n \"Repository\": \"\"\n },\n \"K8SDetailInfo\": {\n \"ClusterName\": \"\",\n \"ClusterVersion\": \"\"\n },\n \"RequestId\": \"ae46673b-3930-4874-9144-a514653d232c\"\n }\n}",
|
1234
|
+
"title": "请求资产详细信息"
|
1223
1235
|
}
|
1224
1236
|
],
|
1225
1237
|
"DescribeComplianceAssetList": [
|
@@ -1232,10 +1244,10 @@
|
|
1232
1244
|
],
|
1233
1245
|
"DescribeComplianceAssetPolicyItemList": [
|
1234
1246
|
{
|
1235
|
-
"document": "",
|
1236
|
-
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeComplianceAssetPolicyItemList\n<公共请求参数>\n\n{\n \"CustomerAssetId\":
|
1237
|
-
"output": "{\n \"Response\": {\n \"
|
1238
|
-
"title": "
|
1247
|
+
"document": "请求资产检测项列表",
|
1248
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeComplianceAssetPolicyItemList\n<公共请求参数>\n\n{\n \"CustomerAssetId\": 2202462,\n \"Offset\": 0,\n \"Limit\": 3,\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
1249
|
+
"output": "{\n \"Response\": {\n \"AssetPolicyItemList\": [\n {\n \"BasePolicyItemId\": 142,\n \"BenchmarkStandardId\": 1,\n \"BenchmarkStandardName\": \"CIS Docker\",\n \"Category\": \"CATEGORY_DOCKER_RUNTIME\",\n \"CheckResult\": \"RESULT_PASSED\",\n \"CheckStatus\": \"CHECK_FINISHED\",\n \"CustomerPolicyItemId\": 2809,\n \"FixSuggestion\": \"使用--health-cmd和其他参数运行容器。 例如,docker run -d --health-cmd ='stat /etc/passwd || exit1'nginx。\",\n \"LastCheckTime\": \"2024-07-24 11:12:16\",\n \"Name\": \"检查容器运行时的健康状态\",\n \"RiskLevel\": \"1\",\n \"VerifyInfo\": \"e822238a07e0d193a12c0608f2d821812664d3d9cf5871cc9bedc9eab562e602:Healthcheck=null\\n\",\n \"WhitelistId\": 0\n },\n {\n \"BasePolicyItemId\": 141,\n \"BenchmarkStandardId\": 1,\n \"BenchmarkStandardName\": \"CIS Docker\",\n \"Category\": \"CATEGORY_DOCKER_RUNTIME\",\n \"CheckResult\": \"RESULT_PASSED\",\n \"CheckStatus\": \"CHECK_FINISHED\",\n \"CustomerPolicyItemId\": 2808,\n \"FixSuggestion\": \"如无必须,不要使用 --cgroup-parent 选项在docker运行。\",\n \"LastCheckTime\": \"2024-07-24 11:12:16\",\n \"Name\": \"确保cgroup安全使用\",\n \"RiskLevel\": \"1\",\n \"VerifyInfo\": \"e822238a07e0d193a12c0608f2d821812664d3d9cf5871cc9bedc9eab562e602:CgroupParent=\\n\",\n \"WhitelistId\": 0\n },\n {\n \"BasePolicyItemId\": 140,\n \"BenchmarkStandardId\": 1,\n \"BenchmarkStandardName\": \"CIS Docker\",\n \"Category\": \"CATEGORY_DOCKER_RUNTIME\",\n \"CheckResult\": \"RESULT_PASSED\",\n \"CheckStatus\": \"CHECK_FINISHED\",\n \"CustomerPolicyItemId\": 2807,\n \"FixSuggestion\": \"在docker exec命令中不要使用--privileged选项。\",\n \"LastCheckTime\": \"2024-07-24 11:12:16\",\n \"Name\": \"确保docker exec命令不能使用特权选项\",\n \"RiskLevel\": \"2\",\n \"VerifyInfo\": \"e822238a07e0d193a12c0608f2d821812664d3d9cf5871cc9bedc9eab562e602:ExecIDs=null\\n\",\n \"WhitelistId\": 0\n }\n ],\n \"RequestId\": \"dc08e10e-5ac8-4e94-9321-6c2f89d8ed5c\",\n \"TotalCount\": 24\n }\n}",
|
1250
|
+
"title": "请求资产检测项列表"
|
1239
1251
|
}
|
1240
1252
|
],
|
1241
1253
|
"DescribeCompliancePeriodTaskList": [
|
@@ -1282,7 +1294,7 @@
|
|
1282
1294
|
{
|
1283
1295
|
"document": "",
|
1284
1296
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeComplianceTaskPolicyItemSummaryList\n<公共请求参数>\n\n{\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
1285
|
-
"output": "{\n \"Response\": {\n \"
|
1297
|
+
"output": "{\n \"Response\": {\n \"TaskId\": 1,\n \"TotalCount\": 1,\n \"PolicyItemSummaryList\": [\n {\n \"CustomerPolicyItemId\": 1,\n \"BasePolicyItemId\": 1,\n \"Name\": \"abc\",\n \"Category\": \"abc\",\n \"BenchmarkStandardName\": \"abc\",\n \"RiskLevel\": \"abc\",\n \"AssetType\": \"abc\",\n \"LastCheckTime\": \"2020-09-22 00:00:00\",\n \"CheckStatus\": \"abc\",\n \"CheckResult\": \"abc\",\n \"PassedAssetCount\": 1,\n \"FailedAssetCount\": 1,\n \"WhitelistId\": 1,\n \"FixSuggestion\": \"abc\",\n \"BenchmarkStandardId\": 1,\n \"ApplicableVersion\": \"abc\",\n \"Description\": \"abc\",\n \"AuditProcedure\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
1286
1298
|
"title": "查询上次任务的检测项的汇总信息列表"
|
1287
1299
|
}
|
1288
1300
|
],
|
@@ -2692,6 +2704,12 @@
|
|
2692
2704
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceAssets\n<公共请求参数>\n\n{\n \"CustomerAssetIdSet\": [\n 123,\n 456,\n 789\n ]\n}",
|
2693
2705
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxx\",\n \"TaskId\": 123\n }\n}",
|
2694
2706
|
"title": "重新扫描指定的资产"
|
2707
|
+
},
|
2708
|
+
{
|
2709
|
+
"document": "检测资产",
|
2710
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceAssets\n<公共请求参数>\n\n{\n \"CustomerAssetIdSet\": [\n 2202462\n ],\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
2711
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"c8dda80e-f4bc-4a3a-a165-b81e4e4c9cb2\",\n \"TaskId\": 2535\n }\n}",
|
2712
|
+
"title": "检测资产"
|
2695
2713
|
}
|
2696
2714
|
],
|
2697
2715
|
"ScanComplianceAssetsByPolicyItem": [
|
@@ -2700,6 +2718,12 @@
|
|
2700
2718
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceAssetsByPolicyItem\n<公共请求参数>\n\n{\n \"CustomerPolicyItemId\": 10001,\n \"CustomerAssetIdSet\": [\n 123,\n 456,\n 789\n ]\n}",
|
2701
2719
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxx\",\n \"TaskId\": 123\n }\n}",
|
2702
2720
|
"title": "用指定的检测项重新检测选定的资产"
|
2721
|
+
},
|
2722
|
+
{
|
2723
|
+
"document": "检测策略下资产",
|
2724
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceAssetsByPolicyItem\n<公共请求参数>\n\n{\n \"CustomerPolicyItemId\": 2798,\n \"CustomerAssetIdSet\": [\n 2202462\n ],\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
2725
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1f25995a-d6f2-4b3d-aea5-719288998970\",\n \"TaskId\": 2540\n }\n}",
|
2726
|
+
"title": "检测策略下资产"
|
2703
2727
|
}
|
2704
2728
|
],
|
2705
2729
|
"ScanCompliancePolicyItems": [
|
@@ -2716,6 +2740,12 @@
|
|
2716
2740
|
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceScanFailedAssets\n<公共请求参数>\n\n{\n \"CustomerAssetIdSet\": [\n 123,\n 456,\n 789\n ]\n}",
|
2717
2741
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxx\",\n \"TaskId\": 123\n }\n}",
|
2718
2742
|
"title": "重新检测上次检测失败的资产"
|
2743
|
+
},
|
2744
|
+
{
|
2745
|
+
"document": "再次扫描失败资产",
|
2746
|
+
"input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ScanComplianceScanFailedAssets\n<公共请求参数>\n\n{\n \"CustomerAssetIdSet\": [\n 2202462\n ],\n \"AssetType\": \"ASSET_CONTAINER\"\n}",
|
2747
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"03546211-26e8-47d0-92f4-ed8250df32c5\",\n \"TaskId\": 2538\n }\n}",
|
2748
|
+
"title": "再次扫描失败资产"
|
2719
2749
|
}
|
2720
2750
|
],
|
2721
2751
|
"SetCheckMode": [
|
@@ -1109,6 +1109,58 @@ def doModifyMQTTInstance(args, parsed_globals):
|
|
1109
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
1110
|
|
1111
1111
|
|
1112
|
+
def doDescribeConsumerLag(args, parsed_globals):
|
1113
|
+
g_param = parse_global_arg(parsed_globals)
|
1114
|
+
|
1115
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1116
|
+
cred = credential.CVMRoleCredential()
|
1117
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1118
|
+
cred = credential.STSAssumeRoleCredential(
|
1119
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1120
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1121
|
+
)
|
1122
|
+
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):
|
1123
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1124
|
+
else:
|
1125
|
+
cred = credential.Credential(
|
1126
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1127
|
+
)
|
1128
|
+
http_profile = HttpProfile(
|
1129
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1130
|
+
reqMethod="POST",
|
1131
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1132
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1133
|
+
)
|
1134
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1135
|
+
if g_param[OptionsDefine.Language]:
|
1136
|
+
profile.language = g_param[OptionsDefine.Language]
|
1137
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1138
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1139
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1140
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1141
|
+
model = models.DescribeConsumerLagRequest()
|
1142
|
+
model.from_json_string(json.dumps(args))
|
1143
|
+
start_time = time.time()
|
1144
|
+
while True:
|
1145
|
+
rsp = client.DescribeConsumerLag(model)
|
1146
|
+
result = rsp.to_json_string()
|
1147
|
+
try:
|
1148
|
+
json_obj = json.loads(result)
|
1149
|
+
except TypeError as e:
|
1150
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1151
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1152
|
+
break
|
1153
|
+
cur_time = time.time()
|
1154
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1155
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1156
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1157
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1158
|
+
else:
|
1159
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1160
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1161
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
|
+
|
1163
|
+
|
1112
1164
|
def doDescribeMQTTTopic(args, parsed_globals):
|
1113
1165
|
g_param = parse_global_arg(parsed_globals)
|
1114
1166
|
|
@@ -2545,6 +2597,7 @@ ACTION_MAP = {
|
|
2545
2597
|
"DescribeProductSKUs": doDescribeProductSKUs,
|
2546
2598
|
"ImportSourceClusterConsumerGroups": doImportSourceClusterConsumerGroups,
|
2547
2599
|
"ModifyMQTTInstance": doModifyMQTTInstance,
|
2600
|
+
"DescribeConsumerLag": doDescribeConsumerLag,
|
2548
2601
|
"DescribeMQTTTopic": doDescribeMQTTTopic,
|
2549
2602
|
"ModifyMQTTInsPublicEndpoint": doModifyMQTTInsPublicEndpoint,
|
2550
2603
|
"DescribeConsumerGroup": doDescribeConsumerGroup,
|
@@ -126,6 +126,13 @@
|
|
126
126
|
"output": "DescribeConsumerGroupListResponse",
|
127
127
|
"status": "online"
|
128
128
|
},
|
129
|
+
"DescribeConsumerLag": {
|
130
|
+
"document": "查询指定消费组堆积数。",
|
131
|
+
"input": "DescribeConsumerLagRequest",
|
132
|
+
"name": "查询指定消费组堆积数",
|
133
|
+
"output": "DescribeConsumerLagResponse",
|
134
|
+
"status": "online"
|
135
|
+
},
|
129
136
|
"DescribeFusionInstanceList": {
|
130
137
|
"document": "获取实例列表,Filters参数使用说明如下:\n1. InstanceName, 名称模糊查询\n2. InstanceId,实例ID查询\n3. InstanceType, 实例类型查询,支持多选\n4. Version,实例版本查询\n当使用TagFilters查询时,Filters参数失效。",
|
131
138
|
"input": "DescribeFusionInstanceListRequest",
|
@@ -1614,6 +1621,70 @@
|
|
1614
1621
|
],
|
1615
1622
|
"type": "object"
|
1616
1623
|
},
|
1624
|
+
"DescribeConsumerLagRequest": {
|
1625
|
+
"document": "DescribeConsumerLag请求参数结构体",
|
1626
|
+
"members": [
|
1627
|
+
{
|
1628
|
+
"disabled": false,
|
1629
|
+
"document": "实例ID",
|
1630
|
+
"example": "rocketmq-xxxx",
|
1631
|
+
"member": "string",
|
1632
|
+
"name": "InstanceId",
|
1633
|
+
"required": true,
|
1634
|
+
"type": "string"
|
1635
|
+
},
|
1636
|
+
{
|
1637
|
+
"disabled": false,
|
1638
|
+
"document": "消费组名称",
|
1639
|
+
"example": "group_test",
|
1640
|
+
"member": "string",
|
1641
|
+
"name": "ConsumerGroup",
|
1642
|
+
"required": false,
|
1643
|
+
"type": "string"
|
1644
|
+
},
|
1645
|
+
{
|
1646
|
+
"disabled": false,
|
1647
|
+
"document": "命名空间,4.x集群必填",
|
1648
|
+
"example": "namespace_test",
|
1649
|
+
"member": "string",
|
1650
|
+
"name": "Namespace",
|
1651
|
+
"required": false,
|
1652
|
+
"type": "string"
|
1653
|
+
},
|
1654
|
+
{
|
1655
|
+
"disabled": false,
|
1656
|
+
"document": "订阅主题,不为空则查询订阅了该主题的消费组的堆积",
|
1657
|
+
"example": "topic_test",
|
1658
|
+
"member": "string",
|
1659
|
+
"name": "SubscribeTopic",
|
1660
|
+
"required": false,
|
1661
|
+
"type": "string"
|
1662
|
+
}
|
1663
|
+
],
|
1664
|
+
"type": "object"
|
1665
|
+
},
|
1666
|
+
"DescribeConsumerLagResponse": {
|
1667
|
+
"document": "DescribeConsumerLag返回参数结构体",
|
1668
|
+
"members": [
|
1669
|
+
{
|
1670
|
+
"disabled": false,
|
1671
|
+
"document": "堆积数",
|
1672
|
+
"example": "100",
|
1673
|
+
"member": "int64",
|
1674
|
+
"name": "ConsumerLag",
|
1675
|
+
"output_required": false,
|
1676
|
+
"type": "int",
|
1677
|
+
"value_allowed_null": false
|
1678
|
+
},
|
1679
|
+
{
|
1680
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1681
|
+
"member": "string",
|
1682
|
+
"name": "RequestId",
|
1683
|
+
"type": "string"
|
1684
|
+
}
|
1685
|
+
],
|
1686
|
+
"type": "object"
|
1687
|
+
},
|
1617
1688
|
"DescribeFusionInstanceListRequest": {
|
1618
1689
|
"document": "DescribeFusionInstanceList请求参数结构体",
|
1619
1690
|
"members": [
|
@@ -150,6 +150,14 @@
|
|
150
150
|
"title": "获取消费组列表"
|
151
151
|
}
|
152
152
|
],
|
153
|
+
"DescribeConsumerLag": [
|
154
|
+
{
|
155
|
+
"document": "查询指定客户端堆积成功",
|
156
|
+
"input": "POST / HTTP/1.1\nHost: trocket.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConsumerLag\n<公共请求参数>\n\n{\n \"InstanceId\": \"rmq-24kzek2b\",\n \"ConsumerGroup\": \"test\"\n}",
|
157
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"ConsumerLag\": 0,\n \"RequestId\": \"2b9eef15-a8bc-47a3-9445-9edcafccb459\"\n }\n}",
|
158
|
+
"title": "正常响应"
|
159
|
+
}
|
160
|
+
],
|
153
161
|
"DescribeFusionInstanceList": [
|
154
162
|
{
|
155
163
|
"document": "",
|
@@ -274,7 +274,7 @@
|
|
274
274
|
"status": "online"
|
275
275
|
},
|
276
276
|
"StartAITranscription": {
|
277
|
-
"document": "这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。\n转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:\n- 拉取全房间的流。\n- 拉取特定用户的流。\n\n服务端通过TRTC的自定义消息实时下发字幕和会议记录,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。\n\n服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:\n`{\n \"type\": \"subtitle\",\n \"userid\": \"xxx\",\n \"text\": \"xxx\",\n \"
|
277
|
+
"document": "这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。\n转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:\n- 拉取全房间的流。\n- 拉取特定用户的流。\n\n服务端通过TRTC的自定义消息实时下发字幕和会议记录,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。\n\n服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:\n`{\n \"type\": \"subtitle\",\n \"userid\": \"xxx\",\n \"text\": \"xxx\",\n \"start_time\": \"00:00:02\",\n \"end_time\": \"00:00:05\"\n}`\n字段作用如下:\n- type是subtitle,表示这是实时字幕消息。\n- userid表示是哪个用户说的话。\n- text是语音识别出的文本。\n- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。\n\n转录消息具体格式如下:\n`{\n \"type\": \"transcription\",\n \"userid\": \"xxx\",\n \"text\": \"xxx\",\n \"start_time\": \"00:00:02\",\n \"end_time\": \"00:00:05\"\n}`\n字段作用如下:\n- type是transcription,表示这是转录消息。\n- 其余字段同实时字幕消息。\n\n转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。\n假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:\n- 字幕消息,“今天”\n- 字幕消息,“今天天气”\n- 字幕消息,“今天天气怎么样”\n- 转录消息,“今天天气怎么样?”",
|
278
278
|
"input": "StartAITranscriptionRequest",
|
279
279
|
"name": "开始AI转录任务",
|
280
280
|
"output": "StartAITranscriptionResponse",
|
@@ -4937,7 +4937,7 @@
|
|
4937
4937
|
"members": [
|
4938
4938
|
{
|
4939
4939
|
"disabled": false,
|
4940
|
-
"document": "语音转文字支持识别的语言,默认是\"zh\" 中文\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):\n可通过购买「语音转文本时长包」解锁或领取包月套餐体验版解锁此功能。\n\n语音转文本支持语言类型如下:\n- Chinese = \"zh\" # 中文\n- Chinese_TW = \"zh-TW\" # 中国台湾\n- English = \"en\" # 英语\n- Chinese_YUE = \"zh-yue\" # 中国粤语\n- Chinese_DIALECT = \"zh-dialect\" # 中国方言\n- English = \"en\" # 英语\n- Vietnamese = \"vi\" # 越南语\n- Japanese = \"ja\" # 日语\n- Korean = \"ko\" # 汉语\n- Indonesia = \"id\" # 印度尼西亚语\n- Thai = \"th\" # 泰语\n- Portuguese = \"pt\" # 葡萄牙语\n- Turkish = \"tr\" # 土耳其语\n- Arabic = \"ar\" # 阿拉伯语\n- Spanish = \"es\" # 西班牙语\n- Hindi = \"hi\" # 印地语\n- French = \"fr\" # 法语\n- Malay = \"ms\" # 马来语\n- Filipino = \"fil\" # 菲律宾语\n- German = \"de\" # 德语\n- Italian = \"it\" # 意大利语\n- Russian = \"ru\" # 俄语\n\n注意:\n
|
4940
|
+
"document": "语音转文字支持识别的语言,默认是\"zh\" 中文\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):\n可通过购买「语音转文本时长包」解锁或领取包月套餐体验版解锁此功能。\n\n语音转文本支持语言类型如下:\n- Chinese = \"zh\" # 中文\n- Chinese_TW = \"zh-TW\" # 中国台湾\n- English = \"en\" # 英语\n- Chinese_YUE = \"zh-yue\" # 中国粤语\n- Chinese_DIALECT = \"zh-dialect\" # 中国方言\n- English = \"en\" # 英语\n- Vietnamese = \"vi\" # 越南语\n- Japanese = \"ja\" # 日语\n- Korean = \"ko\" # 汉语\n- Indonesia = \"id\" # 印度尼西亚语\n- Thai = \"th\" # 泰语\n- Portuguese = \"pt\" # 葡萄牙语\n- Turkish = \"tr\" # 土耳其语\n- Arabic = \"ar\" # 阿拉伯语\n- Spanish = \"es\" # 西班牙语\n- Hindi = \"hi\" # 印地语\n- French = \"fr\" # 法语\n- Malay = \"ms\" # 马来语\n- Filipino = \"fil\" # 菲律宾语\n- German = \"de\" # 德语\n- Italian = \"it\" # 意大利语\n- Russian = \"ru\" # 俄语\n\n注意:\n如果缺少满足您需求的语言,请联系我们技术人员。",
|
4941
4941
|
"example": "zh",
|
4942
4942
|
"member": "string",
|
4943
4943
|
"name": "Language",
|
@@ -4955,17 +4955,17 @@
|
|
4955
4955
|
},
|
4956
4956
|
{
|
4957
4957
|
"disabled": true,
|
4958
|
-
"document": "
|
4959
|
-
"example": "
|
4958
|
+
"document": "目前已不支持",
|
4959
|
+
"example": "无",
|
4960
4960
|
"member": "string",
|
4961
4961
|
"name": "Model",
|
4962
4962
|
"required": false,
|
4963
4963
|
"type": "string"
|
4964
4964
|
},
|
4965
4965
|
{
|
4966
|
-
"disabled":
|
4967
|
-
"document": "
|
4968
|
-
"example": "
|
4966
|
+
"disabled": true,
|
4967
|
+
"document": "目前已不支持",
|
4968
|
+
"example": "无",
|
4969
4969
|
"member": "string",
|
4970
4970
|
"name": "TranslationLanguage",
|
4971
4971
|
"required": false,
|
@@ -17280,9 +17280,21 @@
|
|
17280
17280
|
"example": "TEHD-100",
|
17281
17281
|
"member": "string",
|
17282
17282
|
"name": "Type",
|
17283
|
+
"output_required": true,
|
17283
17284
|
"required": true,
|
17284
17285
|
"type": "string",
|
17285
17286
|
"value_allowed_null": false
|
17287
|
+
},
|
17288
|
+
{
|
17289
|
+
"disabled": false,
|
17290
|
+
"document": "视频码率上限,当 Type 指定了极速高清类型时有效。\n不填或填0表示不设视频码率上限。",
|
17291
|
+
"example": "0",
|
17292
|
+
"member": "uint64",
|
17293
|
+
"name": "MaxVideoBitrate",
|
17294
|
+
"output_required": false,
|
17295
|
+
"required": false,
|
17296
|
+
"type": "int",
|
17297
|
+
"value_allowed_null": false
|
17286
17298
|
}
|
17287
17299
|
],
|
17288
17300
|
"usage": "both"
|
@@ -2627,9 +2627,10 @@
|
|
2627
2627
|
{
|
2628
2628
|
"disabled": false,
|
2629
2629
|
"document": "攻击封禁类型标签",
|
2630
|
-
"example": "",
|
2630
|
+
"example": "“”",
|
2631
2631
|
"member": "string",
|
2632
2632
|
"name": "AttackTags",
|
2633
|
+
"output_required": true,
|
2633
2634
|
"required": true,
|
2634
2635
|
"type": "list",
|
2635
2636
|
"value_allowed_null": false
|
@@ -2637,9 +2638,10 @@
|
|
2637
2638
|
{
|
2638
2639
|
"disabled": false,
|
2639
2640
|
"document": "攻击次数阈值",
|
2640
|
-
"example": "",
|
2641
|
+
"example": "1",
|
2641
2642
|
"member": "int64",
|
2642
2643
|
"name": "AttackThreshold",
|
2644
|
+
"output_required": true,
|
2643
2645
|
"required": true,
|
2644
2646
|
"type": "int",
|
2645
2647
|
"value_allowed_null": false
|
@@ -2647,9 +2649,10 @@
|
|
2647
2649
|
{
|
2648
2650
|
"disabled": false,
|
2649
2651
|
"document": "自动封禁状态",
|
2650
|
-
"example": "",
|
2652
|
+
"example": "1",
|
2651
2653
|
"member": "int64",
|
2652
2654
|
"name": "DefenseStatus",
|
2655
|
+
"output_required": true,
|
2653
2656
|
"required": true,
|
2654
2657
|
"type": "int",
|
2655
2658
|
"value_allowed_null": false
|
@@ -2657,9 +2660,10 @@
|
|
2657
2660
|
{
|
2658
2661
|
"disabled": false,
|
2659
2662
|
"document": "攻击时间阈值",
|
2660
|
-
"example": "",
|
2663
|
+
"example": "1",
|
2661
2664
|
"member": "int64",
|
2662
2665
|
"name": "TimeThreshold",
|
2666
|
+
"output_required": true,
|
2663
2667
|
"required": true,
|
2664
2668
|
"type": "int",
|
2665
2669
|
"value_allowed_null": false
|
@@ -2667,9 +2671,10 @@
|
|
2667
2671
|
{
|
2668
2672
|
"disabled": false,
|
2669
2673
|
"document": "自动封禁时间",
|
2670
|
-
"example": "",
|
2674
|
+
"example": "1",
|
2671
2675
|
"member": "int64",
|
2672
2676
|
"name": "DenyTimeThreshold",
|
2677
|
+
"output_required": true,
|
2673
2678
|
"required": true,
|
2674
2679
|
"type": "int",
|
2675
2680
|
"value_allowed_null": false
|
@@ -2677,9 +2682,10 @@
|
|
2677
2682
|
{
|
2678
2683
|
"disabled": false,
|
2679
2684
|
"document": "最后更新时间",
|
2680
|
-
"example": "",
|
2685
|
+
"example": "“”",
|
2681
2686
|
"member": "datetime_iso",
|
2682
2687
|
"name": "LastUpdateTime",
|
2688
|
+
"output_required": true,
|
2683
2689
|
"required": false,
|
2684
2690
|
"type": "string",
|
2685
2691
|
"value_allowed_null": false
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1170.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.1170
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|