tccli 3.0.1254.1__py2.py3-none-any.whl → 3.0.1255.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/cdwdoris/v20211228/api.json +89 -44
- tccli/services/cdwdoris/v20211228/examples.json +6 -6
- tccli/services/cfs/cfs_client.py +53 -0
- tccli/services/cfs/v20190719/api.json +44 -0
- tccli/services/cfs/v20190719/examples.json +8 -0
- tccli/services/cvm/v20170312/api.json +48 -1
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/faceid/v20180301/api.json +12 -12
- tccli/services/faceid/v20180301/examples.json +16 -2
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +243 -2
- tccli/services/iotexplorer/v20190423/examples.json +16 -2
- tccli/services/lighthouse/v20200324/api.json +18 -0
- tccli/services/mps/v20190612/api.json +2 -2
- tccli/services/postgres/v20170312/api.json +30 -11
- tccli/services/postgres/v20170312/examples.json +2 -2
- {tccli-3.0.1254.1.dist-info → tccli-3.0.1255.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1254.1.dist-info → tccli-3.0.1255.1.dist-info}/RECORD +22 -22
- {tccli-3.0.1254.1.dist-info → tccli-3.0.1255.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1254.1.dist-info → tccli-3.0.1255.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1254.1.dist-info → tccli-3.0.1255.1.dist-info}/license_files/LICENSE +0 -0
@@ -210,7 +210,7 @@
|
|
210
210
|
{
|
211
211
|
"document": "查询高性能集群信息",
|
212
212
|
"input": "https://cvm.tencentcloudapi.com/?Action=DescribeHpcClusters\r\n&Zone=ap-guangzhou-3\r\n&Offset=0\r\n&Limit=20\r\n&<公共请求参数>",
|
213
|
-
"output": "{\n \"Response\": {\n \"HpcClusterSet\": [\n {\n \"HpcClusterId\": \"hpc-dc4gcarp\",\n \"Name\": \"test_33311\",\n \"Remark\": \"remark 1\",\n \"CvmQuotaTotal\": 50,\n \"Zone\": \"ap-guangzhou-3\",\n \"CurrentNum\": 0,\n \"InstanceIds\": [],\n \"CreateTime\": \"2020-06-02T07:55:05Z\"\n },\n {\n \"HpcClusterId\": \"hpc-p64fdfa9\",\n \"Name\": \"test_333333\",\n \"Remark\": \"remark 2\",\n \"CvmQuotaTotal\": 50,\n \"Zone\": \"ap-guangzhou-3\",\n \"CurrentNum\": 0,\n \"InstanceIds\": [],\n \"CreateTime\": \"2020-06-02T07:51:58Z\"\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"5834f1a5-cd9c-449d-acba-df1803a8583e\"\n }\n}",
|
213
|
+
"output": "{\n \"Response\": {\n \"HpcClusterSet\": [\n {\n \"HpcClusterId\": \"hpc-dc4gcarp\",\n \"Name\": \"test_33311\",\n \"Remark\": \"remark 1\",\n \"CvmQuotaTotal\": 50,\n \"Zone\": \"ap-guangzhou-3\",\n \"CurrentNum\": 0,\n \"InstanceIds\": [],\n \"HpcClusterNetMode\": 30,\n \"CreateTime\": \"2020-06-02T07:55:05Z\",\n \"Tags\": [\n {\n \"Key\": \"tag_key\",\n \"Value\": \"tag_value\"\n }\n ]\n },\n {\n \"HpcClusterId\": \"hpc-p64fdfa9\",\n \"Name\": \"test_333333\",\n \"Remark\": \"remark 2\",\n \"CvmQuotaTotal\": 50,\n \"Zone\": \"ap-guangzhou-3\",\n \"CurrentNum\": 0,\n \"InstanceIds\": [],\n \"HpcClusterNetMode\": 30,\n \"CreateTime\": \"2020-06-02T07:51:58Z\",\n \"Tags\": [\n {\n \"Key\": \"tag_key\",\n \"Value\": \"tag_value\"\n }\n ]\n }\n ],\n \"TotalCount\": 2,\n \"RequestId\": \"5834f1a5-cd9c-449d-acba-df1803a8583e\"\n }\n}",
|
214
214
|
"title": "查询高性能集群信息"
|
215
215
|
}
|
216
216
|
],
|
@@ -589,7 +589,7 @@
|
|
589
589
|
"ModifyHpcClusterAttribute": [
|
590
590
|
{
|
591
591
|
"document": "修改高性能计算集群名称",
|
592
|
-
"input": "https://cvm.tencentcloudapi.com/?Action=ModifyHpcClusterAttribute\n&HpcClusterId=hpc-gzahhoy5\n&Name=
|
592
|
+
"input": "https://cvm.tencentcloudapi.com/?Action=ModifyHpcClusterAttribute\n&HpcClusterId=hpc-gzahhoy5\n&Name=MyHpcCluster\n&<公共请求参数>",
|
593
593
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5834f1a5-cd9c-449d-acba-df1803a8583e\"\n }\n}",
|
594
594
|
"title": "修改高性能计算集群名称"
|
595
595
|
}
|
@@ -710,7 +710,7 @@
|
|
710
710
|
"members": [
|
711
711
|
{
|
712
712
|
"disabled": false,
|
713
|
-
"document": "E证通流程的唯一标识,调用GetEidToken接口时生成。",
|
713
|
+
"document": "E证通流程的唯一标识,调用[GetEidToken](https://cloud.tencent.com/document/product/1007/54089)接口时生成。",
|
714
714
|
"example": "2B3B265E-2C91-5A62-B32D-D0CA5C3F1A15",
|
715
715
|
"member": "string",
|
716
716
|
"name": "EidToken",
|
@@ -1021,7 +1021,7 @@
|
|
1021
1021
|
{
|
1022
1022
|
"disabled": false,
|
1023
1023
|
"document": "业务结果描述。",
|
1024
|
-
"example": "
|
1024
|
+
"example": "一致",
|
1025
1025
|
"member": "string",
|
1026
1026
|
"name": "Description",
|
1027
1027
|
"output_required": true,
|
@@ -2151,7 +2151,7 @@
|
|
2151
2151
|
"members": [
|
2152
2152
|
{
|
2153
2153
|
"disabled": false,
|
2154
|
-
"document": "人脸核身流程的标识,调用DetectAuth接口时生成。",
|
2154
|
+
"document": "人脸核身流程的标识,调用[DetectAuth](https://cloud.tencent.com/document/product/1007/31816)接口时生成。",
|
2155
2155
|
"example": "CF742D11-BD49-4704-A33F-B9372D6322D6",
|
2156
2156
|
"member": "string",
|
2157
2157
|
"name": "BizToken",
|
@@ -2624,7 +2624,7 @@
|
|
2624
2624
|
"members": [
|
2625
2625
|
{
|
2626
2626
|
"disabled": false,
|
2627
|
-
"document": "EID商户
|
2627
|
+
"document": "EID商户ID。通过人脸核身控制台[自助接入](https://console.cloud.tencent.com/faceid/access)申请。\n- 字段长度最长50位。",
|
2628
2628
|
"example": "0NSJ243206261600932123",
|
2629
2629
|
"member": "string",
|
2630
2630
|
"name": "MerchantId",
|
@@ -2704,7 +2704,7 @@
|
|
2704
2704
|
{
|
2705
2705
|
"disabled": false,
|
2706
2706
|
"document": "发起核身流程的URL。\n- 用于H5场景核身。",
|
2707
|
-
"example": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa50a8f2ac379585f53&redirect_uri=https%3A%2F%2Feid.faceid.qq.com%2Fapi%2Fv1%2FGetOpenId%3Ftoken%3DCE6611F1A-0F1E-455BD-BE13-34C05CEA7681&
|
2707
|
+
"example": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa50a8f2ac379585f53&redirect_uri=https%3A%2F%2Feid.faceid.qq.com%2Fapi%2Fv1%2FGetOpenId%3Ftoken%3DCE6611F1A-0F1E-455BD-BE13-34C05CEA7681&component_appid=wx9802ee81e68d6dee#wechat_redirec",
|
2708
2708
|
"member": "string",
|
2709
2709
|
"name": "Url",
|
2710
2710
|
"output_required": true,
|
@@ -2725,7 +2725,7 @@
|
|
2725
2725
|
"members": [
|
2726
2726
|
{
|
2727
2727
|
"disabled": false,
|
2728
|
-
"document": "SDK人脸核身流程的标识。\n- 调用GetFaceIdToken接口时生成。",
|
2728
|
+
"document": "SDK人脸核身流程的标识。\n- 调用[GetFaceIdToken](https://cloud.tencent.com/document/product/1007/49198)接口时生成。",
|
2729
2729
|
"example": "CE6613F1A-0F1E-45BD-BE13-34C05CEA76181",
|
2730
2730
|
"member": "string",
|
2731
2731
|
"name": "FaceIdToken",
|
@@ -2890,7 +2890,7 @@
|
|
2890
2890
|
"members": [
|
2891
2891
|
{
|
2892
2892
|
"disabled": false,
|
2893
|
-
"document": "SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。",
|
2893
|
+
"document": "SDK人脸核身流程的标识,调用[GetFaceidRiskInfoToken](https://cloud.tencent.com/document/product/1007/104581)接口时生成。",
|
2894
2894
|
"example": "CE6621F1A-0F1E-45BD-BE13-34C025CEA7681",
|
2895
2895
|
"member": "string",
|
2896
2896
|
"name": "FaceIdToken",
|
@@ -3014,7 +3014,7 @@
|
|
3014
3014
|
{
|
3015
3015
|
"disabled": false,
|
3016
3016
|
"document": "SDK中生成的Meta字符串。",
|
3017
|
-
"example": "
|
3017
|
+
"example": "无",
|
3018
3018
|
"member": "string",
|
3019
3019
|
"name": "Meta",
|
3020
3020
|
"required": false,
|
@@ -3023,7 +3023,7 @@
|
|
3023
3023
|
{
|
3024
3024
|
"disabled": false,
|
3025
3025
|
"document": "透传参数。\n- 1000长度字符串",
|
3026
|
-
"example": "
|
3026
|
+
"example": "无",
|
3027
3027
|
"member": "string",
|
3028
3028
|
"name": "Extra",
|
3029
3029
|
"required": false,
|
@@ -4398,8 +4398,8 @@
|
|
4398
4398
|
},
|
4399
4399
|
{
|
4400
4400
|
"disabled": false,
|
4401
|
-
"document": "在网时长区间。\n- 格式为
|
4402
|
-
"example": "
|
4401
|
+
"document": "在网时长区间。\n- 格式为[a,b),表示在网时长在a个月以上,b个月以下。\n- 若b为+时表示没有上限。",
|
4402
|
+
"example": "[23,+)",
|
4403
4403
|
"member": "string",
|
4404
4404
|
"name": "Range",
|
4405
4405
|
"output_required": true,
|
@@ -4661,7 +4661,7 @@
|
|
4661
4661
|
},
|
4662
4662
|
{
|
4663
4663
|
"disabled": false,
|
4664
|
-
"document": "旅行证件类的核验结果。\n- JSON格式如下:\n{\"result_issuer \":\"签发者证书合法性验证结果 \",\"
|
4664
|
+
"document": "旅行证件类的核验结果。\n- JSON格式如下:\n{\"result_issuer \":\"签发者证书合法性验证结果 \",\"result_paper\":\"证件安全对象合法性验证结果 \",\"result_data\" :\"防数据篡改验证结果 \",\"result_chip\" :\"防证书件芯片被复制验证结果\"} 。\n- 取值范围: 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4665
4665
|
"example": "无",
|
4666
4666
|
"member": "string",
|
4667
4667
|
"name": "CheckMRTD",
|
@@ -88,7 +88,7 @@
|
|
88
88
|
{
|
89
89
|
"document": "",
|
90
90
|
"input": "https://faceid.tencentcloudapi.com/?Action=CheckIdNameDate\n&Name=韦小宝\n&IdCard= 11204416541220243X\n&ValidityBegin=20160204\n&ValidityEnd=20260204\n&<公共请求参数>",
|
91
|
-
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"
|
91
|
+
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"一致\",\n \"RequestId\": \"8695c53f-776f-4ff5-a66d-84e67b352d20\"\n }\n}",
|
92
92
|
"title": "身份信息及有效期核验成功示例"
|
93
93
|
},
|
94
94
|
{
|
@@ -246,6 +246,20 @@
|
|
246
246
|
"title": "获取结果成功"
|
247
247
|
}
|
248
248
|
],
|
249
|
+
"GetFaceIdToken": [
|
250
|
+
{
|
251
|
+
"document": "",
|
252
|
+
"input": "POST / HTTP/1.1\nHost: faceid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFaceIdToken\n<公共请求参数>\n\n{\n \"CompareLib\": \"BUSINESS\",\n \"IdCard\": \"11204416541220243X\",\n \"Name\": \"韦小宝\"\n}",
|
253
|
+
"output": "{\n \"Response\": {\n \"FaceIdToken\": \"42S41B31D-5974-4674-EABB-8FFF1EC99F819\",\n \"RequestId\": \"94b54cdf-d975-4718-b091-32f8d79d6397\"\n }\n}",
|
254
|
+
"title": "获取 SDK 核验 Token成功示例"
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"document": "",
|
258
|
+
"input": "POST / HTTP/1.1\nHost: faceid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFaceIdToken\n<公共请求参数>\n\n{\n \"CompareLib\": \"LOCAL\",\n \"IdCard\": \"11204416541220243X\",\n \"Name\": \"韦小宝\",\n \"ImageBase64\": \"/9j/4AAQSkZJRg.....s97n//2Q==\"\n}",
|
259
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"FailedOperation.ImageSizeTooLarge\",\n \"Message\": \"图片尺寸过大。\"\n },\n \"RequestId\": \"ae8fbee0-f20e-4651-896e-e21e80d3822a\"\n }\n}",
|
260
|
+
"title": "获取 SDK 核验 Token失败示例"
|
261
|
+
}
|
262
|
+
],
|
249
263
|
"GetFaceidRiskInfoToken": [
|
250
264
|
{
|
251
265
|
"document": "获取 SDK 核验 token。",
|
@@ -398,7 +412,7 @@
|
|
398
412
|
{
|
399
413
|
"document": "",
|
400
414
|
"input": "https://faceid.tencentcloudapi.com/?Action=MobileNetworkTimeVerification\n&Mobile=13800138000\n&<公共请求参数>",
|
401
|
-
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"成功\",\n \"Range\": \"
|
415
|
+
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"成功\",\n \"Range\": \"[24,+)\",\n \"RequestId\": \"f893bfcf-167d-45df-99aa-60a23fe5809d\"\n }\n}",
|
402
416
|
"title": "手机号在网时长核验成功示例"
|
403
417
|
},
|
404
418
|
{
|
@@ -329,6 +329,58 @@ def doDescribeDevice(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doDescribeCloudStorageEventsWithAITasks(args, parsed_globals):
|
333
|
+
g_param = parse_global_arg(parsed_globals)
|
334
|
+
|
335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
336
|
+
cred = credential.CVMRoleCredential()
|
337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
|
+
cred = credential.STSAssumeRoleCredential(
|
339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
341
|
+
)
|
342
|
+
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):
|
343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
344
|
+
else:
|
345
|
+
cred = credential.Credential(
|
346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
347
|
+
)
|
348
|
+
http_profile = HttpProfile(
|
349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
350
|
+
reqMethod="POST",
|
351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
353
|
+
)
|
354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
355
|
+
if g_param[OptionsDefine.Language]:
|
356
|
+
profile.language = g_param[OptionsDefine.Language]
|
357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
358
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.DescribeCloudStorageEventsWithAITasksRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.DescribeCloudStorageEventsWithAITasks(model)
|
366
|
+
result = rsp.to_json_string()
|
367
|
+
try:
|
368
|
+
json_obj = json.loads(result)
|
369
|
+
except TypeError as e:
|
370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
372
|
+
break
|
373
|
+
cur_time = time.time()
|
374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
378
|
+
else:
|
379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
|
+
|
383
|
+
|
332
384
|
def doDescribeTopicPolicy(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -8198,6 +8250,7 @@ ACTION_MAP = {
|
|
8198
8250
|
"DescribeDevicePackages": doDescribeDevicePackages,
|
8199
8251
|
"DescribeFirmwareUpdateStatus": doDescribeFirmwareUpdateStatus,
|
8200
8252
|
"DescribeDevice": doDescribeDevice,
|
8253
|
+
"DescribeCloudStorageEventsWithAITasks": doDescribeCloudStorageEventsWithAITasks,
|
8201
8254
|
"DescribeTopicPolicy": doDescribeTopicPolicy,
|
8202
8255
|
"CreateCloudStorageAIService": doCreateCloudStorageAIService,
|
8203
8256
|
"GetProjectList": doGetProjectList,
|
@@ -357,6 +357,13 @@
|
|
357
357
|
"output": "DescribeCloudStorageEventsResponse",
|
358
358
|
"status": "online"
|
359
359
|
},
|
360
|
+
"DescribeCloudStorageEventsWithAITasks": {
|
361
|
+
"document": "拉取云存事件列表",
|
362
|
+
"input": "DescribeCloudStorageEventsWithAITasksRequest",
|
363
|
+
"name": "拉取云存事件及 AI 分析任务列表",
|
364
|
+
"output": "DescribeCloudStorageEventsWithAITasksResponse",
|
365
|
+
"status": "online"
|
366
|
+
},
|
360
367
|
"DescribeCloudStorageMultiThumbnail": {
|
361
368
|
"document": "拉取多个云存事件缩略图",
|
362
369
|
"input": "DescribeCloudStorageMultiThumbnailRequest",
|
@@ -2088,7 +2095,7 @@
|
|
2088
2095
|
},
|
2089
2096
|
{
|
2090
2097
|
"disabled": false,
|
2091
|
-
"document": "云存 AI 服务类型。可能取值:\n\n- `RealtimeObjectDetect`:目标检测\n- `Highlight
|
2098
|
+
"document": "云存 AI 服务类型。可能取值:\n\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
|
2092
2099
|
"example": "Highlight",
|
2093
2100
|
"member": "string",
|
2094
2101
|
"name": "ServiceType",
|
@@ -2251,6 +2258,82 @@
|
|
2251
2258
|
],
|
2252
2259
|
"usage": "both"
|
2253
2260
|
},
|
2261
|
+
"CloudStorageEventWithAITasks": {
|
2262
|
+
"document": "云存事件及其关联的云存 AI 任务",
|
2263
|
+
"members": [
|
2264
|
+
{
|
2265
|
+
"disabled": false,
|
2266
|
+
"document": "事件起始时间(Unix 时间戳,秒级",
|
2267
|
+
"example": "1560355200",
|
2268
|
+
"member": "uint64",
|
2269
|
+
"name": "StartTime",
|
2270
|
+
"output_required": true,
|
2271
|
+
"type": "int",
|
2272
|
+
"value_allowed_null": false
|
2273
|
+
},
|
2274
|
+
{
|
2275
|
+
"disabled": false,
|
2276
|
+
"document": "事件结束时间(Unix 时间戳,秒级",
|
2277
|
+
"example": "1601196327",
|
2278
|
+
"member": "uint64",
|
2279
|
+
"name": "EndTime",
|
2280
|
+
"output_required": true,
|
2281
|
+
"type": "int",
|
2282
|
+
"value_allowed_null": false
|
2283
|
+
},
|
2284
|
+
{
|
2285
|
+
"disabled": false,
|
2286
|
+
"document": "事件缩略图",
|
2287
|
+
"example": "/100008401725/AQTV2839QJ/sp01_328202375/events/123.jpg",
|
2288
|
+
"member": "string",
|
2289
|
+
"name": "Thumbnail",
|
2290
|
+
"output_required": true,
|
2291
|
+
"type": "string",
|
2292
|
+
"value_allowed_null": false
|
2293
|
+
},
|
2294
|
+
{
|
2295
|
+
"disabled": false,
|
2296
|
+
"document": "事件ID",
|
2297
|
+
"example": "low_power",
|
2298
|
+
"member": "string",
|
2299
|
+
"name": "EventId",
|
2300
|
+
"output_required": true,
|
2301
|
+
"type": "string",
|
2302
|
+
"value_allowed_null": false
|
2303
|
+
},
|
2304
|
+
{
|
2305
|
+
"disabled": false,
|
2306
|
+
"document": "事件录像上传状态,Finished: 全部上传成功 Partial: 部分上传成功 Failed: 上传失败\t",
|
2307
|
+
"example": "Finished",
|
2308
|
+
"member": "string",
|
2309
|
+
"name": "UploadStatus",
|
2310
|
+
"output_required": false,
|
2311
|
+
"type": "string",
|
2312
|
+
"value_allowed_null": false
|
2313
|
+
},
|
2314
|
+
{
|
2315
|
+
"disabled": false,
|
2316
|
+
"document": "事件自定义数据\t",
|
2317
|
+
"example": "name",
|
2318
|
+
"member": "string",
|
2319
|
+
"name": "Data",
|
2320
|
+
"output_required": false,
|
2321
|
+
"type": "string",
|
2322
|
+
"value_allowed_null": false
|
2323
|
+
},
|
2324
|
+
{
|
2325
|
+
"disabled": false,
|
2326
|
+
"document": "事件关联的云存 AI 任务列表",
|
2327
|
+
"example": "无",
|
2328
|
+
"member": "CloudStorageAIServiceTask",
|
2329
|
+
"name": "AITasks",
|
2330
|
+
"output_required": true,
|
2331
|
+
"type": "list",
|
2332
|
+
"value_allowed_null": false
|
2333
|
+
}
|
2334
|
+
],
|
2335
|
+
"usage": "out"
|
2336
|
+
},
|
2254
2337
|
"CloudStoragePackageInfo": {
|
2255
2338
|
"document": "云存套餐包信息",
|
2256
2339
|
"members": [
|
@@ -4860,7 +4943,7 @@
|
|
4860
4943
|
},
|
4861
4944
|
{
|
4862
4945
|
"disabled": false,
|
4863
|
-
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight
|
4946
|
+
"document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
|
4864
4947
|
"example": "Highlight",
|
4865
4948
|
"member": "string",
|
4866
4949
|
"name": "ServiceType",
|
@@ -5160,6 +5243,164 @@
|
|
5160
5243
|
],
|
5161
5244
|
"type": "object"
|
5162
5245
|
},
|
5246
|
+
"DescribeCloudStorageEventsWithAITasksRequest": {
|
5247
|
+
"document": "DescribeCloudStorageEventsWithAITasks请求参数结构体",
|
5248
|
+
"members": [
|
5249
|
+
{
|
5250
|
+
"disabled": false,
|
5251
|
+
"document": "产品ID",
|
5252
|
+
"example": "QDA1PZLBNB",
|
5253
|
+
"member": "string",
|
5254
|
+
"name": "ProductId",
|
5255
|
+
"required": true,
|
5256
|
+
"type": "string"
|
5257
|
+
},
|
5258
|
+
{
|
5259
|
+
"disabled": false,
|
5260
|
+
"document": "设备名称",
|
5261
|
+
"example": "dev01",
|
5262
|
+
"member": "string",
|
5263
|
+
"name": "DeviceName",
|
5264
|
+
"required": true,
|
5265
|
+
"type": "string"
|
5266
|
+
},
|
5267
|
+
{
|
5268
|
+
"disabled": false,
|
5269
|
+
"document": "事件关联的视频 AI 分析服务类型(支持多选)。可选值:\n\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
|
5270
|
+
"example": "[\"Highlight\"]",
|
5271
|
+
"member": "string",
|
5272
|
+
"name": "ServiceTypes",
|
5273
|
+
"required": true,
|
5274
|
+
"type": "list"
|
5275
|
+
},
|
5276
|
+
{
|
5277
|
+
"disabled": false,
|
5278
|
+
"document": "起始时间(Unix 时间戳,秒级), 为0 表示 当前时间 - 24h",
|
5279
|
+
"example": "1560355200",
|
5280
|
+
"member": "uint64",
|
5281
|
+
"name": "StartTime",
|
5282
|
+
"required": false,
|
5283
|
+
"type": "int"
|
5284
|
+
},
|
5285
|
+
{
|
5286
|
+
"disabled": false,
|
5287
|
+
"document": "结束时间(Unix 时间戳,秒级), 为0 表示当前时间",
|
5288
|
+
"example": "1601196327",
|
5289
|
+
"member": "uint64",
|
5290
|
+
"name": "EndTime",
|
5291
|
+
"required": false,
|
5292
|
+
"type": "int"
|
5293
|
+
},
|
5294
|
+
{
|
5295
|
+
"disabled": false,
|
5296
|
+
"document": "请求上下文, 用作查询游标",
|
5297
|
+
"example": "DnF1ZXJ5VGhlbkZldGNoCgAAAAAAABO3FkI2SzRCVTJYUjZxUVRnbUJRaUJzc0EA",
|
5298
|
+
"member": "string",
|
5299
|
+
"name": "Context",
|
5300
|
+
"required": false,
|
5301
|
+
"type": "string"
|
5302
|
+
},
|
5303
|
+
{
|
5304
|
+
"disabled": false,
|
5305
|
+
"document": "查询数据项目的最大数量, 默认为10。假设传Size=10,返回的实际事件数量为N,则 5 <= N <= 10。",
|
5306
|
+
"example": "10",
|
5307
|
+
"member": "uint64",
|
5308
|
+
"name": "Size",
|
5309
|
+
"required": false,
|
5310
|
+
"type": "int"
|
5311
|
+
},
|
5312
|
+
{
|
5313
|
+
"disabled": false,
|
5314
|
+
"document": "事件标识符,可以用来指定查询特定的事件,如果不指定,则查询所有事件。",
|
5315
|
+
"example": "low_voltage",
|
5316
|
+
"member": "string",
|
5317
|
+
"name": "EventId",
|
5318
|
+
"required": false,
|
5319
|
+
"type": "string"
|
5320
|
+
},
|
5321
|
+
{
|
5322
|
+
"disabled": false,
|
5323
|
+
"document": "用户ID",
|
5324
|
+
"example": "user",
|
5325
|
+
"member": "string",
|
5326
|
+
"name": "UserId",
|
5327
|
+
"required": false,
|
5328
|
+
"type": "string"
|
5329
|
+
},
|
5330
|
+
{
|
5331
|
+
"disabled": false,
|
5332
|
+
"document": "通道ID 非NVR设备则不填 NVR设备则必填 默认为无",
|
5333
|
+
"example": "1",
|
5334
|
+
"member": "uint64",
|
5335
|
+
"name": "ChannelId",
|
5336
|
+
"required": false,
|
5337
|
+
"type": "int"
|
5338
|
+
}
|
5339
|
+
],
|
5340
|
+
"type": "object"
|
5341
|
+
},
|
5342
|
+
"DescribeCloudStorageEventsWithAITasksResponse": {
|
5343
|
+
"document": "DescribeCloudStorageEventsWithAITasks返回参数结构体",
|
5344
|
+
"members": [
|
5345
|
+
{
|
5346
|
+
"disabled": false,
|
5347
|
+
"document": "云存事件列表",
|
5348
|
+
"example": "无",
|
5349
|
+
"member": "CloudStorageEventWithAITasks",
|
5350
|
+
"name": "Events",
|
5351
|
+
"output_required": true,
|
5352
|
+
"type": "list",
|
5353
|
+
"value_allowed_null": false
|
5354
|
+
},
|
5355
|
+
{
|
5356
|
+
"disabled": false,
|
5357
|
+
"document": "请求上下文, 用作查询游标",
|
5358
|
+
"example": "DnF1ZXJ5VGhlbkZldGNoCgAAAAAAABO3FkI2SzRCVTJYUjZxUVRnbUJRaUJzc0EA",
|
5359
|
+
"member": "string",
|
5360
|
+
"name": "Context",
|
5361
|
+
"output_required": true,
|
5362
|
+
"type": "string",
|
5363
|
+
"value_allowed_null": false
|
5364
|
+
},
|
5365
|
+
{
|
5366
|
+
"disabled": false,
|
5367
|
+
"document": "拉取结果是否已经结束",
|
5368
|
+
"example": "true",
|
5369
|
+
"member": "bool",
|
5370
|
+
"name": "Listover",
|
5371
|
+
"output_required": true,
|
5372
|
+
"type": "bool",
|
5373
|
+
"value_allowed_null": false
|
5374
|
+
},
|
5375
|
+
{
|
5376
|
+
"disabled": false,
|
5377
|
+
"document": "内部结果数量,并不等同于事件总数。",
|
5378
|
+
"example": "10",
|
5379
|
+
"member": "uint64",
|
5380
|
+
"name": "Total",
|
5381
|
+
"output_required": true,
|
5382
|
+
"type": "int",
|
5383
|
+
"value_allowed_null": false
|
5384
|
+
},
|
5385
|
+
{
|
5386
|
+
"disabled": false,
|
5387
|
+
"document": "视频播放URL",
|
5388
|
+
"example": "http://test.iotvideo.tencentcs.com/timeshift/live/test.m3u8",
|
5389
|
+
"member": "string",
|
5390
|
+
"name": "VideoURL",
|
5391
|
+
"output_required": true,
|
5392
|
+
"type": "string",
|
5393
|
+
"value_allowed_null": false
|
5394
|
+
},
|
5395
|
+
{
|
5396
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5397
|
+
"member": "string",
|
5398
|
+
"name": "RequestId",
|
5399
|
+
"type": "string"
|
5400
|
+
}
|
5401
|
+
],
|
5402
|
+
"type": "object"
|
5403
|
+
},
|
5163
5404
|
"DescribeCloudStorageMultiThumbnailRequest": {
|
5164
5405
|
"document": "DescribeCloudStorageMultiThumbnail请求参数结构体",
|
5165
5406
|
"members": [
|
@@ -466,8 +466,14 @@
|
|
466
466
|
{
|
467
467
|
"document": "",
|
468
468
|
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIServiceTasks\n<公共请求参数>\n\n{\n \"ProductId\": \"KH6Q8C4N0D\",\n \"DeviceName\": \"aaa_31400554_1\",\n \"ServiceType\": \"Highlight\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
|
469
|
-
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"fb066d7a-baac-4706-acda-058f56f82759\",\n \"ProductId\": \"TQBDY6RPI9\",\n \"DeviceName\": \"cs_112114601_2\",\n \"ChannelId\": 0,\n \"ServiceType\": \"PackageDetect\",\n \"StartTime\": 1710487888,\n \"EndTime\": 1710487898,\n \"Status\": 3,\n \"Result\": \"
|
470
|
-
"title": "
|
469
|
+
"output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"fb066d7a-baac-4706-acda-058f56f82759\",\n \"ProductId\": \"TQBDY6RPI9\",\n \"DeviceName\": \"cs_112114601_2\",\n \"ChannelId\": 0,\n \"ServiceType\": \"PackageDetect\",\n \"StartTime\": 1710487888,\n \"EndTime\": 1710487898,\n \"Status\": 3,\n \"Result\": \"\",\n \"Files\": [\n \"highlight.mp4\",\n \"thumbnail.jpg\"\n ],\n \"CreateTime\": 1710490000,\n \"UpdateTime\": 1710490000\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
470
|
+
"title": "查询视频浓缩结果列表"
|
471
|
+
},
|
472
|
+
{
|
473
|
+
"document": "",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageAIServiceTasks\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev004\",\n \"ServiceType\": \"VideoToText\",\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b97d82c1-bf0b-421b-a2c1-cc5053c214ea\",\n \"Tasks\": [\n {\n \"ChannelId\": 0,\n \"CreateTime\": 1736994466,\n \"DeviceName\": \"dev004\",\n \"EndTime\": 1736994458,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"{\\\"DetectedClassifications\\\": [\\\"person\\\"], \\\"Summary\\\": \\\"一个人在雨天街道上行走\\\"}\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1736994450,\n \"Status\": 3,\n \"TaskId\": \"01946cf0-27ee-7ebc-b3a3-5ae31ff61424\",\n \"UpdateTime\": 1736994478\n }\n ],\n \"Total\": 1\n }\n}",
|
476
|
+
"title": "查询视频语义理解结果列表"
|
471
477
|
}
|
472
478
|
],
|
473
479
|
"DescribeCloudStorageDate": [
|
@@ -486,6 +492,14 @@
|
|
486
492
|
"title": "拉取云存事件列表"
|
487
493
|
}
|
488
494
|
],
|
495
|
+
"DescribeCloudStorageEventsWithAITasks": [
|
496
|
+
{
|
497
|
+
"document": "",
|
498
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudStorageEventsWithAITasks\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev004\",\n \"ServiceTypes\": [\n \"VideoToText\"\n ]\n}",
|
499
|
+
"output": "{\n \"Response\": {\n \"Context\": \"DnF1ZXJ5VGhlbkZldGNoCAAAAAAFqzhwFjFFY01POHFmVGxDSnJJTHI5elNNU0EAAAAABZbFYRZmd1ZJbURjWFNuR2F5a0JIR0ozU1NBAAAAAAWUnSYWejUwaVhKNWJScE9ZTkNuV3FycTVYUQAAAAAFlsVgFmZ3VkltRGNYU25HYXlrQkhHSjNTU0EAAAAABaXmlhZyRU9EQTRKeFNrV1VGSDVUXzRiVFRnAAAAAAWUnScWejUwaVhKNWJScE9ZTkNuV3FycTVYUQAAAAAFka-jFm5zbVpuZXVZU0VHNWh1czNkcFFDZ2cAAAAABboqiRZySXYzUUhoblN6T0pqSzFQcThDT2p3\",\n \"Events\": [\n {\n \"AITasks\": [\n {\n \"ChannelId\": 0,\n \"CreateTime\": 1736855569,\n \"DeviceName\": \"dev004\",\n \"EndTime\": 1736855561,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"{\\\"DetectedClassifications\\\": [\\\"person\\\"], \\\"Summary\\\": \\\"一个人在雨天街道上行走\\\"}\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1736855553,\n \"Status\": 3,\n \"TaskId\": \"019464a8-c241-7544-a460-e10298e8ea07\",\n \"UpdateTime\": 1736855581\n }\n ],\n \"Data\": \"\",\n \"EndTime\": 1736855561,\n \"EventId\": \"_sys_id1_data\",\n \"StartTime\": 1736855553,\n \"Thumbnail\": \"\",\n \"UploadStatus\": \"Finished\"\n }\n ],\n \"Listover\": true,\n \"RequestId\": \"3eace4a0-d09c-4dc9-b91c-98c10d48b009\",\n \"Total\": 1,\n \"VideoURL\": \"https://1259367869.vod2.myqcloud.com/timeshift/live/<streamName>/timeshift.m3u8\"\n }\n}",
|
500
|
+
"title": "拉取云存事件及 AI 分析任务列表"
|
501
|
+
}
|
502
|
+
],
|
489
503
|
"DescribeCloudStorageMultiThumbnail": [
|
490
504
|
{
|
491
505
|
"document": "",
|
@@ -2211,6 +2211,24 @@
|
|
2211
2211
|
"name": "InitCommand",
|
2212
2212
|
"required": false,
|
2213
2213
|
"type": "object"
|
2214
|
+
},
|
2215
|
+
{
|
2216
|
+
"disabled": false,
|
2217
|
+
"document": "主域名。",
|
2218
|
+
"example": "tencent.com",
|
2219
|
+
"member": "string",
|
2220
|
+
"name": "DomainName",
|
2221
|
+
"required": false,
|
2222
|
+
"type": "string"
|
2223
|
+
},
|
2224
|
+
{
|
2225
|
+
"disabled": false,
|
2226
|
+
"document": "子域名。",
|
2227
|
+
"example": "www",
|
2228
|
+
"member": "string",
|
2229
|
+
"name": "Subdomain",
|
2230
|
+
"required": false,
|
2231
|
+
"type": "string"
|
2214
2232
|
}
|
2215
2233
|
],
|
2216
2234
|
"type": "object"
|
@@ -8657,7 +8657,7 @@
|
|
8657
8657
|
},
|
8658
8658
|
{
|
8659
8659
|
"disabled": false,
|
8660
|
-
"document": "输入的协议,可选[SRT|RTP|
|
8660
|
+
"document": "输入的协议,可选[SRT|RTP|RTMP_PUSH|RTMP_PULL|RTSP_PULL|RIST]。",
|
8661
8661
|
"example": "SRT",
|
8662
8662
|
"member": "string",
|
8663
8663
|
"name": "Protocol",
|
@@ -21779,7 +21779,7 @@
|
|
21779
21779
|
},
|
21780
21780
|
{
|
21781
21781
|
"disabled": false,
|
21782
|
-
"document": "输入的协议,可选[SRT|RTP|
|
21782
|
+
"document": "输入的协议,可选[SRT|RTP|RTMP_PUSH|RTMP_PULL|RTSP_PULL|RIST]。\t-",
|
21783
21783
|
"example": "SRT",
|
21784
21784
|
"member": "string",
|
21785
21785
|
"name": "Protocol",
|