tccli 3.0.1287.1__py2.py3-none-any.whl → 3.0.1289.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/plugins/sso/__init__.py +11 -1
- tccli/plugins/sso/login.py +3 -3
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bi/v20220105/api.json +43 -0
- tccli/services/billing/v20180709/api.json +564 -504
- tccli/services/captcha/v20190722/api.json +79 -77
- tccli/services/cdc/v20201214/api.json +16 -16
- tccli/services/cdwpg/v20201230/api.json +5 -5
- tccli/services/cdwpg/v20201230/examples.json +6 -6
- tccli/services/cdz/v20221123/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +197 -197
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +110 -5
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +102 -24
- tccli/services/dbbrain/dbbrain_client.py +383 -12
- tccli/services/dbbrain/v20210527/api.json +884 -101
- tccli/services/dbbrain/v20210527/examples.json +56 -0
- tccli/services/domain/v20180808/api.json +52 -32
- tccli/services/dts/v20180330/api.json +34 -34
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +225 -223
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +53 -2
- tccli/services/essbasic/v20210526/api.json +54 -3
- tccli/services/hunyuan/v20230901/api.json +45 -12
- tccli/services/iotexplorer/iotexplorer_client.py +159 -0
- tccli/services/iotexplorer/v20190423/api.json +561 -0
- tccli/services/iotexplorer/v20190423/examples.json +24 -0
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20211125/api.json +105 -0
- tccli/services/iotvideo/v20211125/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +46 -46
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/v20231130/api.json +6 -6
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/mariadb/v20170312/api.json +30 -30
- tccli/services/mongodb/v20190725/api.json +3 -3
- tccli/services/mps/v20190612/api.json +88 -6
- tccli/services/mqtt/v20240516/api.json +3 -3
- tccli/services/mqtt/v20240516/examples.json +5 -11
- tccli/services/organization/v20210331/api.json +113 -113
- tccli/services/redis/v20180412/api.json +4 -4
- tccli/services/ses/v20201002/api.json +1 -1
- tccli/services/svp/v20240125/api.json +1 -1
- tccli/services/tat/v20201028/api.json +7 -7
- tccli/services/tcb/v20180608/api.json +236 -235
- tccli/services/tcb/v20180608/examples.json +1 -7
- tccli/services/tdmq/v20200217/api.json +231 -221
- tccli/services/teo/v20220901/api.json +670 -12
- tccli/services/teo/v20220901/examples.json +21 -3
- tccli/services/tione/v20211111/api.json +64 -6
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +61 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trro/trro_client.py +53 -0
- tccli/services/trro/v20220325/api.json +70 -0
- tccli/services/trro/v20220325/examples.json +8 -0
- tccli/services/vdb/v20230616/api.json +31 -2
- tccli/services/vdb/v20230616/examples.json +8 -2
- tccli/services/vrs/v20200824/api.json +14 -2
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +225 -0
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- tccli/services/wedata/v20210820/api.json +48 -0
- {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/RECORD +77 -77
- {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/license_files/LICENSE +0 -0
@@ -1365,21 +1365,39 @@
|
|
1365
1365
|
}
|
1366
1366
|
],
|
1367
1367
|
"ModifySecurityPolicy": [
|
1368
|
+
{
|
1369
|
+
"document": "修改eotest.com站点下a.eotest.com域名策略",
|
1370
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Host\",\n \"Host\": \"a.eotest.com\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n },\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ]\n }\n }\n}",
|
1371
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-777c481da684\"\n }\n}",
|
1372
|
+
"title": "修改域名策略"
|
1373
|
+
},
|
1374
|
+
{
|
1375
|
+
"document": "修改eotest.com站点下temp-00iel413模板策略",
|
1376
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"Template\",\n \"TemplateId\": \"temp-00iel413\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"CustomRules\": {\n \"Rules\": [\n {\n \"Id\": \"1492837231\",\n \"Name\": \"SampleBasicACLRule\",\n \"Condition\": \"${http.request.ip} in ['1.1.1.1', '10.10.10.0/24', ${security.ip_group['123'@'zone-2xsnpvkhdjes']} ]\",\n \"Action\": {\n \"Name\": \"Deny\"\n },\n \"Priority\": 10,\n \"Enabled\": \"on\"\n }\n ]\n }\n }\n}",
|
1377
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-777c481da684\"\n }\n}",
|
1378
|
+
"title": "修改模板策略"
|
1379
|
+
},
|
1380
|
+
{
|
1381
|
+
"document": "修改eotest.com站点级策略",
|
1382
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"ZoneDefaultPolicy\",\n \"SecurityConfig\": {},\n \"SecurityPolicy\": {\n \"ManagedRules\": {\n \"Enabled\": \"on\",\n \"AutoUpdate\": {\n \"AutoUpdateToLatestVersion\": \"off\",\n \"RulesetVersion\": \"2023-12-21T12:00:32Z\"\n },\n \"SemanticAnalysis\": \"on\",\n \"DetectionOnly\": \"on\",\n \"ManagedRuleGroups\": [\n {\n \"GroupId\": \"wafmanagedrulegroup-vulnerability-scanners\",\n \"SensitivityLevel\": \"wafmanagedrule-sensitivity-level-extreme\",\n \"Action\": {\n \"Name\": \"Monitor\"\n }\n }\n ]\n }\n }\n}",
|
1383
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-777c481da684\"\n }\n}",
|
1384
|
+
"title": "修改站点级策略"
|
1385
|
+
},
|
1368
1386
|
{
|
1369
1387
|
"document": "修改a.eotest.com域名七层安全配置",
|
1370
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"Entity\": \"a.eotest.com\",\n \"SecurityConfig\": {\n \"WafConfig\": {\n \"Switch\": \"on\",\n \"WafRule\": {\n \"Switch\": \"on\",\n \"ObserveRuleIDs\": [],\n \"BlockRuleIDs\": [\n 162502146\n ]\n },\n \"Mode\": \"block\",\n \"Level\": \"loose\"\n }\n }
|
1388
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"a.eotest.com\",\n \"SecurityConfig\": {\n \"WafConfig\": {\n \"Switch\": \"on\",\n \"WafRule\": {\n \"Switch\": \"on\",\n \"ObserveRuleIDs\": [],\n \"BlockRuleIDs\": [\n 162502146\n ]\n },\n \"Mode\": \"block\",\n \"Level\": \"loose\"\n }\n }\n}",
|
1371
1389
|
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-2e6c481dae23\"\n }\n}",
|
1372
1390
|
"title": "修改安全配置"
|
1373
1391
|
},
|
1374
1392
|
{
|
1375
1393
|
"document": "在WAF防护中,如果业务存在某个场景(如路径为/skipwaf的HTTP请求)需要对部分字段(如HTTP Header的全部Key)进行加白以此来跳过WAF安全防护,则可以使用如下配置。",
|
1376
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"Entity\": \"*.eotest.com\",\n \"SecurityConfig\": {\n \"ExceptConfig\": {\n \"Switch\": \"on\",\n \"ExceptUserRules\": [\n {\n \"Action\": \"skip\",\n \"ExceptUserRuleConditions\": [\n {\n \"MatchContent\": \"/skipwaf\",\n \"MatchFrom\": \"cgi\",\n \"
|
1394
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"*.eotest.com\",\n \"SecurityConfig\": {\n \"ExceptConfig\": {\n \"Switch\": \"on\",\n \"ExceptUserRules\": [\n {\n \"Action\": \"skip\",\n \"ExceptUserRuleConditions\": [\n {\n \"MatchContent\": \"/skipwaf\",\n \"MatchFrom\": \"cgi\",\n \"Operator\": \"equal\"\n }\n ],\n \"ExceptUserRuleScope\": {\n \"Type\": \"partial\",\n \"PartialModules\": [\n {\n \"Module\": \"waf\",\n \"Include\": [\n 106247778\n ]\n }\n ],\n \"SkipConditions\": [\n {\n \"MatchContent\": [],\n \"MatchFrom\": [],\n \"Selector\": \"keys\",\n \"Type\": \"header_fields\"\n }\n ]\n },\n \"RuleID\": 0,\n \"RuleName\": \"first_webshell\",\n \"RulePriority\": 0,\n \"RuleStatus\": \"on\",\n \"UpdateTime\": \"2022-09-22T03:00:10Z\"\n }\n ]\n }\n }\n}",
|
1377
1395
|
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-2e6c481dae44\"\n }\n}",
|
1378
1396
|
"title": "修改安全配置中的例外规则并加白字段的场景"
|
1379
1397
|
},
|
1380
1398
|
{
|
1381
1399
|
"document": "在WAF防护中,如果业务存在某个场景(如路径为/skipwaf的HTTP请求)需要对部分字段(如HTTP Header中的YourSkipHeader对应的Value)进行加白以此来跳过WAF安全防护,则可以使用如下配置。",
|
1382
|
-
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"Entity\": \"*.eotest.com\",\n \"SecurityConfig\": {\n \"ExceptConfig\": {\n \"Switch\": \"on\",\n \"ExceptUserRules\": [\n {\n \"Action\": \"skip\",\n \"ExceptUserRuleConditions\": [\n {\n \"MatchContent\": \"/skipwaf\",\n \"MatchFrom\": \"cgi\",\n \"
|
1400
|
+
"input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySecurityPolicy\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-fa89j239a\",\n \"Entity\": \"*.eotest.com\",\n \"SecurityConfig\": {\n \"ExceptConfig\": {\n \"Switch\": \"on\",\n \"ExceptUserRules\": [\n {\n \"Action\": \"skip\",\n \"ExceptUserRuleConditions\": [\n {\n \"MatchContent\": \"/skipwaf\",\n \"MatchFrom\": \"cgi\",\n \"Operator\": \"equal\"\n }\n ],\n \"ExceptUserRuleScope\": {\n \"Type\": \"partial\",\n \"PartialModules\": [\n {\n \"Module\": \"waf\",\n \"Include\": [\n 106247778\n ]\n }\n ],\n \"SkipConditions\": [\n {\n \"MatchContent\": [],\n \"MatchFrom\": [\n \"YourSkipHeader\"\n ],\n \"MatchFromType\": \"equal\",\n \"Selector\": \"values\",\n \"Type\": \"header_fields\"\n }\n ]\n },\n \"RuleID\": 0,\n \"RuleName\": \"first_webshell\",\n \"RulePriority\": 0,\n \"RuleStatus\": \"on\",\n \"UpdateTime\": \"2022-09-22T03:00:10Z\"\n }\n ]\n }\n }\n}",
|
1383
1401
|
"output": "{\n \"Response\": {\n \"RequestId\": \"08b32010-ab25-42a4-b923-2e6c481dae66\"\n }\n}",
|
1384
1402
|
"title": "修改安全配置中的例外规则并加白Header指定key字段的场景"
|
1385
1403
|
}
|
@@ -1131,6 +1131,24 @@
|
|
1131
1131
|
"name": "InstancePerReplicas",
|
1132
1132
|
"required": false,
|
1133
1133
|
"type": "int"
|
1134
|
+
},
|
1135
|
+
{
|
1136
|
+
"disabled": false,
|
1137
|
+
"document": "30",
|
1138
|
+
"example": "服务的优雅退出时限。单位为秒,默认值为30,最小为1",
|
1139
|
+
"member": "int64",
|
1140
|
+
"name": "TerminationGracePeriodSeconds",
|
1141
|
+
"required": false,
|
1142
|
+
"type": "int"
|
1143
|
+
},
|
1144
|
+
{
|
1145
|
+
"disabled": false,
|
1146
|
+
"document": "[\"sleep\",\"60\"]",
|
1147
|
+
"example": "服务实例停止前执行的命令,执行完毕或执行时间超过优雅退出时限后实例结束",
|
1148
|
+
"member": "string",
|
1149
|
+
"name": "PreStopCommand",
|
1150
|
+
"required": false,
|
1151
|
+
"type": "list"
|
1134
1152
|
}
|
1135
1153
|
],
|
1136
1154
|
"type": "object"
|
@@ -6420,6 +6438,24 @@
|
|
6420
6438
|
"name": "InstancePerReplicas",
|
6421
6439
|
"required": false,
|
6422
6440
|
"type": "int"
|
6441
|
+
},
|
6442
|
+
{
|
6443
|
+
"disabled": false,
|
6444
|
+
"document": "30",
|
6445
|
+
"example": "服务的优雅退出时限。单位为秒,默认值为30,最小为1",
|
6446
|
+
"member": "int64",
|
6447
|
+
"name": "TerminationGracePeriodSeconds",
|
6448
|
+
"required": false,
|
6449
|
+
"type": "int"
|
6450
|
+
},
|
6451
|
+
{
|
6452
|
+
"disabled": false,
|
6453
|
+
"document": "[\"sleep\",\"60\"]",
|
6454
|
+
"example": "服务实例停止前执行的命令,执行完毕或执行时间超过优雅退出时限后实例结束",
|
6455
|
+
"member": "string",
|
6456
|
+
"name": "PreStopCommand",
|
6457
|
+
"required": false,
|
6458
|
+
"type": "list"
|
6423
6459
|
}
|
6424
6460
|
],
|
6425
6461
|
"type": "object"
|
@@ -8771,7 +8807,7 @@
|
|
8771
8807
|
{
|
8772
8808
|
"disabled": false,
|
8773
8809
|
"document": "镜像信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
8774
|
-
"example": "
|
8810
|
+
"example": "无",
|
8775
8811
|
"member": "ImageInfo",
|
8776
8812
|
"name": "ImageInfo",
|
8777
8813
|
"output_required": true,
|
@@ -8793,7 +8829,7 @@
|
|
8793
8829
|
{
|
8794
8830
|
"disabled": false,
|
8795
8831
|
"document": "资源信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
8796
|
-
"example": "
|
8832
|
+
"example": "无",
|
8797
8833
|
"member": "ResourceInfo",
|
8798
8834
|
"name": "Resources",
|
8799
8835
|
"output_required": true,
|
@@ -8815,7 +8851,7 @@
|
|
8815
8851
|
{
|
8816
8852
|
"disabled": false,
|
8817
8853
|
"document": "模型信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
8818
|
-
"example": "
|
8854
|
+
"example": "无",
|
8819
8855
|
"member": "ModelInfo",
|
8820
8856
|
"name": "ModelInfo",
|
8821
8857
|
"output_required": true,
|
@@ -8837,7 +8873,7 @@
|
|
8837
8873
|
{
|
8838
8874
|
"disabled": false,
|
8839
8875
|
"document": "日志配置\n注意:此字段可能返回 null,表示取不到有效值。",
|
8840
|
-
"example": "
|
8876
|
+
"example": "无",
|
8841
8877
|
"member": "LogConfig",
|
8842
8878
|
"name": "LogConfig",
|
8843
8879
|
"output_required": true,
|
@@ -8859,7 +8895,7 @@
|
|
8859
8895
|
{
|
8860
8896
|
"disabled": false,
|
8861
8897
|
"document": "hpa配置\n注意:此字段可能返回 null,表示取不到有效值。",
|
8862
|
-
"example": "
|
8898
|
+
"example": "无",
|
8863
8899
|
"member": "HorizontalPodAutoscaler",
|
8864
8900
|
"name": "HorizontalPodAutoscaler",
|
8865
8901
|
"output_required": true,
|
@@ -8892,7 +8928,7 @@
|
|
8892
8928
|
{
|
8893
8929
|
"disabled": false,
|
8894
8930
|
"document": "资源总量\n注意:此字段可能返回 null,表示取不到有效值。",
|
8895
|
-
"example": "
|
8931
|
+
"example": "无",
|
8896
8932
|
"member": "ResourceInfo",
|
8897
8933
|
"name": "ResourceTotal",
|
8898
8934
|
"output_required": true,
|
@@ -9108,6 +9144,28 @@
|
|
9108
9144
|
"required": false,
|
9109
9145
|
"type": "int",
|
9110
9146
|
"value_allowed_null": true
|
9147
|
+
},
|
9148
|
+
{
|
9149
|
+
"disabled": false,
|
9150
|
+
"document": "服务的优雅退出时限。单位为秒,默认值为30,最小为1",
|
9151
|
+
"example": "30",
|
9152
|
+
"member": "int64",
|
9153
|
+
"name": "TerminationGracePeriodSeconds",
|
9154
|
+
"output_required": false,
|
9155
|
+
"required": false,
|
9156
|
+
"type": "int",
|
9157
|
+
"value_allowed_null": false
|
9158
|
+
},
|
9159
|
+
{
|
9160
|
+
"disabled": false,
|
9161
|
+
"document": "服务实例停止前执行的命令,执行完毕或执行时间超过优雅退出时限后实例结束",
|
9162
|
+
"example": "[\"sleep\",\"60\"]",
|
9163
|
+
"member": "string",
|
9164
|
+
"name": "PreStopCommand",
|
9165
|
+
"output_required": false,
|
9166
|
+
"required": false,
|
9167
|
+
"type": "list",
|
9168
|
+
"value_allowed_null": false
|
9111
9169
|
}
|
9112
9170
|
],
|
9113
9171
|
"usage": "both"
|
@@ -1681,6 +1681,58 @@ def doCreateInstance(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
+
def doResetConsumerGroupOffset(args, parsed_globals):
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
1686
|
+
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
+
cred = credential.CVMRoleCredential()
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
+
)
|
1694
|
+
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):
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
+
else:
|
1697
|
+
cred = credential.Credential(
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
+
)
|
1700
|
+
http_profile = HttpProfile(
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
+
reqMethod="POST",
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
+
)
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
+
client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.ResetConsumerGroupOffsetRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.ResetConsumerGroupOffset(model)
|
1718
|
+
result = rsp.to_json_string()
|
1719
|
+
try:
|
1720
|
+
json_obj = json.loads(result)
|
1721
|
+
except TypeError as e:
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
+
break
|
1725
|
+
cur_time = time.time()
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
+
else:
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
+
|
1735
|
+
|
1684
1736
|
def doDescribeMQTTTopicList(args, parsed_globals):
|
1685
1737
|
g_param = parse_global_arg(parsed_globals)
|
1686
1738
|
|
@@ -2972,6 +3024,7 @@ ACTION_MAP = {
|
|
2972
3024
|
"DescribeConsumerGroup": doDescribeConsumerGroup,
|
2973
3025
|
"CreateTopic": doCreateTopic,
|
2974
3026
|
"CreateInstance": doCreateInstance,
|
3027
|
+
"ResetConsumerGroupOffset": doResetConsumerGroupOffset,
|
2975
3028
|
"DescribeMQTTTopicList": doDescribeMQTTTopicList,
|
2976
3029
|
"DescribeMQTTInstance": doDescribeMQTTInstance,
|
2977
3030
|
"CreateMQTTTopic": doCreateMQTTTopic,
|
@@ -391,6 +391,13 @@
|
|
391
391
|
"name": "重新发送死信消息",
|
392
392
|
"output": "ResendDeadLetterMessageResponse",
|
393
393
|
"status": "online"
|
394
|
+
},
|
395
|
+
"ResetConsumerGroupOffset": {
|
396
|
+
"document": "重置消费位点",
|
397
|
+
"input": "ResetConsumerGroupOffsetRequest",
|
398
|
+
"name": "重置消费位点",
|
399
|
+
"output": "ResetConsumerGroupOffsetResponse",
|
400
|
+
"status": "online"
|
394
401
|
}
|
395
402
|
},
|
396
403
|
"metadata": {
|
@@ -6751,6 +6758,60 @@
|
|
6751
6758
|
],
|
6752
6759
|
"type": "object"
|
6753
6760
|
},
|
6761
|
+
"ResetConsumerGroupOffsetRequest": {
|
6762
|
+
"document": "ResetConsumerGroupOffset请求参数结构体",
|
6763
|
+
"members": [
|
6764
|
+
{
|
6765
|
+
"disabled": false,
|
6766
|
+
"document": "集群ID",
|
6767
|
+
"example": "rmq-72mo3a9o",
|
6768
|
+
"member": "string",
|
6769
|
+
"name": "InstanceId",
|
6770
|
+
"required": true,
|
6771
|
+
"type": "string"
|
6772
|
+
},
|
6773
|
+
{
|
6774
|
+
"disabled": false,
|
6775
|
+
"document": "主题名称",
|
6776
|
+
"example": "test_topic",
|
6777
|
+
"member": "string",
|
6778
|
+
"name": "Topic",
|
6779
|
+
"required": true,
|
6780
|
+
"type": "string"
|
6781
|
+
},
|
6782
|
+
{
|
6783
|
+
"disabled": false,
|
6784
|
+
"document": "重置位点时间(单位:毫秒)-1表示重置到最新位点",
|
6785
|
+
"example": "-1",
|
6786
|
+
"member": "int64",
|
6787
|
+
"name": "ResetTimestamp",
|
6788
|
+
"required": true,
|
6789
|
+
"type": "int"
|
6790
|
+
},
|
6791
|
+
{
|
6792
|
+
"disabled": false,
|
6793
|
+
"document": "消费组名称",
|
6794
|
+
"example": "test_group",
|
6795
|
+
"member": "string",
|
6796
|
+
"name": "ConsumerGroup",
|
6797
|
+
"required": false,
|
6798
|
+
"type": "string"
|
6799
|
+
}
|
6800
|
+
],
|
6801
|
+
"type": "object"
|
6802
|
+
},
|
6803
|
+
"ResetConsumerGroupOffsetResponse": {
|
6804
|
+
"document": "ResetConsumerGroupOffset返回参数结构体",
|
6805
|
+
"members": [
|
6806
|
+
{
|
6807
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6808
|
+
"member": "string",
|
6809
|
+
"name": "RequestId",
|
6810
|
+
"type": "string"
|
6811
|
+
}
|
6812
|
+
],
|
6813
|
+
"type": "object"
|
6814
|
+
},
|
6754
6815
|
"RoleItem": {
|
6755
6816
|
"document": "角色信息",
|
6756
6817
|
"members": [
|
@@ -453,6 +453,14 @@
|
|
453
453
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f4f1d3ba-3ed2-4e03-b741-9f6f696b9689\"\n }\n}",
|
454
454
|
"title": "重发死信消息"
|
455
455
|
}
|
456
|
+
],
|
457
|
+
"ResetConsumerGroupOffset": [
|
458
|
+
{
|
459
|
+
"document": "",
|
460
|
+
"input": "POST / HTTP/1.1\nHost: trocket.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetConsumerGroupOffset\n<公共请求参数>\n\n{\n \"InstanceId\": \"rmq-72mo3a9o\",\n \"ConsumerGroup\": \"test_group\",\n \"Topic\": \"test_topic\",\n \"ResetTimestamp\": -1\n}",
|
461
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"707a78e5-019d-41f6-80fc-15743d99c81a\"\n }\n}",
|
462
|
+
"title": "重置消费位点"
|
463
|
+
}
|
456
464
|
]
|
457
465
|
},
|
458
466
|
"version": "1.0"
|
@@ -901,6 +901,58 @@ def doDescribeDeviceInfo(args, parsed_globals):
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
902
|
|
903
903
|
|
904
|
+
def doModifyProjectSecMode(args, parsed_globals):
|
905
|
+
g_param = parse_global_arg(parsed_globals)
|
906
|
+
|
907
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
908
|
+
cred = credential.CVMRoleCredential()
|
909
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
|
+
cred = credential.STSAssumeRoleCredential(
|
911
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
|
+
)
|
914
|
+
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):
|
915
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
916
|
+
else:
|
917
|
+
cred = credential.Credential(
|
918
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
919
|
+
)
|
920
|
+
http_profile = HttpProfile(
|
921
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
922
|
+
reqMethod="POST",
|
923
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
924
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
925
|
+
)
|
926
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
927
|
+
if g_param[OptionsDefine.Language]:
|
928
|
+
profile.language = g_param[OptionsDefine.Language]
|
929
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
930
|
+
client = mod.TrroClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
+
model = models.ModifyProjectSecModeRequest()
|
934
|
+
model.from_json_string(json.dumps(args))
|
935
|
+
start_time = time.time()
|
936
|
+
while True:
|
937
|
+
rsp = client.ModifyProjectSecMode(model)
|
938
|
+
result = rsp.to_json_string()
|
939
|
+
try:
|
940
|
+
json_obj = json.loads(result)
|
941
|
+
except TypeError as e:
|
942
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
943
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
944
|
+
break
|
945
|
+
cur_time = time.time()
|
946
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
947
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
948
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
949
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
950
|
+
else:
|
951
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
952
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
953
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
|
+
|
955
|
+
|
904
956
|
def doDescribeDeviceSessionList(args, parsed_globals):
|
905
957
|
g_param = parse_global_arg(parsed_globals)
|
906
958
|
|
@@ -1241,6 +1293,7 @@ ACTION_MAP = {
|
|
1241
1293
|
"BatchDeleteDevices": doBatchDeleteDevices,
|
1242
1294
|
"DescribeSessionStatistics": doDescribeSessionStatistics,
|
1243
1295
|
"DescribeDeviceInfo": doDescribeDeviceInfo,
|
1296
|
+
"ModifyProjectSecMode": doModifyProjectSecMode,
|
1244
1297
|
"DescribeDeviceSessionList": doDescribeDeviceSessionList,
|
1245
1298
|
"CreateProject": doCreateProject,
|
1246
1299
|
"DescribeRecentSessionList": doDescribeRecentSessionList,
|
@@ -160,6 +160,13 @@
|
|
160
160
|
"name": "修改项目",
|
161
161
|
"output": "ModifyProjectResponse",
|
162
162
|
"status": "online"
|
163
|
+
},
|
164
|
+
"ModifyProjectSecMode": {
|
165
|
+
"document": "使用项目共享密钥可动态生成设备登录密钥,登录前无需对设备进行提前注册,适合希望简化业务流程的客户。由于是公共密钥,请务必注意保护项目共享密钥,并及时更新。建议项目共享密钥保存在服务器侧。由服务器生成设备登录密码下发给设备,避免密钥保存在客户端侧产生的密钥泄露风险。\n\n开启项目共享密钥后,对于已注册的设备,仍可使用原设备密码登录。若希望仅能通过共享密钥生成密码登录,请通过云 API 将设备密码更新为\"USEPROJECTKEYPWD\"。",
|
166
|
+
"input": "ModifyProjectSecModeRequest",
|
167
|
+
"name": "修改项目安全模式",
|
168
|
+
"output": "ModifyProjectSecModeResponse",
|
169
|
+
"status": "online"
|
163
170
|
}
|
164
171
|
},
|
165
172
|
"metadata": {
|
@@ -2020,6 +2027,69 @@
|
|
2020
2027
|
],
|
2021
2028
|
"type": "object"
|
2022
2029
|
},
|
2030
|
+
"ModifyProjectSecModeRequest": {
|
2031
|
+
"document": "ModifyProjectSecMode请求参数结构体",
|
2032
|
+
"members": [
|
2033
|
+
{
|
2034
|
+
"disabled": false,
|
2035
|
+
"document": "项目ID",
|
2036
|
+
"example": "m82k540iwduvuuma",
|
2037
|
+
"member": "string",
|
2038
|
+
"name": "ProjectId",
|
2039
|
+
"required": true,
|
2040
|
+
"type": "string"
|
2041
|
+
},
|
2042
|
+
{
|
2043
|
+
"disabled": false,
|
2044
|
+
"document": "安全模式 \n0:关闭项目共享密钥 \n1:开启项目共享密钥",
|
2045
|
+
"example": "1",
|
2046
|
+
"member": "int64",
|
2047
|
+
"name": "Mode",
|
2048
|
+
"required": true,
|
2049
|
+
"type": "int"
|
2050
|
+
},
|
2051
|
+
{
|
2052
|
+
"disabled": false,
|
2053
|
+
"document": "项目密钥 32位 小写英文+数字; 项目密钥模式必填",
|
2054
|
+
"example": "123456789012345678901234567abcde",
|
2055
|
+
"member": "string",
|
2056
|
+
"name": "Key",
|
2057
|
+
"required": false,
|
2058
|
+
"type": "string"
|
2059
|
+
},
|
2060
|
+
{
|
2061
|
+
"disabled": false,
|
2062
|
+
"document": "自动注册方式\n0:关闭自动注册\n1:仅允许现场设备自动注册\n2:仅允许远端设备自动注册\n3:允许现场和远端设备均自动注册",
|
2063
|
+
"example": "1",
|
2064
|
+
"member": "int64",
|
2065
|
+
"name": "AutoRegister",
|
2066
|
+
"required": false,
|
2067
|
+
"type": "int"
|
2068
|
+
},
|
2069
|
+
{
|
2070
|
+
"disabled": false,
|
2071
|
+
"document": "是否允许远端获取现场设备列表(getGwList)\n0:不允许\n1:允许",
|
2072
|
+
"example": "1",
|
2073
|
+
"member": "int64",
|
2074
|
+
"name": "FieldListEnable",
|
2075
|
+
"required": false,
|
2076
|
+
"type": "int"
|
2077
|
+
}
|
2078
|
+
],
|
2079
|
+
"type": "object"
|
2080
|
+
},
|
2081
|
+
"ModifyProjectSecModeResponse": {
|
2082
|
+
"document": "ModifyProjectSecMode返回参数结构体",
|
2083
|
+
"members": [
|
2084
|
+
{
|
2085
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2086
|
+
"member": "string",
|
2087
|
+
"name": "RequestId",
|
2088
|
+
"type": "string"
|
2089
|
+
}
|
2090
|
+
],
|
2091
|
+
"type": "object"
|
2092
|
+
},
|
2023
2093
|
"MultiNet": {
|
2024
2094
|
"document": "多网的网卡状态信息",
|
2025
2095
|
"members": [
|
@@ -183,6 +183,14 @@
|
|
183
183
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
184
184
|
"title": "修改项目接口示例"
|
185
185
|
}
|
186
|
+
],
|
187
|
+
"ModifyProjectSecMode": [
|
188
|
+
{
|
189
|
+
"document": "",
|
190
|
+
"input": "POST / HTTP/1.1\nHost: trro.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyProjectSecMode\n<公共请求参数>\n\n{\n \"ProjectId\": \"m82k540iwduvuuma\",\n \"Mode\": 1,\n \"Key\": \"123456789012345678901234567abcde\",\n \"AutoRegister\": 3,\n \"FieldListEnable\": 1\n}",
|
191
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abcd\"\n }\n}",
|
192
|
+
"title": "修改项目授权模式"
|
193
|
+
}
|
186
194
|
]
|
187
195
|
},
|
188
196
|
"version": "1.0"
|
@@ -15,9 +15,9 @@
|
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
17
|
"DescribeInstanceNodes": {
|
18
|
-
"document": "
|
18
|
+
"document": "查询实例pod列表",
|
19
19
|
"input": "DescribeInstanceNodesRequest",
|
20
|
-
"name": "
|
20
|
+
"name": "查询实例pod列表",
|
21
21
|
"output": "DescribeInstanceNodesResponse",
|
22
22
|
"status": "online"
|
23
23
|
},
|
@@ -325,6 +325,15 @@
|
|
325
325
|
"name": "ResourceTags",
|
326
326
|
"required": false,
|
327
327
|
"type": "list"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"disabled": false,
|
331
|
+
"document": "任务状态:1-待执行任务;2-密钥更新中;3-网络变更中;4-参数变更中;5-embedding变更中;6-ai套件变更中;7-滚动升级中;8-纵向扩容中;9-纵向缩容中;10-横向扩容中;11-横向缩容中",
|
332
|
+
"example": "[1,2]",
|
333
|
+
"member": "int64",
|
334
|
+
"name": "TaskStatus",
|
335
|
+
"required": false,
|
336
|
+
"type": "list"
|
328
337
|
}
|
329
338
|
],
|
330
339
|
"type": "object"
|
@@ -765,6 +774,16 @@
|
|
765
774
|
"output_required": false,
|
766
775
|
"type": "int",
|
767
776
|
"value_allowed_null": false
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"disabled": false,
|
780
|
+
"document": "任务状态:0-无任务;1-待执行任务;2-密钥更新中;3-网络变更中;4-参数变更中;5-embedding变更中;6-ai套件变更中;7-滚动升级中;8-纵向扩容中;9-纵向缩容中;10-横向扩容中;11-横向缩容中",
|
781
|
+
"example": "0",
|
782
|
+
"member": "int64",
|
783
|
+
"name": "TaskStatus",
|
784
|
+
"output_required": false,
|
785
|
+
"type": "int",
|
786
|
+
"value_allowed_null": false
|
768
787
|
}
|
769
788
|
],
|
770
789
|
"usage": "out"
|
@@ -883,6 +902,16 @@
|
|
883
902
|
"output_required": false,
|
884
903
|
"type": "string",
|
885
904
|
"value_allowed_null": false
|
905
|
+
},
|
906
|
+
{
|
907
|
+
"disabled": false,
|
908
|
+
"document": "pod状态",
|
909
|
+
"example": "running",
|
910
|
+
"member": "string",
|
911
|
+
"name": "Status",
|
912
|
+
"output_required": false,
|
913
|
+
"type": "string",
|
914
|
+
"value_allowed_null": false
|
886
915
|
}
|
887
916
|
],
|
888
917
|
"usage": "out"
|
@@ -19,8 +19,8 @@
|
|
19
19
|
"DescribeInstanceNodes": [
|
20
20
|
{
|
21
21
|
"document": "调用接口成功",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: vdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceNodes\n<公共请求参数>\n\n{\n \"InstanceId\": \"vdb-
|
23
|
-
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Name\": \"master-0\"\n },\n {\n \"Name\": \"search-0\"\n },\n {\n \"Name\": \"worker-0\"\n }\n ],\n \"RequestId\": \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: vdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceNodes\n<公共请求参数>\n\n{\n \"InstanceId\": \"vdb-bmz0gqmd\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Name\": \"master-0\",\n \"Status\": \"Running\"\n },\n {\n \"Name\": \"search-0\",\n \"Status\": \"Running\"\n },\n {\n \"Name\": \"worker-0\",\n \"Status\": \"Running\"\n },\n {\n \"Name\": \"worker-1\",\n \"Status\": \"Pending\"\n }\n ],\n \"RequestId\": \"b3157916-a811-443f-af68-23220d6dfb01\",\n \"TotalCount\": 5\n }\n}",
|
24
24
|
"title": "成功示例"
|
25
25
|
},
|
26
26
|
{
|
@@ -36,6 +36,12 @@
|
|
36
36
|
"input": "POST / HTTP/1.1\nHost: vdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 50\n}",
|
37
37
|
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"AppId\": 251223614,\n \"Cpu\": 1,\n \"CreatedAt\": \"2023-07-07\",\n \"Disk\": 20,\n \"EngineName\": \"\",\n \"EngineVersion\": \"\",\n \"ExpiredAt\": \"2023-08-07\",\n \"Extend\": \"{\\\"Port\\\": \\\"8100\\\", \\\"DiskType\\\": \\\"CLOUD_SSD\\\", \\\"NodeType\\\": \\\"Store\\\", \\\"Platform\\\": \\\"vdb-cd\\\", \\\"NodeSpecs\\\": \\\"{\\\\\\\"Cpu\\\\\\\":1,\\\\\\\"Memory\\\\\\\":8}\\\", \\\"NodeNumber\\\": \\\"3\\\", \\\"DiskCapacity\\\": \\\"20\\\", \\\"DiskTypeValue\\\": \\\"云硬盘\\\", \\\"EngineVersion\\\": \\\"v1.0.0\\\", \\\"NodeTypeValue\\\": \\\"存储型\\\", \\\"NodeSpecsValue\\\": \\\"S.2SMALL\\\", \\\"NodeNumberValue\\\": \\\"\\\", \\\"DiskCapacityValue\\\": \\\"\\\"}\",\n \"InstanceId\": \"vdb-77qt0r46\",\n \"IsNoExpired\": false,\n \"Memory\": 8,\n \"Name\": \"vector_search\",\n \"Networks\": [\n {\n \"Port\": 8100,\n \"SubnetId\": \"subnet-02bwnv4i\",\n \"Vip\": \"10.0.7.132\",\n \"VpcId\": \"vpc-kddx224l\"\n }\n ],\n \"PayMode\": 1,\n \"Product\": \"vdb\",\n \"Project\": \"\",\n \"Region\": \"ap-guangzhou\",\n \"ReplicaNum\": 3,\n \"ResourceTags\": [],\n \"ShardNum\": 1,\n \"Status\": \"online\",\n \"Zone\": \"\"\n },\n {\n \"AppId\": 251223614,\n \"Cpu\": 1,\n \"CreatedAt\": \"2023-07-06\",\n \"Disk\": 20,\n \"EngineName\": \"\",\n \"EngineVersion\": \"\",\n \"ExpiredAt\": \"2023-08-06\",\n \"Extend\": \"{\\\"Port\\\": \\\"8100\\\", \\\"DiskType\\\": \\\"CLOUD_SSD\\\", \\\"NodeType\\\": \\\"Store\\\", \\\"Platform\\\": \\\"vdb-cd\\\", \\\"NodeSpecs\\\": \\\"{\\\\\\\"Cpu\\\\\\\":1,\\\\\\\"Memory\\\\\\\":8}\\\", \\\"NodeNumber\\\": \\\"3\\\", \\\"DiskCapacity\\\": \\\"20\\\", \\\"DiskTypeValue\\\": \\\"云硬盘\\\", \\\"EngineVersion\\\": \\\"v1.0.0\\\", \\\"NodeTypeValue\\\": \\\"存储型\\\", \\\"NodeSpecsValue\\\": \\\"S.2SMALL\\\", \\\"NodeNumberValue\\\": \\\"\\\", \\\"DiskCapacityValue\\\": \\\"\\\"}\",\n \"InstanceId\": \"vdb-o2ovx6ko\",\n \"IsNoExpired\": false,\n \"Memory\": 8,\n \"Name\": \"embedding_search\",\n \"Networks\": [\n {\n \"Port\": 8100,\n \"SubnetId\": \"subnet-02bwnv4i\",\n \"Vip\": \"10.0.7.115\",\n \"VpcId\": \"vpc-kddx224l\"\n }\n ],\n \"PayMode\": 1,\n \"Product\": \"vdb\",\n \"Project\": \"\",\n \"Region\": \"ap-guangzhou\",\n \"ReplicaNum\": 3,\n \"ResourceTags\": [],\n \"ShardNum\": 1,\n \"Status\": \"online\",\n \"Zone\": \"\"\n }\n ],\n \"RequestId\": \"2757e3ad-427f-45dc-9119-8c9cfb4ae614\",\n \"TotalCount\": 2\n }\n}",
|
38
38
|
"title": "成功示例"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"document": "查询实例列表",
|
42
|
+
"input": "POST / HTTP/1.1\nHost: vdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 50\n}",
|
43
|
+
"output": "{\n \"Response\": {\n \"Items\": [\n {\n \"ApiVersion\": \"2.0\",\n \"AppId\": 251255497,\n \"AutoRenew\": 0,\n \"Cpu\": 1,\n \"CreatedAt\": \"2025-02-24 19:02:40\",\n \"Disk\": 20,\n \"EngineName\": \"\",\n \"EngineVersion\": \"v2.3.0\",\n \"ExpiredAt\": \"2025-03-24 19:54:40\",\n \"Extend\": \"{\\\"EngineVersion\\\":\\\"v1.0.0\\\",\\\"FreeApply\\\":2,\\\"Mode\\\":\\\"two\\\",\\\"Platform\\\":\\\"vdb\\\",\\\"Port\\\":\\\"80\\\",\\\"Tag\\\":\\\"trade\\\"}\",\n \"HealthScore\": 0,\n \"InstanceId\": \"vdb-mh653rup\",\n \"IsNoExpired\": false,\n \"IsolateAt\": \"\",\n \"Memory\": 2,\n \"Name\": \"vdb-mh653rup\",\n \"Networks\": [],\n \"PayMode\": 1,\n \"Product\": \"vdb\",\n \"Project\": \"\",\n \"Region\": \"ap-chengdu\",\n \"ReplicaNum\": 2,\n \"ResourceTags\": [],\n \"ShardNum\": 0,\n \"Status\": \"creating\",\n \"TaskStatus\": 0,\n \"WanAddress\": \"\",\n \"Warning\": 0,\n \"Zone\": \"\"\n },\n {\n \"ApiVersion\": \"2.0\",\n \"AppId\": 251255497,\n \"AutoRenew\": 0,\n \"Cpu\": 1,\n \"CreatedAt\": \"2025-02-24 19:02:45\",\n \"Disk\": 30,\n \"EngineName\": \"\",\n \"EngineVersion\": \"v2.3.0\",\n \"ExpiredAt\": \"2025-05-24 19:14:44\",\n \"Extend\": \"{\\\"EngineVersion\\\":\\\"v1.0.0\\\",\\\"FreeApply\\\":2,\\\"Mode\\\":\\\"two\\\",\\\"Platform\\\":\\\"vdb\\\",\\\"Port\\\":\\\"80\\\",\\\"Tag\\\":\\\"trade\\\"}\",\n \"HealthScore\": 0,\n \"InstanceId\": \"vdb-bmz0gqmd\",\n \"IsNoExpired\": false,\n \"IsolateAt\": \"\",\n \"Memory\": 2,\n \"Name\": \"vdb-bmz0gqmd\",\n \"Networks\": [\n {\n \"ExpireTime\": \"\",\n \"Port\": 80,\n \"PreserveDuration\": 0,\n \"SubnetId\": \"subnet-8apk7iir\",\n \"Vip\": \"10.10.16.8\",\n \"VpcId\": \"vpc-n4c3s8u4\"\n }\n ],\n \"PayMode\": 1,\n \"Product\": \"vdb\",\n \"Project\": \"\",\n \"Region\": \"ap-chengdu\",\n \"ReplicaNum\": 2,\n \"ResourceTags\": [],\n \"ShardNum\": 0,\n \"Status\": \"online\",\n \"TaskStatus\": 0,\n \"WanAddress\": \"\",\n \"Warning\": 0,\n \"Zone\": \"\"\n }\n ],\n \"RequestId\": \"ebae613a-d963-4979-9764-588ff0a315e3\",\n \"TotalCount\": 2\n }\n}",
|
44
|
+
"title": "查询实例列表"
|
39
45
|
}
|
40
46
|
],
|
41
47
|
"DisassociateSecurityGroups": [
|