tccli 3.0.1380.1__py2.py3-none-any.whl → 3.0.1382.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/autoscaling/v20180419/api.json +27 -27
- tccli/services/ckafka/v20190819/api.json +174 -174
- tccli/services/ckafka/v20190819/examples.json +15 -15
- tccli/services/gs/v20191118/api.json +30 -1
- tccli/services/ioa/v20220601/api.json +22 -13
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +375 -4
- tccli/services/lighthouse/v20200324/api.json +598 -0
- tccli/services/lighthouse/v20200324/examples.json +56 -0
- tccli/services/lke/v20231130/api.json +91 -8
- tccli/services/lkeap/v20240522/api.json +47 -1
- tccli/services/lkeap/v20240522/examples.json +6 -0
- tccli/services/mna/mna_client.py +53 -0
- tccli/services/mna/v20210119/api.json +137 -0
- tccli/services/mna/v20210119/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +2 -2
- tccli/services/mqtt/v20240516/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +105 -17
- tccli/services/omics/v20221128/api.json +1 -1
- tccli/services/redis/v20180412/api.json +3 -3
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +10 -0
- tccli/services/tcbr/v20220217/api.json +10 -0
- tccli/services/teo/v20220901/api.json +6 -6
- tccli/services/thpc/v20230321/api.json +18 -14
- tccli/services/tke/v20180525/api.json +11 -11
- tccli/services/trtc/v20190722/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +28 -28
- tccli/services/waf/v20180125/api.json +1442 -102
- tccli/services/waf/v20180125/examples.json +48 -0
- tccli/services/waf/waf_client.py +338 -20
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1382.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1382.1.dist-info}/RECORD +37 -37
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1382.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1382.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1382.1.dist-info}/license_files/LICENSE +0 -0
@@ -128,6 +128,14 @@
|
|
128
128
|
"title": "创建密钥对"
|
129
129
|
}
|
130
130
|
],
|
131
|
+
"CreateMcpServer": [
|
132
|
+
{
|
133
|
+
"document": "创建一个新的MCP Server。",
|
134
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateMcpServer\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"Name\": \"腾讯云 Lighthouse MCP Server\",\n \"Command\": \"bnB4IC15IGxpZ2h0aG91c2UtbWNwLXNlcnZlcg==\",\n \"Description\": \"基于MCP协议的腾讯云Lighthouse MCP Server,借助大模型即可完成实例防火墙配置、实例检测、监控分析等常用功能。\",\n \"Envs\": [\n {\n \"Key\": \"TENCENTCLOUD_SECRET_KEY\",\n \"Value\": \"YOUR_TENCENT_SECRET_KEY\"\n },\n {\n \"Key\": \"TENCENTCLOUD_SECRET_ID\",\n \"Value\": \"YOUR_TENCENT_SECRET_ID\"\n }\n ]\n}",
|
135
|
+
"output": "{\n \"Response\": {\n \"McpServerId\": \"lhms-p2dophob\",\n \"RequestId\": \"54a37c92-9e77-4ba2-a791-925ae44f37f2\"\n }\n}",
|
136
|
+
"title": "创建MCP Server"
|
137
|
+
}
|
138
|
+
],
|
131
139
|
"DeleteBlueprints": [
|
132
140
|
{
|
133
141
|
"document": "删除一个自定义镜像",
|
@@ -454,6 +462,14 @@
|
|
454
462
|
"title": "查询用户密钥对列表"
|
455
463
|
}
|
456
464
|
],
|
465
|
+
"DescribeMcpServers": [
|
466
|
+
{
|
467
|
+
"document": "查询指定实例下的MCP Server列表。",
|
468
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMcpServers\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerIds\": [\n \"lhms-p2dophob\"\n ],\n \"Limit\": 10,\n \"Offset\": 0\n}",
|
469
|
+
"output": "{\n \"Response\": {\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"InstanceName\": \"ai mcp server test\",\n \"McpServerSet\": [\n {\n \"Command\": \"bnB4IC15IGxpZ2h0aG91c2UtbWNwLXNlcnZlcg==\",\n \"Config\": \"{\\\"mcpServers\\\":{\\\"腾讯云 Lighthouse MCP Server\\\":{\\\"url\\\":\\\"http://1.14.57.202/lhms-p2dophob/sse\\\"}}}\",\n \"CreatedTime\": \"2025-08-27T07:33:14Z\",\n \"Description\": \"基于MCP协议的腾讯云Lighthouse MCP Server,借助大模型即可完成实例防火墙配置、实例检测、监控分析等常用功能。\",\n \"EnvSet\": [\n {\n \"Key\": \"TENCENTCLOUD_SECRET_KEY\",\n \"Value\": \"**********\"\n },\n {\n \"Key\": \"TENCENTCLOUD_SECRET_ID\",\n \"Value\": \"**********\"\n }\n ],\n \"IconUrl\": \"https://cloudcache.tencent-cloud.com/qcloud/ui/static/other_external_resource/6e6c2ea3-301f-4ce2-8fd9-3952c6eb04b5.png\",\n \"McpServerId\": \"lhms-p2dophob\",\n \"McpServerType\": \"PUBLIC_PACKAGE\",\n \"Name\": \"腾讯云 Lighthouse MCP Server\",\n \"ServerUrl\": \"http://1.14.57.202/lhms-p2dophob/sse\",\n \"State\": \"RUNNING\",\n \"UpdatedTime\": \"2025-08-27T07:37:43Z\"\n }\n ],\n \"RequestId\": \"fe83a82b-967c-4f58-89d2-9ee20f9dafc5\",\n \"TotalCount\": 1\n }\n}",
|
470
|
+
"title": "查询MCP Server列表"
|
471
|
+
}
|
472
|
+
],
|
457
473
|
"DescribeModifyInstanceBundles": [
|
458
474
|
{
|
459
475
|
"document": "查询实例可修改套餐列表",
|
@@ -708,6 +724,14 @@
|
|
708
724
|
"title": "修改实例的续费标识"
|
709
725
|
}
|
710
726
|
],
|
727
|
+
"ModifyMcpServer": [
|
728
|
+
{
|
729
|
+
"document": "修改指定MCP Server的信息。",
|
730
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyMcpServer\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerId\": \"lhms-p2dophob\",\n \"Name\": \"腾讯云 Lighthouse MCP Server\",\n \"Command\": \"bnB4IC15IGxpZ2h0aG91c2UtbWNwLXNlcnZlcg==\",\n \"Description\": \"基于MCP协议的腾讯云Lighthouse MCP Server,借助大模型即可完成实例防火墙配置、实例检测、监控分析等常用功能。\",\n \"Envs\": [\n {\n \"Key\": \"TENCENTCLOUD_SECRET_KEY\",\n \"Value\": \"MODIFIED_TENCENT_SECRET_KEY\"\n },\n {\n \"Key\": \"TENCENTCLOUD_SECRET_ID\",\n \"Value\": \"MODIFIED_TENCENT_SECRET_ID\"\n }\n ]\n}",
|
731
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"54b97dbc-e8d3-45f0-b648-2934d76c1cf9\"\n }\n}",
|
732
|
+
"title": "修改MCP Server信息"
|
733
|
+
}
|
734
|
+
],
|
711
735
|
"ModifySnapshotAttribute": [
|
712
736
|
{
|
713
737
|
"document": "",
|
@@ -732,6 +756,14 @@
|
|
732
756
|
"title": "删除Docker容器"
|
733
757
|
}
|
734
758
|
],
|
759
|
+
"RemoveMcpServers": [
|
760
|
+
{
|
761
|
+
"document": "删除指定实例下的MCP Server。",
|
762
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveMcpServers\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerIds\": [\n \"lhms-p2dophob\"\n ]\n}",
|
763
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a50de509-5ecb-40db-9ad2-a01cffc8c3f3\"\n }\n}",
|
764
|
+
"title": "删除MCP Server"
|
765
|
+
}
|
766
|
+
],
|
735
767
|
"RenameDockerContainer": [
|
736
768
|
{
|
737
769
|
"document": "",
|
@@ -820,6 +852,14 @@
|
|
820
852
|
"title": "重启Docker容器"
|
821
853
|
}
|
822
854
|
],
|
855
|
+
"RestartMcpServers": [
|
856
|
+
{
|
857
|
+
"document": "重启指定实例下的MCP Server。",
|
858
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RestartMcpServers\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerIds\": [\n \"lhms-p2dophob\"\n ]\n}",
|
859
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"dfca933c-ba03-4c91-a03b-db81f79e0419\"\n }\n}",
|
860
|
+
"title": "重启MCP Server"
|
861
|
+
}
|
862
|
+
],
|
823
863
|
"RunDockerContainers": [
|
824
864
|
{
|
825
865
|
"document": "",
|
@@ -852,6 +892,14 @@
|
|
852
892
|
"title": "启动指定ID的实例"
|
853
893
|
}
|
854
894
|
],
|
895
|
+
"StartMcpServers": [
|
896
|
+
{
|
897
|
+
"document": "开启指定实例下的MCP Server。",
|
898
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartMcpServers\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerIds\": [\n \"lhms-p2dophob\"\n ]\n}",
|
899
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5cee0dea-b7d4-41d2-ad79-4d2a852e6013\"\n }\n}",
|
900
|
+
"title": "开启MCP Server"
|
901
|
+
}
|
902
|
+
],
|
855
903
|
"StopDockerContainers": [
|
856
904
|
{
|
857
905
|
"document": "",
|
@@ -868,6 +916,14 @@
|
|
868
916
|
"title": "关闭实例"
|
869
917
|
}
|
870
918
|
],
|
919
|
+
"StopMcpServers": [
|
920
|
+
{
|
921
|
+
"document": "关闭指定实例下的MCP Server。",
|
922
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopMcpServers\n<公共请求参数>\n\n{\n \"InstanceId\": \"lhins-5h3s0lht\",\n \"McpServerIds\": [\n \"lhms-p2dophob\"\n ]\n}",
|
923
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6cab721b-7a7f-4438-82f9-d19f1bb5a45a\"\n }\n}",
|
924
|
+
"title": "关闭MCP Server"
|
925
|
+
}
|
926
|
+
],
|
871
927
|
"SyncBlueprint": [
|
872
928
|
{
|
873
929
|
"document": "向两个地域同步自定义镜像。",
|
@@ -1027,13 +1027,74 @@
|
|
1027
1027
|
{
|
1028
1028
|
"disabled": false,
|
1029
1029
|
"document": "自定义变量(API参数)",
|
1030
|
-
"example": "
|
1030
|
+
"example": "9sde32de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1031
1031
|
"member": "string",
|
1032
1032
|
"name": "CustomVarId",
|
1033
1033
|
"output_required": false,
|
1034
1034
|
"required": false,
|
1035
1035
|
"type": "string",
|
1036
1036
|
"value_allowed_null": false
|
1037
|
+
},
|
1038
|
+
{
|
1039
|
+
"disabled": false,
|
1040
|
+
"document": "环境变量参数",
|
1041
|
+
"example": "9sde32de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1042
|
+
"member": "string",
|
1043
|
+
"name": "EnvVarId",
|
1044
|
+
"output_required": false,
|
1045
|
+
"required": false,
|
1046
|
+
"type": "string",
|
1047
|
+
"value_allowed_null": false
|
1048
|
+
},
|
1049
|
+
{
|
1050
|
+
"disabled": false,
|
1051
|
+
"document": "应用变量参数",
|
1052
|
+
"example": "27d332de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1053
|
+
"member": "string",
|
1054
|
+
"name": "AppVarId",
|
1055
|
+
"output_required": false,
|
1056
|
+
"required": false,
|
1057
|
+
"type": "string",
|
1058
|
+
"value_allowed_null": false
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"disabled": false,
|
1062
|
+
"document": "系统参数",
|
1063
|
+
"example": "无",
|
1064
|
+
"member": "AgentInputSystemVariable",
|
1065
|
+
"name": "SystemVariable",
|
1066
|
+
"output_required": false,
|
1067
|
+
"required": false,
|
1068
|
+
"type": "object",
|
1069
|
+
"value_allowed_null": false
|
1070
|
+
}
|
1071
|
+
],
|
1072
|
+
"usage": "both"
|
1073
|
+
},
|
1074
|
+
"AgentInputSystemVariable": {
|
1075
|
+
"document": "系统参数",
|
1076
|
+
"members": [
|
1077
|
+
{
|
1078
|
+
"disabled": false,
|
1079
|
+
"document": "系统参数名",
|
1080
|
+
"example": "sdhge",
|
1081
|
+
"member": "string",
|
1082
|
+
"name": "Name",
|
1083
|
+
"output_required": false,
|
1084
|
+
"required": false,
|
1085
|
+
"type": "string",
|
1086
|
+
"value_allowed_null": false
|
1087
|
+
},
|
1088
|
+
{
|
1089
|
+
"disabled": false,
|
1090
|
+
"document": "对话历史轮数的配置;如果Input是系统变量中的“对话历史”时才使用;",
|
1091
|
+
"example": "3",
|
1092
|
+
"member": "int64",
|
1093
|
+
"name": "DialogHistoryLimit",
|
1094
|
+
"output_required": false,
|
1095
|
+
"required": false,
|
1096
|
+
"type": "int",
|
1097
|
+
"value_allowed_null": false
|
1037
1098
|
}
|
1038
1099
|
],
|
1039
1100
|
"usage": "both"
|
@@ -2835,6 +2896,17 @@
|
|
2835
2896
|
"required": false,
|
2836
2897
|
"type": "list",
|
2837
2898
|
"value_allowed_null": false
|
2899
|
+
},
|
2900
|
+
{
|
2901
|
+
"disabled": false,
|
2902
|
+
"document": "创建人昵称\n注意:此字段可能返回 null,表示取不到有效值。",
|
2903
|
+
"example": "创建人",
|
2904
|
+
"member": "string",
|
2905
|
+
"name": "Creator",
|
2906
|
+
"output_required": false,
|
2907
|
+
"required": false,
|
2908
|
+
"type": "string",
|
2909
|
+
"value_allowed_null": true
|
2838
2910
|
}
|
2839
2911
|
],
|
2840
2912
|
"usage": "both"
|
@@ -10383,7 +10455,7 @@
|
|
10383
10455
|
{
|
10384
10456
|
"disabled": false,
|
10385
10457
|
"document": "输出方式 1:流式 2:非流式\n注意:此字段可能返回 null,表示取不到有效值。",
|
10386
|
-
"example": "
|
10458
|
+
"example": "1",
|
10387
10459
|
"member": "uint64",
|
10388
10460
|
"name": "Method",
|
10389
10461
|
"output_required": false,
|
@@ -10394,7 +10466,7 @@
|
|
10394
10466
|
{
|
10395
10467
|
"disabled": false,
|
10396
10468
|
"document": "通用模型回复\n注意:此字段可能返回 null,表示取不到有效值。",
|
10397
|
-
"example": "
|
10469
|
+
"example": "false",
|
10398
10470
|
"member": "bool",
|
10399
10471
|
"name": "UseGeneralKnowledge",
|
10400
10472
|
"output_required": false,
|
@@ -10405,7 +10477,7 @@
|
|
10405
10477
|
{
|
10406
10478
|
"disabled": false,
|
10407
10479
|
"document": "未知回复语,300字符以内\n注意:此字段可能返回 null,表示取不到有效值。",
|
10408
|
-
"example": "
|
10480
|
+
"example": "当前无法回答",
|
10409
10481
|
"member": "string",
|
10410
10482
|
"name": "BareAnswer",
|
10411
10483
|
"output_required": false,
|
@@ -10416,7 +10488,7 @@
|
|
10416
10488
|
{
|
10417
10489
|
"disabled": false,
|
10418
10490
|
"document": "是否展示问题澄清开关\n注意:此字段可能返回 null,表示取不到有效值。",
|
10419
|
-
"example": "
|
10491
|
+
"example": "true",
|
10420
10492
|
"member": "bool",
|
10421
10493
|
"name": "ShowQuestionClarify",
|
10422
10494
|
"output_required": false,
|
@@ -10427,7 +10499,7 @@
|
|
10427
10499
|
{
|
10428
10500
|
"disabled": false,
|
10429
10501
|
"document": "是否打开问题澄清\n注意:此字段可能返回 null,表示取不到有效值。",
|
10430
|
-
"example": "
|
10502
|
+
"example": "false",
|
10431
10503
|
"member": "bool",
|
10432
10504
|
"name": "UseQuestionClarify",
|
10433
10505
|
"output_required": false,
|
@@ -10438,7 +10510,7 @@
|
|
10438
10510
|
{
|
10439
10511
|
"disabled": false,
|
10440
10512
|
"document": "问题澄清关键词列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
10441
|
-
"example": "
|
10513
|
+
"example": "[\"歧义\"]",
|
10442
10514
|
"member": "string",
|
10443
10515
|
"name": "QuestionClarifyKeywords",
|
10444
10516
|
"output_required": false,
|
@@ -10449,13 +10521,24 @@
|
|
10449
10521
|
{
|
10450
10522
|
"disabled": false,
|
10451
10523
|
"document": "是否打开推荐问题开关\n注意:此字段可能返回 null,表示取不到有效值。",
|
10452
|
-
"example": "
|
10524
|
+
"example": "false",
|
10453
10525
|
"member": "bool",
|
10454
10526
|
"name": "UseRecommended",
|
10455
10527
|
"output_required": false,
|
10456
10528
|
"required": false,
|
10457
10529
|
"type": "bool",
|
10458
10530
|
"value_allowed_null": true
|
10531
|
+
},
|
10532
|
+
{
|
10533
|
+
"disabled": false,
|
10534
|
+
"document": "推荐问模式,0.结合知识库&对话历史推荐问题Prompt(默认) 1.仅结合知识库输出推荐问的prompt\n注意:此字段可能返回 null,表示取不到有效值。",
|
10535
|
+
"example": "1",
|
10536
|
+
"member": "uint64",
|
10537
|
+
"name": "RecommendedPromptMode",
|
10538
|
+
"output_required": false,
|
10539
|
+
"required": false,
|
10540
|
+
"type": "int",
|
10541
|
+
"value_allowed_null": true
|
10459
10542
|
}
|
10460
10543
|
],
|
10461
10544
|
"usage": "both"
|
@@ -1295,7 +1295,7 @@
|
|
1295
1295
|
},
|
1296
1296
|
{
|
1297
1297
|
"disabled": false,
|
1298
|
-
"document": "
|
1298
|
+
"document": "文件大小,单位:字节",
|
1299
1299
|
"example": "100",
|
1300
1300
|
"member": "int64",
|
1301
1301
|
"name": "FileSize",
|
@@ -1323,6 +1323,32 @@
|
|
1323
1323
|
],
|
1324
1324
|
"usage": "both"
|
1325
1325
|
},
|
1326
|
+
"ErrorInfo": {
|
1327
|
+
"document": "错误信息",
|
1328
|
+
"members": [
|
1329
|
+
{
|
1330
|
+
"disabled": false,
|
1331
|
+
"document": "错误码",
|
1332
|
+
"example": "FailedOperation.FileParseError",
|
1333
|
+
"member": "string",
|
1334
|
+
"name": "Code",
|
1335
|
+
"output_required": false,
|
1336
|
+
"type": "string",
|
1337
|
+
"value_allowed_null": false
|
1338
|
+
},
|
1339
|
+
{
|
1340
|
+
"disabled": false,
|
1341
|
+
"document": "错误信息",
|
1342
|
+
"example": "file parse timeout",
|
1343
|
+
"member": "string",
|
1344
|
+
"name": "Message",
|
1345
|
+
"output_required": false,
|
1346
|
+
"type": "string",
|
1347
|
+
"value_allowed_null": false
|
1348
|
+
}
|
1349
|
+
],
|
1350
|
+
"usage": "out"
|
1351
|
+
},
|
1326
1352
|
"GetCharacterUsageRequest": {
|
1327
1353
|
"document": "GetCharacterUsage请求参数结构体",
|
1328
1354
|
"members": [],
|
@@ -1474,6 +1500,16 @@
|
|
1474
1500
|
"type": "object",
|
1475
1501
|
"value_allowed_null": false
|
1476
1502
|
},
|
1503
|
+
{
|
1504
|
+
"disabled": false,
|
1505
|
+
"document": "文档解析任务失败错误信息,当文档解析任务失败会返回具体的错误信息",
|
1506
|
+
"example": "无",
|
1507
|
+
"member": "ErrorInfo",
|
1508
|
+
"name": "Error",
|
1509
|
+
"output_required": false,
|
1510
|
+
"type": "object",
|
1511
|
+
"value_allowed_null": false
|
1512
|
+
},
|
1477
1513
|
{
|
1478
1514
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1479
1515
|
"member": "string",
|
@@ -1541,6 +1577,16 @@
|
|
1541
1577
|
"type": "object",
|
1542
1578
|
"value_allowed_null": false
|
1543
1579
|
},
|
1580
|
+
{
|
1581
|
+
"disabled": false,
|
1582
|
+
"document": "文档拆分失败的错误信息,当拆分任务失败时返回该错误信息",
|
1583
|
+
"example": "无",
|
1584
|
+
"member": "ErrorInfo",
|
1585
|
+
"name": "Error",
|
1586
|
+
"output_required": false,
|
1587
|
+
"type": "object",
|
1588
|
+
"value_allowed_null": false
|
1589
|
+
},
|
1544
1590
|
{
|
1545
1591
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1546
1592
|
"member": "string",
|
@@ -122,6 +122,12 @@
|
|
122
122
|
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"25adcef61750343903609\"\n}",
|
123
123
|
"output": "{\n \"Response\": {\n \"DocumentRecognizeResultUrl\": \"https://document-restruction-1258344699.cos.ap-guangzhou.myqcloud.com/doc_parse/output_files/a9c6a9482c72412fa84445a44ss125531.zip?q-sign-algorithm=sha1&q-ak=AKIDlWFaadfHLNbidLwPqOrAKGzXrx40scL7l&q-sign-time=1715503711%3B1718804311&q-key-time=1718855711%3B1718804311&q-header-list=host&q-url-param-list=&q-signature=71b568b8632d7e45gertdc3d235ef68d41fdfe7f8\",\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Success\",\n \"Usage\": {\n \"PageNumber\": 10,\n \"TotalTokens\": 2048\n }\n }\n}",
|
124
124
|
"title": "接口调用成功示例"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"document": "",
|
128
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"25adcef61750343903609\"\n}",
|
129
|
+
"output": "{\n \"Response\": {\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Failed\",\n \"Error\": {\n \"Code\": \"InvalidParameter.FileURLInvalid\",\n \"Message\": \"url download failed\"\n }\n }\n}",
|
130
|
+
"title": "任务处理失败示例"
|
125
131
|
}
|
126
132
|
],
|
127
133
|
"GetSplitDocumentResult": [
|
tccli/services/mna/mna_client.py
CHANGED
@@ -1473,6 +1473,58 @@ def doGetDevice(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
+
def doReportOrder(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.MnaClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.ReportOrderRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.ReportOrder(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1476
1528
|
def doGroupDeleteDevice(args, parsed_globals):
|
1477
1529
|
g_param = parse_global_arg(parsed_globals)
|
1478
1530
|
|
@@ -2136,6 +2188,7 @@ ACTION_MAP = {
|
|
2136
2188
|
"AddL3Conn": doAddL3Conn,
|
2137
2189
|
"CreateEncryptedKey": doCreateEncryptedKey,
|
2138
2190
|
"GetDevice": doGetDevice,
|
2191
|
+
"ReportOrder": doReportOrder,
|
2139
2192
|
"GroupDeleteDevice": doGroupDeleteDevice,
|
2140
2193
|
"OrderFlowPackage": doOrderFlowPackage,
|
2141
2194
|
"GetStatisticData": doGetStatisticData,
|
@@ -231,6 +231,13 @@
|
|
231
231
|
"output": "OrderPerLicenseResponse",
|
232
232
|
"status": "online"
|
233
233
|
},
|
234
|
+
"ReportOrder": {
|
235
|
+
"document": "用户上报自定义的订单信息,多网聚合加速服务将相关信息进行保存",
|
236
|
+
"input": "ReportOrderRequest",
|
237
|
+
"name": "订单信息上报",
|
238
|
+
"output": "ReportOrderResponse",
|
239
|
+
"status": "online"
|
240
|
+
},
|
234
241
|
"SetNotifyUrl": {
|
235
242
|
"document": "设置用户流量告警信息接口,通过该接口设置流量包告警阈值以及告警时回调的url和key",
|
236
243
|
"input": "SetNotifyUrlRequest",
|
@@ -3649,6 +3656,72 @@
|
|
3649
3656
|
],
|
3650
3657
|
"type": "object"
|
3651
3658
|
},
|
3659
|
+
"OrderInfo": {
|
3660
|
+
"document": "返回上报的订单信息",
|
3661
|
+
"members": [
|
3662
|
+
{
|
3663
|
+
"disabled": false,
|
3664
|
+
"document": "父帐号uin",
|
3665
|
+
"example": "700001394326",
|
3666
|
+
"member": "string",
|
3667
|
+
"name": "Uin",
|
3668
|
+
"output_required": false,
|
3669
|
+
"type": "string",
|
3670
|
+
"value_allowed_null": false
|
3671
|
+
},
|
3672
|
+
{
|
3673
|
+
"disabled": false,
|
3674
|
+
"document": "项目id",
|
3675
|
+
"example": "4002428",
|
3676
|
+
"member": "string",
|
3677
|
+
"name": "ProjectId",
|
3678
|
+
"output_required": false,
|
3679
|
+
"type": "string",
|
3680
|
+
"value_allowed_null": false
|
3681
|
+
},
|
3682
|
+
{
|
3683
|
+
"disabled": false,
|
3684
|
+
"document": "用量类型",
|
3685
|
+
"example": "pack_1",
|
3686
|
+
"member": "string",
|
3687
|
+
"name": "PackageType",
|
3688
|
+
"output_required": false,
|
3689
|
+
"type": "string",
|
3690
|
+
"value_allowed_null": false
|
3691
|
+
},
|
3692
|
+
{
|
3693
|
+
"disabled": false,
|
3694
|
+
"document": "订单编号唯一标识符",
|
3695
|
+
"example": "100003848",
|
3696
|
+
"member": "string",
|
3697
|
+
"name": "OrderId",
|
3698
|
+
"output_required": true,
|
3699
|
+
"type": "string",
|
3700
|
+
"value_allowed_null": false
|
3701
|
+
},
|
3702
|
+
{
|
3703
|
+
"disabled": false,
|
3704
|
+
"document": "上报月份,默认当前月",
|
3705
|
+
"example": "2025-08",
|
3706
|
+
"member": "string",
|
3707
|
+
"name": "ReportMonth",
|
3708
|
+
"output_required": false,
|
3709
|
+
"type": "string",
|
3710
|
+
"value_allowed_null": false
|
3711
|
+
},
|
3712
|
+
{
|
3713
|
+
"disabled": false,
|
3714
|
+
"document": "数据更新时间",
|
3715
|
+
"example": "2025-08-02 15:04:05",
|
3716
|
+
"member": "string",
|
3717
|
+
"name": "Updated",
|
3718
|
+
"output_required": false,
|
3719
|
+
"type": "string",
|
3720
|
+
"value_allowed_null": false
|
3721
|
+
}
|
3722
|
+
],
|
3723
|
+
"usage": "out"
|
3724
|
+
},
|
3652
3725
|
"OrderPerLicenseRequest": {
|
3653
3726
|
"document": "OrderPerLicense请求参数结构体",
|
3654
3727
|
"members": [
|
@@ -3722,6 +3795,70 @@
|
|
3722
3795
|
],
|
3723
3796
|
"type": "object"
|
3724
3797
|
},
|
3798
|
+
"ReportOrderRequest": {
|
3799
|
+
"document": "ReportOrder请求参数结构体",
|
3800
|
+
"members": [
|
3801
|
+
{
|
3802
|
+
"disabled": false,
|
3803
|
+
"document": "订单编号唯一标识符",
|
3804
|
+
"example": "100003848",
|
3805
|
+
"member": "string",
|
3806
|
+
"name": "OrderId",
|
3807
|
+
"required": true,
|
3808
|
+
"type": "string"
|
3809
|
+
},
|
3810
|
+
{
|
3811
|
+
"disabled": false,
|
3812
|
+
"document": "项目id",
|
3813
|
+
"example": "4002428",
|
3814
|
+
"member": "string",
|
3815
|
+
"name": "ProjectId",
|
3816
|
+
"required": false,
|
3817
|
+
"type": "string"
|
3818
|
+
},
|
3819
|
+
{
|
3820
|
+
"disabled": false,
|
3821
|
+
"document": "用量类型",
|
3822
|
+
"example": "pack_1",
|
3823
|
+
"member": "string",
|
3824
|
+
"name": "PackageType",
|
3825
|
+
"required": false,
|
3826
|
+
"type": "string"
|
3827
|
+
},
|
3828
|
+
{
|
3829
|
+
"disabled": false,
|
3830
|
+
"document": "上报月份,默认当前月",
|
3831
|
+
"example": "2025-08",
|
3832
|
+
"member": "string",
|
3833
|
+
"name": "ReportMonth",
|
3834
|
+
"required": false,
|
3835
|
+
"type": "string"
|
3836
|
+
}
|
3837
|
+
],
|
3838
|
+
"type": "object"
|
3839
|
+
},
|
3840
|
+
"ReportOrderResponse": {
|
3841
|
+
"document": "ReportOrder返回参数结构体",
|
3842
|
+
"members": [
|
3843
|
+
{
|
3844
|
+
"disabled": false,
|
3845
|
+
"document": "订单信息",
|
3846
|
+
"example": "无",
|
3847
|
+
"member": "OrderInfo",
|
3848
|
+
"name": "OrderInfo",
|
3849
|
+
"output_required": false,
|
3850
|
+
"type": "object",
|
3851
|
+
"value_allowed_null": false
|
3852
|
+
},
|
3853
|
+
{
|
3854
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3855
|
+
"member": "string",
|
3856
|
+
"name": "RequestId",
|
3857
|
+
"type": "string"
|
3858
|
+
}
|
3859
|
+
],
|
3860
|
+
"type": "object"
|
3861
|
+
},
|
3725
3862
|
"SetNotifyUrlRequest": {
|
3726
3863
|
"document": "SetNotifyUrl请求参数结构体",
|
3727
3864
|
"members": [
|
@@ -276,6 +276,14 @@
|
|
276
276
|
"title": "示例1"
|
277
277
|
}
|
278
278
|
],
|
279
|
+
"ReportOrder": [
|
280
|
+
{
|
281
|
+
"document": "用于用户上报自定义的订单信息,多网聚合加速服务将相关信息进行保存",
|
282
|
+
"input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReportOrder\n<公共请求参数>\n\n{\n \"OrderId\": \"100003848\",\n \"ProjectId\": \"4002428\",\n \"PackageType\": \"pack_1\",\n \"ReportMonth\": \"2025-08\"\n}",
|
283
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3f00ee83-0ce6-4148-86c5-e3e3dc44920b\",\n \"OrderInfo\": {\n \"OrderId\": \"100003848\",\n \"ProjectId\": \"4002428\",\n \"PackageType\": \"pack_1\",\n \"ReportMonth\": \"2025-08\"\n }\n }\n}",
|
284
|
+
"title": "上报订单信息"
|
285
|
+
}
|
286
|
+
],
|
279
287
|
"SetNotifyUrl": [
|
280
288
|
{
|
281
289
|
"document": "",
|
@@ -20588,7 +20588,7 @@
|
|
20588
20588
|
{
|
20589
20589
|
"disabled": true,
|
20590
20590
|
"document": "最大block\n注意:此字段可能返回 null,表示取不到有效值。",
|
20591
|
-
"example": "
|
20591
|
+
"example": "16MB",
|
20592
20592
|
"member": "string",
|
20593
20593
|
"name": "MaxBlockSize",
|
20594
20594
|
"output_required": true,
|
@@ -20599,7 +20599,7 @@
|
|
20599
20599
|
{
|
20600
20600
|
"disabled": true,
|
20601
20601
|
"document": "Label\n注意:此字段可能返回 null,表示取不到有效值。",
|
20602
|
-
"example": "
|
20602
|
+
"example": "[{\"instance_id\": \"prom-xxxxx\"}]",
|
20603
20603
|
"member": "string",
|
20604
20604
|
"name": "Label",
|
20605
20605
|
"output_required": true,
|