tccli 3.0.1167.1__py2.py3-none-any.whl → 3.0.1169.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 +9 -0
- tccli/services/autoscaling/v20180419/api.json +42 -10
- tccli/services/cls/cls_client.py +224 -12
- tccli/services/cls/v20201016/api.json +331 -0
- tccli/services/cls/v20201016/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +18 -0
- tccli/services/es/v20180416/api.json +28 -0
- tccli/services/es/v20180416/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/iotexplorer/v20190423/api.json +30 -0
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- 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/sms/v20210111/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +48 -28
- tccli/services/ssl/v20191205/examples.json +3 -3
- tccli/services/tcbr/v20220217/api.json +38 -5
- 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 +56 -9
- tccli/services/trtc/v20190722/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +12 -6
- tccli/services/wedata/v20210820/api.json +11 -2
- {tccli-3.0.1167.1.dist-info → tccli-3.0.1169.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1167.1.dist-info → tccli-3.0.1169.1.dist-info}/RECORD +36 -36
- {tccli-3.0.1167.1.dist-info → tccli-3.0.1169.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1167.1.dist-info → tccli-3.0.1169.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1167.1.dist-info → tccli-3.0.1169.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": "",
|
@@ -267,7 +267,7 @@
|
|
267
267
|
"status": "online"
|
268
268
|
},
|
269
269
|
"StartAIConversation": {
|
270
|
-
"document": "
|
270
|
+
"document": "启动AI对话任务,AI通道机器人进入TRTC房间,与房间内指定的成员进行AI对话,适用于智能客服,AI口语教师等场景\n\nTRTC AI对话功能内置语音转文本能力,同时提供通道服务,即客户可灵活指定第三方AI模型(LLM)服务和文本转音频(TTS)服务,更多[功能说明](https://cloud.tencent.com/document/product/647/108901)。",
|
271
271
|
"input": "StartAIConversationRequest",
|
272
272
|
"name": "开始AI对话任务",
|
273
273
|
"output": "StartAIConversationResponse",
|
@@ -506,7 +506,7 @@
|
|
506
506
|
},
|
507
507
|
{
|
508
508
|
"disabled": false,
|
509
|
-
"document": "
|
509
|
+
"document": "房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。\n注意:此字段可能返回 null,表示取不到有效值。",
|
510
510
|
"example": "无",
|
511
511
|
"member": "uint64",
|
512
512
|
"name": "MaxIdleTime",
|
@@ -514,6 +514,17 @@
|
|
514
514
|
"required": false,
|
515
515
|
"type": "int",
|
516
516
|
"value_allowed_null": true
|
517
|
+
},
|
518
|
+
{
|
519
|
+
"disabled": false,
|
520
|
+
"document": "机器人的欢迎语\n注意:此字段可能返回 null,表示取不到有效值。",
|
521
|
+
"example": "无",
|
522
|
+
"member": "string",
|
523
|
+
"name": "WelcomeMessage",
|
524
|
+
"output_required": false,
|
525
|
+
"required": false,
|
526
|
+
"type": "string",
|
527
|
+
"value_allowed_null": true
|
517
528
|
}
|
518
529
|
],
|
519
530
|
"usage": "both"
|
@@ -1153,7 +1164,7 @@
|
|
1153
1164
|
},
|
1154
1165
|
{
|
1155
1166
|
"disabled": false,
|
1156
|
-
"document": "
|
1167
|
+
"document": "任务的唯一标识,在启动任务时生成",
|
1157
1168
|
"example": "无",
|
1158
1169
|
"member": "string",
|
1159
1170
|
"name": "TaskId",
|
@@ -4926,7 +4937,7 @@
|
|
4926
4937
|
"members": [
|
4927
4938
|
{
|
4928
4939
|
"disabled": false,
|
4929
|
-
"document": "
|
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如果缺少满足您需求的语言,请联系我们技术人员。\n示例值:zh",
|
4930
4941
|
"example": "zh",
|
4931
4942
|
"member": "string",
|
4932
4943
|
"name": "Language",
|
@@ -4935,7 +4946,7 @@
|
|
4935
4946
|
},
|
4936
4947
|
{
|
4937
4948
|
"disabled": false,
|
4938
|
-
"document": "
|
4949
|
+
"document": "发起模糊识别额外可能替代语言类型,最多填写3种语言类型。\n注:Language指定为\"zh-dialect\" # 中国方言 时,不支持模糊识别,该字段无效",
|
4939
4950
|
"example": "无",
|
4940
4951
|
"member": "string",
|
4941
4952
|
"name": "AlternativeLanguage",
|
@@ -4953,7 +4964,7 @@
|
|
4953
4964
|
},
|
4954
4965
|
{
|
4955
4966
|
"disabled": false,
|
4956
|
-
"document": "翻译功能支持的语言,如果填写,则会启用翻译,不填则只会使用语音识别。\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):\nChinese = \"zh\"\nChinese_TW = \"zh-TW\"
|
4967
|
+
"document": "翻译功能支持的语言,如果填写,则会启用翻译,不填则只会使用语音识别。\n注:文本翻译功能需要购买「语音转文本时长包」解锁或领取包月套餐-体验版解。\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):\nChinese = \"zh\"\nChinese_TW = \"zh-TW\"\nEnglish = \"en\"\nVietnamese = \"vi\"\nJapanese = \"ja\"\nKorean = \"ko\"\nIndonesia = \"id\"\nThai = \"th\"\nPortuguese = \"pt\"\nTurkish = \"tr\"\nArabic = \"ar\"\nSpanish = \"es\"\nHindi = \"hi\"\nFrench = \"fr\"\nMalay = \"ms\"\nFilipino = \"fil\"\nGerman = \"de\"\nItalian = \"it\"\nRussian = \"ru\"\n\n注意:\n如果缺少满足您需求的语言,请联系我们技术人员。\n示例值:en",
|
4957
4968
|
"example": "en",
|
4958
4969
|
"member": "string",
|
4959
4970
|
"name": "TranslationLanguage",
|
@@ -5295,7 +5306,7 @@
|
|
5295
5306
|
},
|
5296
5307
|
{
|
5297
5308
|
"disabled": false,
|
5298
|
-
"document": "
|
5309
|
+
"document": "发起模糊识别额外可能替代语言类型,最多填写3种语言类型, \n注:Language指定为\"zh-dialect\" # 中国方言 时,不支持模糊识别,该字段无效\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
5299
5310
|
"example": "无",
|
5300
5311
|
"member": "string",
|
5301
5312
|
"name": "AlternativeLanguage",
|
@@ -5517,6 +5528,15 @@
|
|
5517
5528
|
"name": "Interrupt",
|
5518
5529
|
"required": false,
|
5519
5530
|
"type": "bool"
|
5531
|
+
},
|
5532
|
+
{
|
5533
|
+
"disabled": false,
|
5534
|
+
"document": "播报完文本后,是否自动关闭对话任务",
|
5535
|
+
"example": "无",
|
5536
|
+
"member": "bool",
|
5537
|
+
"name": "StopAfterPlay",
|
5538
|
+
"required": false,
|
5539
|
+
"type": "bool"
|
5520
5540
|
}
|
5521
5541
|
],
|
5522
5542
|
"usage": "in"
|
@@ -5635,8 +5655,8 @@
|
|
5635
5655
|
},
|
5636
5656
|
{
|
5637
5657
|
"disabled": false,
|
5638
|
-
"document": "调用方传入的唯一Id
|
5639
|
-
"example": "
|
5658
|
+
"document": "调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。",
|
5659
|
+
"example": "conversation_1_2",
|
5640
5660
|
"member": "string",
|
5641
5661
|
"name": "SessionId",
|
5642
5662
|
"required": false,
|
@@ -6157,6 +6177,33 @@
|
|
6157
6177
|
"name": "SeekSecond",
|
6158
6178
|
"required": false,
|
6159
6179
|
"type": "int"
|
6180
|
+
},
|
6181
|
+
{
|
6182
|
+
"disabled": false,
|
6183
|
+
"document": "开启自动旁路推流,请确认控制台已经开启该功能。",
|
6184
|
+
"example": "无",
|
6185
|
+
"member": "bool",
|
6186
|
+
"name": "AutoPush",
|
6187
|
+
"required": false,
|
6188
|
+
"type": "bool"
|
6189
|
+
},
|
6190
|
+
{
|
6191
|
+
"disabled": false,
|
6192
|
+
"document": "循环播放次数, 取值范围[-1, 1000], 默认1次。\n - 0 无效值\n - -1 循环播放, 需要主动调用停止接口或设置MaxDuration\n",
|
6193
|
+
"example": "无",
|
6194
|
+
"member": "int64",
|
6195
|
+
"name": "RepeatNum",
|
6196
|
+
"required": false,
|
6197
|
+
"type": "int"
|
6198
|
+
},
|
6199
|
+
{
|
6200
|
+
"disabled": false,
|
6201
|
+
"document": "循环播放最大时长,仅支持RepeatNum设置-1时生效,取值范围[1, 10080],单位分钟。",
|
6202
|
+
"example": "无",
|
6203
|
+
"member": "int64",
|
6204
|
+
"name": "MaxDuration",
|
6205
|
+
"required": false,
|
6206
|
+
"type": "int"
|
6160
6207
|
}
|
6161
6208
|
],
|
6162
6209
|
"type": "object"
|
@@ -307,7 +307,7 @@
|
|
307
307
|
"StartAIConversation": [
|
308
308
|
{
|
309
309
|
"document": "",
|
310
|
-
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartAIConversation\n<公共请求参数>\n\n{\n \"SdkAppId\": 12345678,\n \"RoomId\": \"room_987654321\",\n \"RoomIdType\": 1,\n \"AgentConfig\": {\n \"UserId\": \"user_12345\",\n \"UserSig\": \"user_signature_example\",\n \"MaxIdleTime\": 120,\n \"TargetUserId\": \"target_user_54321\"\n },\n \"SessionId\": \"session_1234567890abcdef\",\n \"STTConfig\": {\n \"Language\": \"en-US\",\n \"AlternativeLanguage\": [\n \"en-US\",\n \"zh\"\n ]\n },\n \"LLMConfig\": \"{\\\"LLMType\\\": \\\"openai\\\", \\\"Model\\\": \\\"gpt-3.5-turbo\\\", \\\"APIKey\\\": \\\"xxx\\\", \\\"
|
310
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartAIConversation\n<公共请求参数>\n\n{\n \"SdkAppId\": 12345678,\n \"RoomId\": \"room_987654321\",\n \"RoomIdType\": 1,\n \"AgentConfig\": {\n \"UserId\": \"user_12345\",\n \"UserSig\": \"user_signature_example\",\n \"MaxIdleTime\": 120,\n \"TargetUserId\": \"target_user_54321\"\n },\n \"SessionId\": \"session_1234567890abcdef\",\n \"STTConfig\": {\n \"Language\": \"en-US\",\n \"AlternativeLanguage\": [\n \"en-US\",\n \"zh\"\n ]\n },\n \"LLMConfig\": \"{\\\"LLMType\\\": \\\"openai\\\", \\\"Model\\\": \\\"gpt-3.5-turbo\\\", \\\"APIKey\\\": \\\"xxx\\\", \\\"APIUrl\\\": \\\"http://xxxx-api.woa.com/v1/chat/completions\\\", \\\"Streaming\\\": true}\",\n \"TTSConfig\": \"{\\\"TTSType\\\": \\\"tencent\\\", \\\"AppId\\\": 130000000, \\\"SecretId\\\": \\\"AKIDxxxxx\\\", \\\"SecretKey\\\": \\\"HlDxxxxxx\\\", \\\"VoiceType\\\": 1008, \\\"Speed\\\": 1}\"\n}",
|
311
311
|
"output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
312
312
|
"title": "启动一个AI机器人对话"
|
313
313
|
}
|
@@ -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
|
@@ -6570,6 +6570,15 @@
|
|
6570
6570
|
"name": "DevelopmentParams",
|
6571
6571
|
"required": false,
|
6572
6572
|
"type": "string"
|
6573
|
+
},
|
6574
|
+
{
|
6575
|
+
"disabled": false,
|
6576
|
+
"document": "新建数据源的项目ID",
|
6577
|
+
"example": "12323",
|
6578
|
+
"member": "string",
|
6579
|
+
"name": "ProjectId",
|
6580
|
+
"required": false,
|
6581
|
+
"type": "string"
|
6573
6582
|
}
|
6574
6583
|
],
|
6575
6584
|
"type": "object"
|
@@ -14322,7 +14331,7 @@
|
|
14322
14331
|
},
|
14323
14332
|
{
|
14324
14333
|
"disabled": false,
|
14325
|
-
"document": "查询filter",
|
14334
|
+
"document": "查询filter;默认查询任务的开发态,如需查询生产态任务需添加{\"Values\":[\"true\"],\"Name\":\"ProductionState\"};如需查询查询任务状态需要查询生产态任务列表",
|
14326
14335
|
"example": "无",
|
14327
14336
|
"member": "Filter",
|
14328
14337
|
"name": "Filters",
|
@@ -25149,7 +25158,7 @@
|
|
25149
25158
|
},
|
25150
25159
|
{
|
25151
25160
|
"disabled": false,
|
25152
|
-
"document": "1:未开始|2:操作中|3:运行中|4:暂停|5:任务停止中|6:停止|7:执行失败|20:异常|21:未知|\n注意:此字段可能返回 null,表示取不到有效值。",
|
25161
|
+
"document": "0:新建(任务开发态默认状态)|1:未开始|2:操作中|3:运行中|4:暂停|5:任务停止中|6:停止|7:执行失败|20:异常|21:未知|\n注意:此字段可能返回 null,表示取不到有效值。",
|
25153
25162
|
"example": "2",
|
25154
25163
|
"member": "int64",
|
25155
25164
|
"name": "Status",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1169.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.1169
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|