tccli 3.0.1343.1__py2.py3-none-any.whl → 3.0.1344.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/__init__.py +6 -0
- tccli/services/ams/v20201229/api.json +46 -46
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/batch/batch_client.py +53 -0
- tccli/services/batch/v20170312/api.json +125 -0
- tccli/services/batch/v20170312/examples.json +8 -0
- tccli/services/bh/v20230418/api.json +282 -1
- tccli/services/bh/v20230418/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +38 -38
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwch/cdwch_client.py +53 -0
- tccli/services/cdwch/v20200915/api.json +410 -0
- tccli/services/cdwch/v20200915/examples.json +8 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cfg/v20210820/api.json +72 -0
- tccli/services/ckafka/v20190819/api.json +21 -1
- tccli/services/csip/csip_client.py +163 -4
- tccli/services/csip/v20221121/api.json +967 -164
- tccli/services/csip/v20221121/examples.json +29 -5
- tccli/services/cvm/v20170312/api.json +16 -5
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +61 -0
- tccli/services/emr/emr_client.py +167 -8
- tccli/services/emr/v20190103/api.json +809 -14
- tccli/services/emr/v20190103/examples.json +24 -0
- tccli/services/es/v20250101/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +15 -6
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gs/v20191118/api.json +40 -1
- tccli/services/gs/v20191118/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/igtm/__init__.py +4 -0
- tccli/services/igtm/igtm_client.py +1373 -0
- tccli/services/igtm/v20231024/api.json +3569 -0
- tccli/services/igtm/v20231024/examples.json +207 -0
- tccli/services/ims/v20201229/api.json +20 -28
- tccli/services/ioa/ioa_client.py +114 -8
- tccli/services/ioa/v20220601/api.json +218 -3
- tccli/services/ioa/v20220601/examples.json +16 -0
- tccli/services/iss/v20230517/api.json +11 -2
- tccli/services/kms/v20190118/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mps/v20190612/api.json +43 -5
- tccli/services/ocr/v20181119/api.json +127 -118
- tccli/services/partners/v20180321/api.json +1 -1
- tccli/services/securitylake/__init__.py +4 -0
- tccli/services/securitylake/securitylake_client.py +207 -0
- tccli/services/securitylake/v20240117/api.json +723 -0
- tccli/services/securitylake/v20240117/examples.json +13 -0
- tccli/services/tcbr/v20220217/api.json +70 -0
- tccli/services/tdmq/v20200217/api.json +263 -5
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +40 -30
- tccli/services/teo/v20220901/examples.json +19 -19
- tccli/services/tione/tione_client.py +57 -4
- tccli/services/tione/v20211111/api.json +283 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -28
- tccli/services/tms/v20201229/api.json +14 -21
- tccli/services/trocket/v20230308/api.json +80 -80
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/tsf/tsf_client.py +61 -8
- tccli/services/tsf/v20180326/api.json +3161 -2106
- tccli/services/tsf/v20180326/examples.json +8 -0
- tccli/services/vdb/v20230616/api.json +49 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +8 -8
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/wav/v20210129/api.json +10 -10
- tccli/services/wav/v20210129/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/RECORD +79 -71
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/license_files/LICENSE +0 -0
@@ -631,7 +631,7 @@
|
|
631
631
|
"status": "online"
|
632
632
|
},
|
633
633
|
"DescribeParamTemplateInfo": {
|
634
|
-
"document": "该接口(DescribeParamTemplateInfo
|
634
|
+
"document": "该接口(DescribeParamTemplateInfo)用于查询参数模板详情。\n说明:参数模板为公共组件,配置完成后全地域生效。接口调用配置地域可选择广州、新加坡。",
|
635
635
|
"input": "DescribeParamTemplateInfoRequest",
|
636
636
|
"name": "查询参数模板详情",
|
637
637
|
"output": "DescribeParamTemplateInfoResponse",
|
@@ -743,7 +743,7 @@
|
|
743
743
|
"status": "online"
|
744
744
|
},
|
745
745
|
"DescribeTagsOfInstanceIds": {
|
746
|
-
"document": "
|
746
|
+
"document": "本接口(DescribeTagsOfInstanceIds)用于获取云数据库实例的标签信息。",
|
747
747
|
"input": "DescribeTagsOfInstanceIdsRequest",
|
748
748
|
"name": "获取实例绑定的标签",
|
749
749
|
"output": "DescribeTagsOfInstanceIdsResponse",
|
@@ -778,9 +778,9 @@
|
|
778
778
|
"status": "online"
|
779
779
|
},
|
780
780
|
"InquiryPriceUpgradeInstances": {
|
781
|
-
"document": "
|
781
|
+
"document": "本接口(InquiryPriceUpgradeInstances)用于查询云数据库实例升级的价格,支持查询按量计费或者包年包月实例的升级价格,实例类型支持主实例、灾备实例和只读实例。",
|
782
782
|
"input": "InquiryPriceUpgradeInstancesRequest",
|
783
|
-
"name": "
|
783
|
+
"name": "查询云数据库升级价格",
|
784
784
|
"output": "InquiryPriceUpgradeInstancesResponse",
|
785
785
|
"status": "online"
|
786
786
|
},
|
@@ -1016,7 +1016,7 @@
|
|
1016
1016
|
"status": "online"
|
1017
1017
|
},
|
1018
1018
|
"OfflineIsolatedInstances": {
|
1019
|
-
"document": "本接口(OfflineIsolatedInstances)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态,即通过 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询到 Status 值为 5 的实例。\n\n该接口为异步操作,部分资源的回收可能存在延迟。您可以通过使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口,指定实例 InstanceId 和状态 Status 为 [5,6,7]
|
1019
|
+
"document": "本接口(OfflineIsolatedInstances)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态,即通过 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询到 Status 值为 5 的实例。\n\n该接口为异步操作,部分资源的回收可能存在延迟。您可以通过使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口,指定实例 InstanceId 和状态 Status 为 [5,6,7] 进行查询,其中5代表已隔离,6代表下线中,7代表已下线。若返回实例为空,则实例资源已全部释放。\n\n注意,实例下线后,相关资源和数据将无法找回,请谨慎操作。",
|
1020
1020
|
"input": "OfflineIsolatedInstancesRequest",
|
1021
1021
|
"name": "下线隔离状态的云数据库实例",
|
1022
1022
|
"output": "OfflineIsolatedInstancesResponse",
|
@@ -1198,7 +1198,7 @@
|
|
1198
1198
|
"status": "online"
|
1199
1199
|
},
|
1200
1200
|
"UpgradeDBInstanceEngineVersion": {
|
1201
|
-
"document": "
|
1201
|
+
"document": "本接口(UpgradeDBInstanceEngineVersion)用于升级云数据库实例版本,实例类型支持主实例、灾备实例和只读实例等。升级前请通过 [SubmitInstanceUpgradeCheckJob](https://cloud.tencent.com/document/product/236/110468) 提交升级检查任务,通过后才能升级。",
|
1202
1202
|
"input": "UpgradeDBInstanceEngineVersionRequest",
|
1203
1203
|
"name": "升级实例版本",
|
1204
1204
|
"output": "UpgradeDBInstanceEngineVersionResponse",
|
@@ -4597,7 +4597,7 @@
|
|
4597
4597
|
"members": [
|
4598
4598
|
{
|
4599
4599
|
"disabled": false,
|
4600
|
-
"document": "RW
|
4600
|
+
"document": "RW 节点拓扑。\n说明:NodeId 可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 获取。",
|
4601
4601
|
"example": "[{\"Zone\": \"ap-guangzhou-4\",\"NodeId\": \"dbn-73ktfl1j\"}]",
|
4602
4602
|
"member": "ReadWriteNode",
|
4603
4603
|
"name": "ReadWriteNode",
|
@@ -4606,7 +4606,7 @@
|
|
4606
4606
|
},
|
4607
4607
|
{
|
4608
4608
|
"disabled": false,
|
4609
|
-
"document": "RO
|
4609
|
+
"document": "RO 节点拓扑。\n说明:NodeId 可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 获取。",
|
4610
4610
|
"example": "[{\"IsRandomZone\": \"\",\"Zone\": \"ap-guangzhou-2\",\"NodeId\": \"dbn-73ktf111\"}]",
|
4611
4611
|
"member": "ReadonlyNode",
|
4612
4612
|
"name": "ReadOnlyNodes",
|
@@ -10467,7 +10467,7 @@
|
|
10467
10467
|
},
|
10468
10468
|
{
|
10469
10469
|
"disabled": false,
|
10470
|
-
"document": "
|
10470
|
+
"document": "返回结果集排序方式。目前支持值:\"ASC\" - 表示升序,\"DESC\" - 表示降序,默认为 \"DESC\"。",
|
10471
10471
|
"example": "\"DESC\"",
|
10472
10472
|
"member": "string",
|
10473
10473
|
"name": "OrderDirection",
|
@@ -10476,7 +10476,7 @@
|
|
10476
10476
|
},
|
10477
10477
|
{
|
10478
10478
|
"disabled": false,
|
10479
|
-
"document": "是否以安全组 ID
|
10479
|
+
"document": "是否以安全组 ID 为过滤条件。\n说明:0表示否,1表示是。",
|
10480
10480
|
"example": "0",
|
10481
10481
|
"member": "int64",
|
10482
10482
|
"name": "WithSecurityGroup",
|
@@ -10549,7 +10549,7 @@
|
|
10549
10549
|
{
|
10550
10550
|
"disabled": false,
|
10551
10551
|
"document": "置放群组ID列表。",
|
10552
|
-
"example": "[\"\"]",
|
10552
|
+
"example": "[\"ps-7t11vrwf\"]",
|
10553
10553
|
"member": "string",
|
10554
10554
|
"name": "DeployGroupIds",
|
10555
10555
|
"required": false,
|
@@ -10558,7 +10558,7 @@
|
|
10558
10558
|
{
|
10559
10559
|
"disabled": false,
|
10560
10560
|
"document": "是否以标签键为过滤条件。",
|
10561
|
-
"example": "[\"\"]",
|
10561
|
+
"example": "[\"tagKey\"]",
|
10562
10562
|
"member": "string",
|
10563
10563
|
"name": "TagKeysForSearch",
|
10564
10564
|
"required": false,
|
@@ -10629,7 +10629,7 @@
|
|
10629
10629
|
},
|
10630
10630
|
{
|
10631
10631
|
"disabled": false,
|
10632
|
-
"document": "
|
10632
|
+
"document": "数据库引擎类型。可选值为:InnoDB、RocksDB。",
|
10633
10633
|
"example": "[\"InnoDB\"]",
|
10634
10634
|
"member": "string",
|
10635
10635
|
"name": "EngineTypes",
|
@@ -10638,7 +10638,7 @@
|
|
10638
10638
|
},
|
10639
10639
|
{
|
10640
10640
|
"disabled": false,
|
10641
|
-
"document": "是否获取集群版实例节点信息,可填:true或false",
|
10641
|
+
"document": "是否获取集群版实例节点信息,可填:true 或 false。默认为 false。",
|
10642
10642
|
"example": "false",
|
10643
10643
|
"member": "bool",
|
10644
10644
|
"name": "QueryClusterInfo",
|
@@ -10664,7 +10664,7 @@
|
|
10664
10664
|
{
|
10665
10665
|
"disabled": false,
|
10666
10666
|
"document": "实例详细信息列表。",
|
10667
|
-
"example": "
|
10667
|
+
"example": "无",
|
10668
10668
|
"member": "InstanceInfo",
|
10669
10669
|
"name": "Items",
|
10670
10670
|
"output_required": true,
|
@@ -11524,7 +11524,7 @@
|
|
11524
11524
|
"members": [
|
11525
11525
|
{
|
11526
11526
|
"disabled": false,
|
11527
|
-
"document": "实例 ID
|
11527
|
+
"document": "实例 ID。可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 接口获取。",
|
11528
11528
|
"example": "cdb-0mu6taqx",
|
11529
11529
|
"member": "string",
|
11530
11530
|
"name": "InstanceId",
|
@@ -11578,7 +11578,7 @@
|
|
11578
11578
|
},
|
11579
11579
|
{
|
11580
11580
|
"disabled": false,
|
11581
|
-
"document": "
|
11581
|
+
"document": "事件展示数量。默认为100,最大为200。",
|
11582
11582
|
"example": "10",
|
11583
11583
|
"member": "string",
|
11584
11584
|
"name": "Limit",
|
@@ -13234,7 +13234,7 @@
|
|
13234
13234
|
"members": [
|
13235
13235
|
{
|
13236
13236
|
"disabled": false,
|
13237
|
-
"document": "
|
13237
|
+
"document": "实例列表。实例 ID 可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 接口获取。可传入的数组长度暂无限制。",
|
13238
13238
|
"example": "[\"cdb-uns231ns\"]",
|
13239
13239
|
"member": "string",
|
13240
13240
|
"name": "InstanceIds",
|
@@ -13252,7 +13252,7 @@
|
|
13252
13252
|
},
|
13253
13253
|
{
|
13254
13254
|
"disabled": false,
|
13255
|
-
"document": "
|
13255
|
+
"document": "分页大小。默认为15。",
|
13256
13256
|
"example": "10",
|
13257
13257
|
"member": "int64",
|
13258
13258
|
"name": "Limit",
|
@@ -14014,7 +14014,7 @@
|
|
14014
14014
|
"members": [
|
14015
14015
|
{
|
14016
14016
|
"disabled": false,
|
14017
|
-
"document": "
|
14017
|
+
"document": "状态值。0 - 初始化中,1 - 运行中,2 - 运行成功,3 - 运行失败。",
|
14018
14018
|
"example": "3",
|
14019
14019
|
"member": "int64",
|
14020
14020
|
"name": "Status",
|
@@ -14024,7 +14024,7 @@
|
|
14024
14024
|
},
|
14025
14025
|
{
|
14026
14026
|
"disabled": false,
|
14027
|
-
"document": "
|
14027
|
+
"document": "状态值,为负数时任务异常。",
|
14028
14028
|
"example": "1",
|
14029
14029
|
"member": "int64",
|
14030
14030
|
"name": "Code",
|
@@ -14034,7 +14034,7 @@
|
|
14034
14034
|
},
|
14035
14035
|
{
|
14036
14036
|
"disabled": false,
|
14037
|
-
"document": "
|
14037
|
+
"document": "执行时间,单位:秒。",
|
14038
14038
|
"example": "0",
|
14039
14039
|
"member": "int64",
|
14040
14040
|
"name": "CostTime",
|
@@ -14074,7 +14074,7 @@
|
|
14074
14074
|
},
|
14075
14075
|
{
|
14076
14076
|
"disabled": false,
|
14077
|
-
"document": "
|
14077
|
+
"document": "执行进度,单位:百分比。",
|
14078
14078
|
"example": "5",
|
14079
14079
|
"member": "int64",
|
14080
14080
|
"name": "Process",
|
@@ -14094,7 +14094,7 @@
|
|
14094
14094
|
},
|
14095
14095
|
{
|
14096
14096
|
"disabled": false,
|
14097
|
-
"document": "
|
14097
|
+
"document": "文件大小,单位:byte。",
|
14098
14098
|
"example": "12",
|
14099
14099
|
"member": "string",
|
14100
14100
|
"name": "FileSize",
|
@@ -14309,7 +14309,7 @@
|
|
14309
14309
|
"example": "48000",
|
14310
14310
|
"member": "int64",
|
14311
14311
|
"name": "Price",
|
14312
|
-
"
|
14312
|
+
"output_required": true,
|
14313
14313
|
"type": "int",
|
14314
14314
|
"value_allowed_null": false
|
14315
14315
|
},
|
@@ -14319,7 +14319,7 @@
|
|
14319
14319
|
"example": "460800",
|
14320
14320
|
"member": "int64",
|
14321
14321
|
"name": "OriginalPrice",
|
14322
|
-
"
|
14322
|
+
"output_required": true,
|
14323
14323
|
"type": "int",
|
14324
14324
|
"value_allowed_null": false
|
14325
14325
|
},
|
@@ -15088,7 +15088,7 @@
|
|
15088
15088
|
"members": [
|
15089
15089
|
{
|
15090
15090
|
"disabled": false,
|
15091
|
-
"document": "实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID
|
15091
|
+
"document": "实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
15092
15092
|
"example": "cdb-c1nl9rpv",
|
15093
15093
|
"member": "string",
|
15094
15094
|
"name": "InstanceId",
|
@@ -15098,7 +15098,7 @@
|
|
15098
15098
|
},
|
15099
15099
|
{
|
15100
15100
|
"disabled": false,
|
15101
|
-
"document": "
|
15101
|
+
"document": "预期重启时间,单位:秒。",
|
15102
15102
|
"example": "360",
|
15103
15103
|
"member": "int64",
|
15104
15104
|
"name": "TimeInSeconds",
|
@@ -16816,7 +16816,7 @@
|
|
16816
16816
|
},
|
16817
16817
|
{
|
16818
16818
|
"disabled": false,
|
16819
|
-
"document": "
|
16819
|
+
"document": "修改后的实例名称,仅支持数字,英文大小写字母、中文以及特殊字符-_./()[]()+=::@ 且长度不能超过60。",
|
16820
16820
|
"example": "我是中文",
|
16821
16821
|
"member": "string",
|
16822
16822
|
"name": "InstanceName",
|
@@ -17640,7 +17640,7 @@
|
|
17640
17640
|
{
|
17641
17641
|
"disabled": false,
|
17642
17642
|
"document": "实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。",
|
17643
|
-
"example": "[\"cdb-70zdmgg1
|
17643
|
+
"example": "[\"cdb-70zdmgg1\"]",
|
17644
17644
|
"member": "string",
|
17645
17645
|
"name": "InstanceIds",
|
17646
17646
|
"required": true,
|
@@ -18788,7 +18788,7 @@
|
|
18788
18788
|
},
|
18789
18789
|
{
|
18790
18790
|
"disabled": false,
|
18791
|
-
"document": "
|
18791
|
+
"document": "内存大小,单位为 MB。",
|
18792
18792
|
"example": "100",
|
18793
18793
|
"member": "uint64",
|
18794
18794
|
"name": "Mem",
|
@@ -18798,7 +18798,7 @@
|
|
18798
18798
|
},
|
18799
18799
|
{
|
18800
18800
|
"disabled": false,
|
18801
|
-
"document": "
|
18801
|
+
"document": "节点状态,0 - 初始化中,1 - 在线中,2 - 下线中,3 - 销毁中,4 - 故障恢复中,5 - 节点故障,6 - 切换中。",
|
18802
18802
|
"example": "online",
|
18803
18803
|
"member": "string",
|
18804
18804
|
"name": "Status",
|
@@ -18973,7 +18973,7 @@
|
|
18973
18973
|
{
|
18974
18974
|
"disabled": false,
|
18975
18975
|
"document": "解隔离操作的结果集。",
|
18976
|
-
"example": "[{\"InstanceId\": \"cdb-f35wr6wj\",\"Code\": 0,\"Message\": \"
|
18976
|
+
"example": "[{\"InstanceId\": \"cdb-f35wr6wj\",\"Code\": 0,\"Message\": \"\"}]",
|
18977
18977
|
"member": "ReleaseResult",
|
18978
18978
|
"name": "Items",
|
18979
18979
|
"output_required": true,
|
@@ -21799,7 +21799,7 @@
|
|
21799
21799
|
},
|
21800
21800
|
{
|
21801
21801
|
"disabled": false,
|
21802
|
-
"document": "主实例数据库引擎版本,支持值包括:5.6
|
21802
|
+
"document": "主实例数据库引擎版本,支持值包括:5.6、5.7、8.0。\n说明:不支持越级升级,升级后不支持降级。",
|
21803
21803
|
"example": "5.7",
|
21804
21804
|
"member": "string",
|
21805
21805
|
"name": "EngineVersion",
|
@@ -21817,7 +21817,7 @@
|
|
21817
21817
|
},
|
21818
21818
|
{
|
21819
21819
|
"disabled": false,
|
21820
|
-
"document": "是否是内核子版本升级,支持的值:1 - 升级内核子版本;0 -
|
21820
|
+
"document": "是否是内核子版本升级,支持的值:1 - 升级内核子版本;0 - 升级数据库引擎版本。无默认值,请指定要升级的版本类型。",
|
21821
21821
|
"example": "20201231",
|
21822
21822
|
"member": "int64",
|
21823
21823
|
"name": "UpgradeSubversion",
|
@@ -21826,7 +21826,7 @@
|
|
21826
21826
|
},
|
21827
21827
|
{
|
21828
21828
|
"disabled": false,
|
21829
|
-
"document": "
|
21829
|
+
"document": "延迟阈值。取值范围:1 - 10。无默认值,不传此参数时,延迟阈值为0,表示延迟阈值不做设置。",
|
21830
21830
|
"example": "1",
|
21831
21831
|
"member": "int64",
|
21832
21832
|
"name": "MaxDelayTime",
|
@@ -21835,7 +21835,7 @@
|
|
21835
21835
|
},
|
21836
21836
|
{
|
21837
21837
|
"disabled": false,
|
21838
|
-
"document": "5.7升级8.0是否忽略关键字错误,取值范围[0,1],1表示忽略,0
|
21838
|
+
"document": "5.7升级8.0是否忽略关键字错误,取值范围[0,1],1表示忽略,0表示不忽略。无默认值,不传此参数表示不做处理。",
|
21839
21839
|
"example": "1",
|
21840
21840
|
"member": "int64",
|
21841
21841
|
"name": "IgnoreErrKeyword",
|
@@ -21845,7 +21845,7 @@
|
|
21845
21845
|
{
|
21846
21846
|
"disabled": false,
|
21847
21847
|
"document": "版本升级支持指定参数",
|
21848
|
-
"example": "
|
21848
|
+
"example": "[{\"Name\": \"default_collation_for_utf8mb4\", \"Value\": \"EXC\",\"Value\": \"utf8mb4_0900_ai_ci\"}]",
|
21849
21849
|
"member": "UpgradeEngineVersionParams",
|
21850
21850
|
"name": "ParamList",
|
21851
21851
|
"required": false,
|
@@ -905,7 +905,7 @@
|
|
905
905
|
"DescribeTagsOfInstanceIds": [
|
906
906
|
{
|
907
907
|
"document": "获取实例标签信息",
|
908
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTagsOfInstanceIds\n<公共请求参数>\n\n{\n \"Limit\":
|
908
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTagsOfInstanceIds\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"InstanceIds\": [\n \"cdb-uns231ns\"\n ],\n \"Offset\": 0\n}",
|
909
909
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Offset\": 0,\n \"Limit\": 10,\n \"Rows\": [\n {\n \"InstanceId\": \"cdb-uns231ns\",\n \"Tags\": [\n {\n \"TagKey\": \"name\",\n \"TagValue\": \"zhang\"\n }\n ]\n }\n ]\n }\n}",
|
910
910
|
"title": "获取实例标签信息"
|
911
911
|
}
|
@@ -945,7 +945,7 @@
|
|
945
945
|
"InquiryPriceUpgradeInstances": [
|
946
946
|
{
|
947
947
|
"document": "",
|
948
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceUpgradeInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6si6qy6p\",\n \"Volume\":
|
948
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceUpgradeInstances\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-6si6qy6p\",\n \"Volume\": 50,\n \"Memory\": 1000\n}",
|
949
949
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"Price\": 48000,\n \"OriginalPrice\": 460800\n }\n}",
|
950
950
|
"title": "查询数据库升级价格"
|
951
951
|
}
|
@@ -1207,7 +1207,7 @@
|
|
1207
1207
|
},
|
1208
1208
|
{
|
1209
1209
|
"document": "",
|
1210
|
-
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRoGroupInfo\n<公共请求参数>\n\n{\n \"RoWeightValues\": [\n {\n \"InstanceId\": \"cdbr0-test1234\",\n \"Weight\":
|
1210
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRoGroupInfo\n<公共请求参数>\n\n{\n \"RoWeightValues\": [\n {\n \"InstanceId\": \"cdbr0-test1234\",\n \"Weight\": 70\n },\n {\n \"InstanceId\": \"cdbr0-iup41a4t\",\n \"Weight\": 30\n }\n ],\n \"IsBalanceRoLoad\": 1,\n \"RoGroupId\": \"cdbrg-iup41a4t\",\n \"RoGroupInfo\": {\n \"WeightMode\": \"custom\"\n }\n}",
|
1211
1211
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54Ad\",\n \"AsyncRequestId\": \"a6040589-3b098df5-b551d9e5-81c6bfd1\"\n }\n}",
|
1212
1212
|
"title": "重新均衡RO组内实例的权重"
|
1213
1213
|
}
|
@@ -1421,6 +1421,58 @@ def doModifyUserNewPrivilege(args, parsed_globals):
|
|
1421
1421
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
1422
|
|
1423
1423
|
|
1424
|
+
def doDescribeCNInstances(args, parsed_globals):
|
1425
|
+
g_param = parse_global_arg(parsed_globals)
|
1426
|
+
|
1427
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1428
|
+
cred = credential.CVMRoleCredential()
|
1429
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1430
|
+
cred = credential.STSAssumeRoleCredential(
|
1431
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1432
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1433
|
+
)
|
1434
|
+
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):
|
1435
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1436
|
+
else:
|
1437
|
+
cred = credential.Credential(
|
1438
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1439
|
+
)
|
1440
|
+
http_profile = HttpProfile(
|
1441
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1442
|
+
reqMethod="POST",
|
1443
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1444
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1445
|
+
)
|
1446
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1447
|
+
if g_param[OptionsDefine.Language]:
|
1448
|
+
profile.language = g_param[OptionsDefine.Language]
|
1449
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1450
|
+
client = mod.CdwchClient(cred, g_param[OptionsDefine.Region], profile)
|
1451
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1452
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1453
|
+
model = models.DescribeCNInstancesRequest()
|
1454
|
+
model.from_json_string(json.dumps(args))
|
1455
|
+
start_time = time.time()
|
1456
|
+
while True:
|
1457
|
+
rsp = client.DescribeCNInstances(model)
|
1458
|
+
result = rsp.to_json_string()
|
1459
|
+
try:
|
1460
|
+
json_obj = json.loads(result)
|
1461
|
+
except TypeError as e:
|
1462
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1463
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1464
|
+
break
|
1465
|
+
cur_time = time.time()
|
1466
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1467
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1468
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1469
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1470
|
+
else:
|
1471
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1472
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1473
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
|
+
|
1475
|
+
|
1424
1476
|
def doResizeDisk(args, parsed_globals):
|
1425
1477
|
g_param = parse_global_arg(parsed_globals)
|
1426
1478
|
|
@@ -1511,6 +1563,7 @@ ACTION_MAP = {
|
|
1511
1563
|
"DescribeInstance": doDescribeInstance,
|
1512
1564
|
"DescribeInstanceNodes": doDescribeInstanceNodes,
|
1513
1565
|
"ModifyUserNewPrivilege": doModifyUserNewPrivilege,
|
1566
|
+
"DescribeCNInstances": doDescribeCNInstances,
|
1514
1567
|
"ResizeDisk": doResizeDisk,
|
1515
1568
|
|
1516
1569
|
}
|