tccli 3.0.1094.1__py2.py3-none-any.whl → 3.0.1096.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/cls/v20201016/DeleteKafkaRecharge.md +3 -3
- tccli/examples/cls/v20201016/ModifyKafkaRecharge.md +23 -13
- tccli/examples/cls/v20201016/PreviewKafkaRecharge.md +47 -15
- tccli/examples/cynosdb/v20190107/AddClusterSlaveZone.md +2 -1
- tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +9 -2
- tccli/examples/cynosdb/v20190107/DescribeTasks.md +12 -0
- tccli/examples/cynosdb/v20190107/ModifyClusterSlaveZone.md +2 -1
- tccli/examples/dasb/v20191018/ModifyCmdTemplate.md +2 -2
- tccli/examples/es/v20180416/DescribeServerlessInstances.md +346 -0
- tccli/examples/mps/v20190612/CreateAdaptiveDynamicStreamingTemplate.md +1 -1
- tccli/examples/mps/v20190612/ModifyAdaptiveDynamicStreamingTemplate.md +1 -1
- tccli/examples/organization/v20210331/DescribeEffectivePolicy.md +25 -0
- tccli/examples/organization/v20210331/ListNonCompliantResource.md +43 -0
- tccli/examples/pts/v20210728/DescribeRegions.md +4 -2
- tccli/examples/ssl/v20191205/DescribeDeleteCertificatesTaskResult.md +72 -0
- tccli/examples/trocket/v20230308/DescribeMQTTClient.md +57 -49
- tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +38 -6
- tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +14 -12
- tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +1 -121
- tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +0 -47
- tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +1 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/antiddos/v20200309/api.json +19 -0
- tccli/services/cdb/v20170320/api.json +3 -3
- tccli/services/cfw/v20190904/api.json +177 -0
- tccli/services/cls/v20201016/api.json +49 -49
- tccli/services/cls/v20201016/examples.json +13 -7
- tccli/services/cynosdb/v20190107/api.json +74 -0
- tccli/services/cynosdb/v20190107/examples.json +4 -4
- tccli/services/dasb/v20191018/examples.json +2 -2
- tccli/services/dnspod/v20210323/api.json +1 -0
- tccli/services/dts/v20211206/api.json +2 -2
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +429 -0
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +9 -0
- tccli/services/faceid/v20180301/api.json +22 -3
- tccli/services/live/v20180801/api.json +58 -0
- tccli/services/monitor/v20180724/api.json +20 -2
- tccli/services/mps/v20190612/api.json +172 -92
- tccli/services/mps/v20190612/examples.json +2 -2
- tccli/services/oceanus/v20190422/api.json +1 -1
- tccli/services/omics/v20221128/api.json +20 -2
- tccli/services/organization/organization_client.py +106 -0
- tccli/services/organization/v20210331/api.json +261 -3
- tccli/services/organization/v20210331/examples.json +16 -0
- tccli/services/pts/v20210728/api.json +16 -3
- tccli/services/pts/v20210728/examples.json +2 -2
- tccli/services/redis/v20180412/api.json +11 -0
- tccli/services/ssl/ssl_client.py +53 -0
- tccli/services/ssl/v20191205/api.json +110 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/ssm/v20190923/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +226 -108
- tccli/services/trocket/v20230308/examples.json +13 -25
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +2 -817
- tccli/services/wedata/v20210820/examples.json +0 -24
- tccli/services/wedata/wedata_client.py +0 -159
- {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/RECORD +66 -62
- {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1094.1.dist-info → tccli-3.0.1096.1.dist-info}/license_files/LICENSE +0 -0
@@ -1165,6 +1165,15 @@
|
|
1165
1165
|
"name": "SlaveZone",
|
1166
1166
|
"required": true,
|
1167
1167
|
"type": "string"
|
1168
|
+
},
|
1169
|
+
{
|
1170
|
+
"disabled": false,
|
1171
|
+
"document": "binlog同步方式。默认值:async。可选值:sync、semisync、async",
|
1172
|
+
"example": "async",
|
1173
|
+
"member": "string",
|
1174
|
+
"name": "BinlogSyncWay",
|
1175
|
+
"required": false,
|
1176
|
+
"type": "string"
|
1168
1177
|
}
|
1169
1178
|
],
|
1170
1179
|
"type": "object"
|
@@ -3230,6 +3239,26 @@
|
|
3230
3239
|
"output_required": true,
|
3231
3240
|
"type": "list",
|
3232
3241
|
"value_allowed_null": true
|
3242
|
+
},
|
3243
|
+
{
|
3244
|
+
"disabled": false,
|
3245
|
+
"document": "新从可用区属性\n注意:此字段可能返回 null,表示取不到有效值。",
|
3246
|
+
"example": "[{\"Zone\":\"ap-guangzhou-5\",\"BinlogSyncWay\":\"async\"}]",
|
3247
|
+
"member": "SlaveZoneAttrItem",
|
3248
|
+
"name": "NewSlaveZoneAttr",
|
3249
|
+
"output_required": false,
|
3250
|
+
"type": "list",
|
3251
|
+
"value_allowed_null": true
|
3252
|
+
},
|
3253
|
+
{
|
3254
|
+
"disabled": false,
|
3255
|
+
"document": "旧可用区属性\n注意:此字段可能返回 null,表示取不到有效值。",
|
3256
|
+
"example": "[{\"Zone\":\"ap-guangzhou-5\",\"BinlogSyncWay\":\"async\"}]",
|
3257
|
+
"member": "SlaveZoneAttrItem",
|
3258
|
+
"name": "OldSlaveZoneAttr",
|
3259
|
+
"output_required": false,
|
3260
|
+
"type": "list",
|
3261
|
+
"value_allowed_null": true
|
3233
3262
|
}
|
3234
3263
|
],
|
3235
3264
|
"usage": "out"
|
@@ -5584,6 +5613,16 @@
|
|
5584
5613
|
"output_required": false,
|
5585
5614
|
"type": "string",
|
5586
5615
|
"value_allowed_null": true
|
5616
|
+
},
|
5617
|
+
{
|
5618
|
+
"disabled": false,
|
5619
|
+
"document": "备可用区属性\n注意:此字段可能返回 null,表示取不到有效值。",
|
5620
|
+
"example": "无",
|
5621
|
+
"member": "SlaveZoneAttrItem",
|
5622
|
+
"name": "SlaveZoneAttr",
|
5623
|
+
"output_required": false,
|
5624
|
+
"type": "list",
|
5625
|
+
"value_allowed_null": true
|
5587
5626
|
}
|
5588
5627
|
],
|
5589
5628
|
"usage": "out"
|
@@ -13296,6 +13335,15 @@
|
|
13296
13335
|
"name": "NewSlaveZone",
|
13297
13336
|
"required": true,
|
13298
13337
|
"type": "string"
|
13338
|
+
},
|
13339
|
+
{
|
13340
|
+
"disabled": false,
|
13341
|
+
"document": "binlog同步方式。默认值:async。可选值:sync、semisync、async",
|
13342
|
+
"example": "async",
|
13343
|
+
"member": "string",
|
13344
|
+
"name": "BinlogSyncWay",
|
13345
|
+
"required": false,
|
13346
|
+
"type": "string"
|
13299
13347
|
}
|
13300
13348
|
],
|
13301
13349
|
"type": "object"
|
@@ -17931,6 +17979,32 @@
|
|
17931
17979
|
],
|
17932
17980
|
"type": "object"
|
17933
17981
|
},
|
17982
|
+
"SlaveZoneAttrItem": {
|
17983
|
+
"document": "可用区属性项",
|
17984
|
+
"members": [
|
17985
|
+
{
|
17986
|
+
"disabled": false,
|
17987
|
+
"document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。",
|
17988
|
+
"example": "无",
|
17989
|
+
"member": "string",
|
17990
|
+
"name": "Zone",
|
17991
|
+
"output_required": false,
|
17992
|
+
"type": "string",
|
17993
|
+
"value_allowed_null": true
|
17994
|
+
},
|
17995
|
+
{
|
17996
|
+
"disabled": false,
|
17997
|
+
"document": "binlog同步方式\n注意:此字段可能返回 null,表示取不到有效值。",
|
17998
|
+
"example": "async",
|
17999
|
+
"member": "string",
|
18000
|
+
"name": "BinlogSyncWay",
|
18001
|
+
"output_required": false,
|
18002
|
+
"type": "string",
|
18003
|
+
"value_allowed_null": true
|
18004
|
+
}
|
18005
|
+
],
|
18006
|
+
"usage": "out"
|
18007
|
+
},
|
17934
18008
|
"SlaveZoneStockInfo": {
|
17935
18009
|
"document": "备可用区库存信息",
|
17936
18010
|
"members": [
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"AddClusterSlaveZone": [
|
12
12
|
{
|
13
13
|
"document": "开启多可用区部署",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"SlaveZone\": \"ap-guangzhou-4\"\n}",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"SlaveZone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"async\"\n}",
|
15
15
|
"output": "{\n \"Response\": {\n \"FlowId\": 123,\n \"RequestId\": \"128046\"\n }\n}",
|
16
16
|
"title": "开启多可用区部署"
|
17
17
|
}
|
@@ -350,7 +350,7 @@
|
|
350
350
|
{
|
351
351
|
"document": "集群信息描述",
|
352
352
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterDetail\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbpg-5804k48e\"\n}",
|
353
|
-
"output": "{\n \"Response\": {\n \"Detail\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Region\": \"abc\",\n \"Zone\": \"abc\",\n \"PhysicalZone\": \"abc\",\n \"Status\": \"abc\",\n \"StatusDesc\": \"abc\",\n \"ServerlessStatus\": \"abc\",\n \"StorageId\": \"abc\",\n \"Storage\": 0,\n \"MaxStorageSize\": 0,\n \"MinStorageSize\": 0,\n \"StoragePayMode\": 0,\n \"VpcName\": \"abc\",\n \"VpcId\": \"abc\",\n \"SubnetName\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Charset\": \"abc\",\n \"CreateTime\": \"abc\",\n \"DbType\": \"abc\",\n \"DbMode\": \"abc\",\n \"DbVersion\": \"abc\",\n \"StorageLimit\": 0,\n \"UsedStorage\": 0,\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"RoAddr\": [\n {\n \"IP\": \"abc\",\n \"Port\": 0\n }\n ],\n \"Ability\": {\n \"IsSupportSlaveZone\": \"abc\",\n \"NonsupportSlaveZoneReason\": \"abc\",\n \"IsSupportRo\": \"abc\",\n \"NonsupportRoReason\": \"abc\"\n },\n \"CynosVersion\": \"abc\",\n \"BusinessType\": \"abc\",\n \"HasSlaveZone\": \"abc\",\n \"IsFreeze\": \"abc\",\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"MasterZone\": \"abc\",\n \"SlaveZones\": [\n \"abc\"\n ],\n \"InstanceSet\": [\n {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"InstanceType\": \"abc\",\n \"InstanceStatus\": \"abc\",\n \"InstanceStatusDesc\": \"abc\",\n \"InstanceCpu\": 0,\n \"InstanceMemory\": 0,\n \"InstanceStorage\": 0,\n \"InstanceRole\": \"abc\",\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"abc\"\n ],\n \"ServerlessStatus\": \"abc\"\n }\n ],\n \"PayMode\": 0,\n \"PeriodEndTime\": \"abc\",\n \"ProjectID\": 0,\n \"ResourceTags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ProxyStatus\": \"abc\",\n \"LogBin\": \"abc\",\n \"IsSkipTrade\": \"abc\",\n \"PitrType\": \"abc\",\n \"IsOpenPasswordComplexity\": \"abc\",\n \"NetworkStatus\": \"abc\",\n \"ResourcePackages\": [\n {\n \"PackageId\": \"abc\",\n \"PackageType\": \"abc\"\n }\n ],\n \"RenewFlag\": 0,\n \"NetworkType\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
353
|
+
"output": "{\n \"Response\": {\n \"Detail\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Region\": \"abc\",\n \"Zone\": \"abc\",\n \"PhysicalZone\": \"abc\",\n \"Status\": \"abc\",\n \"StatusDesc\": \"abc\",\n \"ServerlessStatus\": \"abc\",\n \"StorageId\": \"abc\",\n \"Storage\": 0,\n \"MaxStorageSize\": 0,\n \"MinStorageSize\": 0,\n \"StoragePayMode\": 0,\n \"VpcName\": \"abc\",\n \"VpcId\": \"abc\",\n \"SubnetName\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Charset\": \"abc\",\n \"CreateTime\": \"abc\",\n \"DbType\": \"abc\",\n \"DbMode\": \"abc\",\n \"DbVersion\": \"abc\",\n \"StorageLimit\": 0,\n \"UsedStorage\": 0,\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"RoAddr\": [\n {\n \"IP\": \"abc\",\n \"Port\": 0\n }\n ],\n \"Ability\": {\n \"IsSupportSlaveZone\": \"abc\",\n \"NonsupportSlaveZoneReason\": \"abc\",\n \"IsSupportRo\": \"abc\",\n \"NonsupportRoReason\": \"abc\",\n \"IsSupportManualSnapshot\": \"yes\"\n },\n \"CynosVersion\": \"abc\",\n \"BusinessType\": \"abc\",\n \"HasSlaveZone\": \"abc\",\n \"IsFreeze\": \"abc\",\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"MasterZone\": \"abc\",\n \"SlaveZones\": [\n \"abc\"\n ],\n \"InstanceSet\": [\n {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"InstanceType\": \"abc\",\n \"InstanceStatus\": \"abc\",\n \"InstanceStatusDesc\": \"abc\",\n \"InstanceCpu\": 0,\n \"InstanceMemory\": 0,\n \"InstanceStorage\": 0,\n \"InstanceRole\": \"abc\",\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"abc\"\n ],\n \"ServerlessStatus\": \"abc\"\n }\n ],\n \"PayMode\": 0,\n \"PeriodEndTime\": \"abc\",\n \"ProjectID\": 0,\n \"ResourceTags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"ProxyStatus\": \"abc\",\n \"LogBin\": \"abc\",\n \"IsSkipTrade\": \"abc\",\n \"PitrType\": \"abc\",\n \"IsOpenPasswordComplexity\": \"abc\",\n \"NetworkStatus\": \"abc\",\n \"ResourcePackages\": [\n {\n \"PackageId\": \"abc\",\n \"PackageType\": \"abc\"\n }\n ],\n \"RenewFlag\": 0,\n \"NetworkType\": \"abc\",\n \"SlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-5\",\n \"BinlogSyncWay\": \"async\"\n }\n ]\n },\n \"RequestId\": \"abc\"\n }\n}",
|
354
354
|
"title": "集群信息描述"
|
355
355
|
}
|
356
356
|
],
|
@@ -596,7 +596,7 @@
|
|
596
596
|
{
|
597
597
|
"document": "查询任务列表",
|
598
598
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"Offset\": \"0\"\n}",
|
599
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"ID\": 0,\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"CreateTime\": \"abc\",\n \"DelayTime\": \"abc\",\n \"ErrMsg\": \"abc\",\n \"FlowId\": 0,\n \"Input\": \"abc\",\n \"InstanceGrpId\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"InstanceId\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\",\n \"Operator\": \"abc\",\n \"Output\": \"abc\",\n \"Status\": \"abc\",\n \"TaskType\": \"abc\",\n \"TriggerTaskId\": 0,\n \"UpdateTime\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"ClusterName\": \"abc\",\n \"InstanceName\": \"abc\",\n \"Process\": 0,\n \"ModifyParamsData\": [\n {\n \"Name\": \"abc\",\n \"OldValue\": \"abc\",\n \"CurValue\": \"abc\"\n }\n ],\n \"CreateClustersData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0\n },\n \"RollbackData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0,\n \"OriginalClusterId\": \"abc\",\n \"OriginalClusterName\": \"abc\",\n \"RollbackStrategy\": \"abc\",\n \"SnapshotTime\": \"abc\",\n \"MinCpu\": 0,\n \"MaxCpu\": 0,\n \"SnapShotId\": 1,\n \"RollbackDatabases\": [\n {\n \"OldDatabase\": \"abc\",\n \"NewDatabase\": \"abc\"\n }\n ],\n \"RollbackTables\": [\n {\n \"Database\": \"abc\",\n \"Tables\": [\n {\n \"OldTable\": \"abc\",\n \"NewTable\": \"abc\"\n }\n ]\n }\n ],\n \"BackupFileName\": \"abc\"\n },\n \"ModifyInstanceData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0,\n \"OldCpu\": 0,\n \"OldMemory\": 0,\n \"OldStorageLimit\": 0,\n \"UpgradeType\": \"abc\"\n },\n \"ManualBackupData\": {\n \"BackupType\": \"abc\",\n \"BackupMethod\": \"abc\",\n \"SnapshotTime\": \"abc\"\n },\n \"ModifyDbVersionData\": {\n \"OldVersion\": \"abc\",\n \"NewVersion\": \"abc\",\n \"UpgradeType\": \"abc\"\n },\n \"ClusterSlaveData\": {\n \"OldMasterZone\": \"abc\",\n \"OldSlaveZone\": [\n \"abc\"\n ],\n \"NewMasterZone\": \"abc\",\n \"NewSlaveZone\": [\n \"abc\"\n ]\n },\n \"SwitchClusterLogBin\": {\n \"Status\": \"abc\"\n },\n \"ModifyInstanceParamsData\": {\n \"ClusterId\": \"abc\",\n \"ClusterParamList\": [\n {\n \"ParamName\": \"abc\",\n \"CurrentValue\": \"abc\",\n \"OldValue\": \"abc\"\n }\n ],\n \"ModifyInstanceParams\": [\n {\n \"InstanceId\": \"abc\",\n \"ModifyInstanceParamList\": [\n {\n \"ParamName\": \"abc\",\n \"CurrentValue\": \"abc\",\n \"OldValue\": \"abc\"\n }\n ]\n }\n ]\n },\n \"TaskMaintainInfo\": {\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"abc\"\n ]\n }\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
599
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"ID\": 0,\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"CreateTime\": \"abc\",\n \"DelayTime\": \"abc\",\n \"ErrMsg\": \"abc\",\n \"FlowId\": 0,\n \"Input\": \"abc\",\n \"InstanceGrpId\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"InstanceId\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\",\n \"Operator\": \"abc\",\n \"Output\": \"abc\",\n \"Status\": \"abc\",\n \"TaskType\": \"abc\",\n \"TriggerTaskId\": 0,\n \"UpdateTime\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"ClusterName\": \"abc\",\n \"InstanceName\": \"abc\",\n \"Process\": 0,\n \"ModifyParamsData\": [\n {\n \"Name\": \"abc\",\n \"OldValue\": \"abc\",\n \"CurValue\": \"abc\"\n }\n ],\n \"CreateClustersData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0\n },\n \"RollbackData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0,\n \"OriginalClusterId\": \"abc\",\n \"OriginalClusterName\": \"abc\",\n \"RollbackStrategy\": \"abc\",\n \"SnapshotTime\": \"abc\",\n \"MinCpu\": 0,\n \"MaxCpu\": 0,\n \"SnapShotId\": 1,\n \"RollbackDatabases\": [\n {\n \"OldDatabase\": \"abc\",\n \"NewDatabase\": \"abc\"\n }\n ],\n \"RollbackTables\": [\n {\n \"Database\": \"abc\",\n \"Tables\": [\n {\n \"OldTable\": \"abc\",\n \"NewTable\": \"abc\"\n }\n ]\n }\n ],\n \"BackupFileName\": \"abc\"\n },\n \"ModifyInstanceData\": {\n \"Cpu\": 0,\n \"Memory\": 0,\n \"StorageLimit\": 0,\n \"OldCpu\": 0,\n \"OldMemory\": 0,\n \"OldStorageLimit\": 0,\n \"UpgradeType\": \"abc\"\n },\n \"ManualBackupData\": {\n \"BackupType\": \"abc\",\n \"BackupMethod\": \"abc\",\n \"SnapshotTime\": \"abc\"\n },\n \"ModifyDbVersionData\": {\n \"OldVersion\": \"abc\",\n \"NewVersion\": \"abc\",\n \"UpgradeType\": \"abc\"\n },\n \"ClusterSlaveData\": {\n \"OldMasterZone\": \"abc\",\n \"OldSlaveZone\": [\n \"abc\"\n ],\n \"NewMasterZone\": \"abc\",\n \"NewSlaveZone\": [\n \"abc\"\n ],\n \"NewSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"sync\"\n }\n ],\n \"OldSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-5\",\n \"BinlogSyncWay\": \"async\"\n }\n ]\n },\n \"SwitchClusterLogBin\": {\n \"Status\": \"abc\"\n },\n \"ModifyInstanceParamsData\": {\n \"ClusterId\": \"abc\",\n \"ClusterParamList\": [\n {\n \"ParamName\": \"abc\",\n \"CurrentValue\": \"abc\",\n \"OldValue\": \"abc\"\n }\n ],\n \"ModifyInstanceParams\": [\n {\n \"InstanceId\": \"abc\",\n \"ModifyInstanceParamList\": [\n {\n \"ParamName\": \"abc\",\n \"CurrentValue\": \"abc\",\n \"OldValue\": \"abc\"\n }\n ]\n }\n ]\n },\n \"TaskMaintainInfo\": {\n \"MaintainStartTime\": 0,\n \"MaintainDuration\": 0,\n \"MaintainWeekDays\": [\n \"abc\"\n ]\n }\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
600
600
|
"title": "查询任务列表"
|
601
601
|
}
|
602
602
|
],
|
@@ -779,7 +779,7 @@
|
|
779
779
|
"ModifyClusterSlaveZone": [
|
780
780
|
{
|
781
781
|
"document": "",
|
782
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"OldSlaveZone\": \"ap-guangzhou-2\",\n \"NewSlaveZone\": \"ap-guangzhou-3\"\n}",
|
782
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterSlaveZone\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-asd\",\n \"OldSlaveZone\": \"ap-guangzhou-2\",\n \"NewSlaveZone\": \"ap-guangzhou-3\",\n \"BinlogSyncWay\": \"async\"\n}",
|
783
783
|
"output": "{\n \"Response\": {\n \"FlowId\": 123,\n \"RequestId\": \"128046\"\n }\n}",
|
784
784
|
"title": "变更备可用区"
|
785
785
|
}
|
@@ -332,8 +332,8 @@
|
|
332
332
|
],
|
333
333
|
"ModifyCmdTemplate": [
|
334
334
|
{
|
335
|
-
"document": "
|
336
|
-
"input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCmdTemplate\n<公共请求参数>\n\n{\n \"Id\": 1,\n \"Name\": \"
|
335
|
+
"document": "修改高危命令模板",
|
336
|
+
"input": "POST / HTTP/1.1\nHost: dasb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCmdTemplate\n<公共请求参数>\n\n{\n \"Id\": 1,\n \"Name\": \"模板a\",\n \"CmdList\": \"cd /root\"\n}",
|
337
337
|
"output": "{\n \"Response\": {\n \"RequestId\": \"sada123\"\n }\n}",
|
338
338
|
"title": "修改高危命令模板"
|
339
339
|
}
|
@@ -185,7 +185,7 @@
|
|
185
185
|
"DescribeSubscribeCheckJob": {
|
186
186
|
"document": "本接口(DescribeSubscribeCheckJob)用于查询订阅校验任务结果。",
|
187
187
|
"input": "DescribeSubscribeCheckJobRequest",
|
188
|
-
"name": "
|
188
|
+
"name": "查询订阅校验结果",
|
189
189
|
"output": "DescribeSubscribeCheckJobResponse",
|
190
190
|
"status": "online"
|
191
191
|
},
|
@@ -416,7 +416,7 @@
|
|
416
416
|
"ResumeSubscribe": {
|
417
417
|
"document": "本接口(ResumeSubscribe) 用于恢复报错的订阅任务。当订阅任务的状态为error时,可通过本接口尝试对任务进行恢复。",
|
418
418
|
"input": "ResumeSubscribeRequest",
|
419
|
-
"name": "
|
419
|
+
"name": "重试订阅任务",
|
420
420
|
"output": "ResumeSubscribeResponse",
|
421
421
|
"status": "online"
|
422
422
|
},
|
tccli/services/es/es_client.py
CHANGED
@@ -2617,6 +2617,58 @@ def doDescribeInstancePluginList(args, parsed_globals):
|
|
2617
2617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
2618
|
|
2619
2619
|
|
2620
|
+
def doDescribeServerlessInstances(args, parsed_globals):
|
2621
|
+
g_param = parse_global_arg(parsed_globals)
|
2622
|
+
|
2623
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2624
|
+
cred = credential.CVMRoleCredential()
|
2625
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2626
|
+
cred = credential.STSAssumeRoleCredential(
|
2627
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2628
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2629
|
+
)
|
2630
|
+
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):
|
2631
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2632
|
+
else:
|
2633
|
+
cred = credential.Credential(
|
2634
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2635
|
+
)
|
2636
|
+
http_profile = HttpProfile(
|
2637
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2638
|
+
reqMethod="POST",
|
2639
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2640
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2641
|
+
)
|
2642
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2643
|
+
if g_param[OptionsDefine.Language]:
|
2644
|
+
profile.language = g_param[OptionsDefine.Language]
|
2645
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2646
|
+
client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
|
2647
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2648
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2649
|
+
model = models.DescribeServerlessInstancesRequest()
|
2650
|
+
model.from_json_string(json.dumps(args))
|
2651
|
+
start_time = time.time()
|
2652
|
+
while True:
|
2653
|
+
rsp = client.DescribeServerlessInstances(model)
|
2654
|
+
result = rsp.to_json_string()
|
2655
|
+
try:
|
2656
|
+
json_obj = json.loads(result)
|
2657
|
+
except TypeError as e:
|
2658
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2659
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2660
|
+
break
|
2661
|
+
cur_time = time.time()
|
2662
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2663
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2664
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2665
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2666
|
+
else:
|
2667
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2668
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2669
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2670
|
+
|
2671
|
+
|
2620
2672
|
def doDescribeIndexMeta(args, parsed_globals):
|
2621
2673
|
g_param = parse_global_arg(parsed_globals)
|
2622
2674
|
|
@@ -2834,6 +2886,7 @@ ACTION_MAP = {
|
|
2834
2886
|
"UpdateDictionaries": doUpdateDictionaries,
|
2835
2887
|
"UpgradeLicense": doUpgradeLicense,
|
2836
2888
|
"DescribeInstancePluginList": doDescribeInstancePluginList,
|
2889
|
+
"DescribeServerlessInstances": doDescribeServerlessInstances,
|
2837
2890
|
"DescribeIndexMeta": doDescribeIndexMeta,
|
2838
2891
|
"CreateServerlessInstance": doCreateServerlessInstance,
|
2839
2892
|
"InquirePriceRenewInstance": doInquirePriceRenewInstance,
|