tccli-intl-en 3.0.1279.1__py2.py3-none-any.whl → 3.0.1280.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.
@@ -112,6 +112,14 @@
112
112
  "title": "Creating a Backup"
113
113
  }
114
114
  ],
115
+ "CreateCLSDelivery": [
116
+ {
117
+ "document": "",
118
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCLSDelivery\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"CLSInfoList\": [\n {\n \"TopicId\": \"38b86342-7cb0-4776-9ebd-ff1830035da1\",\n \"TopicOperation\": \"reuse\",\n \"GroupId\": \"17de6e2a-efd0-4fc2-ba2e-8845bd4f9895\",\n \"Region\": \"ap-guangzhou\",\n \"GroupOperation\": \"reuse\"\n }\n ]\n}",
119
+ "output": "{\n \"Response\": {\n \"TaskId\": 148728,\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
120
+ "title": "Create Log Delivery"
121
+ }
122
+ ],
115
123
  "CreateClusterDatabase": [
116
124
  {
117
125
  "document": "This example shows you how to create a database.",
@@ -198,6 +206,14 @@
198
206
  "title": "Deleting a backup"
199
207
  }
200
208
  ],
209
+ "DeleteCLSDelivery": [
210
+ {
211
+ "document": "",
212
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCLSDelivery\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"CLSTopicIds\": [\n \"83dc6703-f43a-4b95-92ec-267bdf9e48c3\",\n \"2a289122-0b01-490b-be75-763da79621fe\"\n ]\n}",
213
+ "output": "{\n \"Response\": {\n \"TaskId\": 176382,\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
214
+ "title": "Delete Log Delivery"
215
+ }
216
+ ],
201
217
  "DeleteClusterDatabase": [
202
218
  {
203
219
  "document": " ",
@@ -230,6 +246,14 @@
230
246
  "title": "Query a Database Account List"
231
247
  }
232
248
  ],
249
+ "DescribeAuditInstanceList": [
250
+ {
251
+ "document": "This example shows you how to retrieve the audit instance list.",
252
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditInstanceList\n<Common request parameters>\n\n{\n \"AuditMode\": 0,\n \"Limit\": 1,\n \"Filters\": [\n {\n \"Values\": [\n \"cynosdbmysql-ins-6990cckk\"\n ],\n \"Name\": \"InstanceId\",\n \"ExactMatch\": true\n }\n ],\n \"AuditSwitch\": 0,\n \"Offset\": 1\n}",
253
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"43-12121-812w1221213-62usf9093\",\n \"Items\": [\n {\n \"RealStorage\": 0,\n \"BillingAmount\": 0,\n \"LowRealStorage\": 0,\n \"InstanceId\": \"cynosdbmysql-ins-6990cckk\",\n \"CreateAt\": \"2022-03-02 10:09:08\",\n \"AuditStatus\": \"1\",\n \"LogExpireDay\": 1,\n \"AuditAll\": true,\n \"InstanceInfo\": {\n \"ProjectId\": 0,\n \"TagList\": [\n {\n \"TagKey\": \"name\",\n \"TagValue\": \"zhang\"\n }\n ]\n },\n \"HighRealStorage\": 0,\n \"HighLogExpireDay\": 30,\n \"LowLogExpireDay\": 7\n }\n ]\n }\n}",
254
+ "title": "Retrieve the Audit Instance List"
255
+ }
256
+ ],
233
257
  "DescribeAuditRuleTemplates": [
234
258
  {
235
259
  "document": "This example shows you how to query audit rule template information.",
@@ -318,6 +342,14 @@
318
342
  "title": "Query the Binlog Log List of a Cluster"
319
343
  }
320
344
  ],
345
+ "DescribeChangedParamsAfterUpgrade": [
346
+ {
347
+ "document": "This example shows you how to query comparison results of running parameters during specification adjustment.",
348
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChangedParamsAfterUpgrade\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-p8dst5v9\",\n \"DstCpu\": 1,\n \"DstMem\": 1\n}",
349
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7613eed6-5eb5-4d17-ae69-dd93c44d7ad4\",\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"ParamName\": \"demoString\",\n \"NewValue\": \"demoString\",\n \"OldValue\": \"demoString\",\n \"ValueFunction\": \"demoString\"\n }\n ]\n }\n}",
350
+ "title": "Querying Comparison Results of Running Parameters During Specification Adjustment"
351
+ }
352
+ ],
321
353
  "DescribeClusterDatabaseTables": [
322
354
  {
323
355
  "document": " ",
@@ -326,6 +358,14 @@
326
358
  "title": "Access the table List"
327
359
  }
328
360
  ],
361
+ "DescribeClusterDatabases": [
362
+ {
363
+ "document": "",
364
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterDatabases\n<Common request parameters>\n\n{\n \"ClusterId\": \"cynosdbmysql-tsjwe7iu\"\n}",
365
+ "output": "{\n \"Response\": {\n \"TotalCount\": 3,\n \"Limit\": 20,\n \"Offset\": 0,\n \"RequestId\": \"806fe1c8-5567-4aa8-a521-ea2414c793b4\",\n \"Databases\": [\n \"database_1\",\n \"database_2\"\n ]\n }\n}",
366
+ "title": "Retrieve a Cluster Database List"
367
+ }
368
+ ],
329
369
  "DescribeClusterDetail": [
330
370
  {
331
371
  "document": "This example shows you how to describe cluster information.",
@@ -406,6 +446,14 @@
406
446
  "title": "Query Task Flow Information"
407
447
  }
408
448
  ],
449
+ "DescribeInstanceCLSLogDelivery": [
450
+ {
451
+ "document": "",
452
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceCLSLogDelivery\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\"\n}",
453
+ "output": "{\n \"Response\": {\n \"InstanceCLSDeliveryInfos\": [\n {\n \"GroupId\": \"a5532aba-506f-4ec4-a293-e0ac34b69a4e\",\n \"GroupName\": \"cloud_cynos_-test-003_logset\",\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"InstanceName\": \"cynosdbmysql-ins-o971o62r\",\n \"Region\": \"ap-qingyuan\",\n \"Status\": \"running\",\n \"TopicId\": \"2a289122-0b01-490b-be75-763da79621fe\",\n \"TopicName\": \"cloud_cynos_-test-003_topic\"\n },\n {\n \"GroupId\": \"2f484392-d3f1-491c-82a0-00ceaad9281a\",\n \"GroupName\": \"cloud_cynos_-test-002_logset\",\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"InstanceName\": \"cynosdbmysql-ins-o971o62r\",\n \"Region\": \"ap-qingyuan\",\n \"Status\": \"running\",\n \"TopicId\": \"83dc6703-f43a-4b95-92ec-267bdf9e48c3\",\n \"TopicName\": \"cloud_cynos_-test-002_topic\"\n }\n ],\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\",\n \"TotalCount\": 2\n }\n}",
454
+ "title": "Querying Instance Log Shipping Information"
455
+ }
456
+ ],
409
457
  "DescribeInstanceDetail": [
410
458
  {
411
459
  "document": " ",
@@ -612,6 +660,14 @@
612
660
  "title": "Query the Supported Database Proxy Versions"
613
661
  }
614
662
  ],
663
+ "DescribeTasks": [
664
+ {
665
+ "document": "This example shows you how to query the task list.",
666
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTasks\n<Common request parameters>\n\n{\n \"Limit\": 1,\n \"Offset\": 0\n}",
667
+ "output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"TaskList\": [\n {\n \"ID\": 1,\n \"AppId\": 23623651237,\n \"ClusterId\": \"cynoadbmysql-ydtwlxig\",\n \"CreateTime\": \"2024-10-01 23:22:54\",\n \"DelayTime\": \"2024-10-12 17:52:19\",\n \"ErrMsg\": \"\",\n \"FlowId\": 6521,\n{ \"Input\": \"{\\\"AppId\\\":251232125,\\\"uin\\\":\\\"700000433509\\\",\\\"operateUin\\\":\\\"700000433509\\\",\\\"region\\\":1,\\\"zoneId\\\":100007,\\\"dealName\\\":\\\"20240627509001289127581\\\",\\\"bigDealId\\\":\\\"20240627509001289141381\\\",\\\"tranId\\\":\\\"20240627509001289127591\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"payMode\\\":0,\\\"projectId\\\":0,\\\"goodsDetail\\\":{\\\"requestId\\\":\\\"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\\\",\\\"Action\\\":\\\"CreateMultiSpecClusters\\\",\\\"pid\\\":1001166,\\\"extparam\\\":{\\\"token\\\":\\\"\\\"},\\\"timeSpan\\\":3600,\\\"timeUnit\\\":\\\"s\\\",\\\"productCode\\\":\\\"p_cynosdb\\\",\\\"subProductCode\\\":\\\"sp_cynosdb_mysql\\\",\\\"goodsNum\\\":1,\\\"sv_cynosdb_cpu_mysql\\\":1,\\\"sv_cynosdb_memory_mysql\\\":1,\\\"sv_cynosdb_cpu_smallcommoncpu\\\":0,\\\"sv_cynosdb_memory_smallcommonmem\\\":0,\\\"sv_cynosdb_cpu_largecommoncpu\\\":0,\\\"sv_cynosdb_memory_largecommonmem\\\":0,\\\"sv_cynosdb_storage_mysql\\\":0,\\\"sv_cynosdb_ccu_mysql\\\":0,\\\"resourceTags\\\":[{\\\"tagKey\\\":\\\"mockTagKey\\\",\\\"tagValue\\\":\\\"mockTagValue\\\"}],\\\"productInfo\\\":[{\\\"name\\\":\\\"Configuration\\\",\\\"value\\\":\\\"1 core, 1 GB Memory\\\"},{\\\"name\\\":\\\"Region\\\",\\\"value\\\":\\\"ap-guangzhou\\\"},{\\\"name\\\":\\\"Availability zone\\\",\\\"value\\\":\\\"ap-guangzhou-7\\\"}],\\\"zone\\\":\\\"ap-guangzhou-7\\\",\\\"source\\\":\\\"API\\\",\\\"slaveZone\\\":\\\"\\\",\\\"businessType\\\":\\\"\\\",\\\"vpcId\\\":\\\"vpc-rhfuibtt\\\",\\\"subnetId\\\":\\\"subnet-87qviva4\\\",\\\"dbType\\\":\\\"MYSQL\\\",\\\"dbVersion\\\":\\\"5.7\\\",\\\"cynosVersion\\\":\\\"\\\",\\\"clusterName\\\":\\\"Postpaid cluster\\\",\\\"adminPassword\\\":\\\"Abcde@123\\\",\\\"port\\\":3306,\\\"count\\\":1,\\\"haCount\\\":0,\\\"instanceCount\\\":1,\\\"storageTraceId\\\":\\\"\\\",\\\"storagePayMode\\\":0,\\\"rollbackStrategy\\\":\\\"noneRollback\\\",\\\"OrderSource\\\":\\\"go_test\\\",\\\"isLhdb\\\":\\\"no\\\",\\\"lhdbAppId\\\":0,\\\"isDisableConsole\\\":\\\"no\\\",\\\"sourcePlatform\\\":\\\"\\\",\\\"clusterParams\\\":[{\\\"ParamName\\\":\\\"character_set_server\\\",\\\"CurrentValue\\\":\\\"utf8\\\",\\\"OldValue\\\":\\\"\\\"},{\\\"ParamName\\\":\\\"collation_server\\\",\\\"CurrentValue\\\":\\\"utf8_general_ci\\\",\\\"OldValue\\\":\\\"\\\"}],\\\"ParamTemplateId\\\":0,\\\"instanceType\\\":\\\"rw\\\",\\\"clusterTraceId\\\":\\\"9642a74e-fa27-4f8f-b854-653b3083c4cb\\\",\\\"outside_invisible_is_skip_trade\\\":\\\"\\\",\\\"ClusterInstanceCount\\\":1}}\" }\n \"InstanceGrpId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceGroupId\": \"cynosdbmysql-grp-ywnxpisy\",\n \"InstanceId\": \"cynosdbmysql-qjuxpows\",\n \"ObjectId\": \"cynosdbmysql-grwlskip\",\n \"ObjectType\": \"taskCreateCluster\",\n \"Operator\": \"700000433509\",\n \"Output\": \"{\\\"Storage\\\":3000}\",\n \"Status\": \"success\",\n \"TaskType\": \"taskCreateCluster\",\n \"TriggerTaskId\": 0,\n \"UpdateTime\": \"2024-06-27 16:18:12\",\n \"StartTime\": \"2024-06-27 16:18:07\",\n \"EndTime\": \"2024-06-27 16:18:12\",\n \"ClusterName\": \"MyClusterName\",\n \"InstanceName\": \"MyInstanceName\",\n \"Process\": 100,\n \"ModifyParamsData\": [\n {\n \"Name\": \"sql_auto_is_null\",\n \"OldValue\": \"OFF\",\n \"CurValue\": \"ON\"\n }\n ],\n \"CreateClustersData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200\n },\n \"RollbackData\": {\n \"Cpu\": 1,\n \"Memory\": 2,\n \"StorageLimit\": 200,\n \"OriginalClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"OriginalClusterName\": \"MyOriginalClusterName\",\n \"RollbackStrategy\": \"timeRollback\",\n \"SnapshotTime\": \"2024-05-12 11:28:55\",\n \"MinCpu\": 2,\n \"MaxCpu\": 8,\n \"SnapShotId\": 5562,\n \"RollbackDatabases\": [\n {\n \"OldDatabase\": \"test_database\",\n \"NewDatabase\": \"new_test_database\"\n }\n ],\n \"RollbackTables\": [\n {\n \"Database\": \"test-database\",\n \"Tables\": [\n {\n \"OldTable\": \"test-table-1\",\n \"NewTable\": \"new-test-table-1\"\n }\n ]\n }\n ],\n \"BackupFileName\": \"cynosdbmysql-oaj6te97_20240610111357\"\n },\n \"ModifyInstanceData\": {\n \"Cpu\": 2,\n \"Memory\": 4,\n \"StorageLimit\": 400,\n \"OldCpu\": 1,\n \"OldMemory\": 2,\n \"OldStorageLimit\": 200,\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ManualBackupData\": {\n \"BackupType\": \"snapshot\",\n \"BackupMethod\": \"manual\",\n \"SnapshotTime\": \"2023-11-03 15:27:22\"\n },\n \"ModifyDbVersionData\": {\n \"OldVersion\": \"3.1.11\",\n \"NewVersion\": \"3.1.13\",\n \"UpgradeType\": \"upgradeInMaintain\"\n },\n \"ClusterSlaveData\": {\n \"OldMasterZone\": \"ap-guangzhou-4\",\n \"OldSlaveZone\": [\n \"ap-guangzhou-7\"\n ],\n \"NewMasterZone\": \"ap-guangzhou-7\",\n \"NewSlaveZone\": [\n \"ap-guangzhou-4\"\n ],\n \"NewSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-4\",\n \"BinlogSyncWay\": \"sync\"\n }\n ],\n \"OldSlaveZoneAttr\": [\n {\n \"Zone\": \"ap-guangzhou-7\",\n \"BinlogSyncWay\": \"async\"\n }\n ]\n },\n \"SwitchClusterLogBin\": {\n \"Status\": \"OFF\"\n },\n \"ModifyInstanceParamsData\": {\n \"ClusterId\": \"cynosdbmysql-tiwgxyts\",\n \"ClusterParamList\": [\n {\n \"ParamName\": \"innodb_backquery_history_limit\",\n \"CurrentValue\": \"1100\",\n \"OldValue\": \"1000\"\n }\n ],\n \"ModifyInstanceParams\": [\n {\n \"InstanceId\": \"cynosdbmysql-ins-twpmnatl\",\n \"ModifyInstanceParamList\": [\n {\n \"ParamName\": \"innodb_secondary_evict_only_lru\",\n \"CurrentValue\": \"ON\",\n \"OldValue\": \"OFF\"\n }\n ]\n }\n ]\n },\n \"TaskMaintainInfo\": {\n \"MaintainStartTime\": 10800,\n \"MaintainDuration\": 3600,\n \"MaintainWeekDays\": [\n \"Mon\",\n \"Tue\",\n \"Wed\",\n \"Thu\",\n \"Fri\"\n ]\n }\n }\n ],\n \"RequestId\": \"3d56fe0b-f839-42c6-b84e-1d5fbc874cba\"\n }\n}",
668
+ "title": "Querying the Task List"
669
+ }
670
+ ],
615
671
  "DescribeZones": [
616
672
  {
617
673
  "document": "This example shows you how to view only the availability zones that the user has the permission to access.",
@@ -852,6 +908,14 @@
852
908
  "title": "Modifying the instance parameters"
853
909
  }
854
910
  ],
911
+ "ModifyInstanceUpgradeLimitDays": [
912
+ {
913
+ "document": "",
914
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceUpgradeLimitDays\n<Common request parameters>\n\n{\n \"ClusterId\": \"cynosdbmysql-mwg7212w\",\n \"InstanceId\": \"cynosdbmysql-ins-m6f0hjkx\",\n \"UpgradeLimitDays\": 30\n}",
915
+ "output": "{\n \"Response\": {\n \"RequestId\": \"588fbc90-61a4-4125-bc70-65a3f8d1327e\"\n }\n}",
916
+ "title": "Modify the Time Limit for Minor Version Upgrade of an Instance"
917
+ }
918
+ ],
855
919
  "ModifyMaintainPeriodConfig": [
856
920
  {
857
921
  "document": " ",
@@ -1026,6 +1090,14 @@
1026
1090
  "title": ""
1027
1091
  }
1028
1092
  ],
1093
+ "RenewClusters": [
1094
+ {
1095
+ "document": "This example shows you how to renew a cluster.",
1096
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewClusters\n<Common request parameters>\n\n{\n \"TimeUnit\": \"m\",\n \"DealMode\": 0,\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"TimeSpan\": 1\n}",
1097
+ "output": "{\n \"Response\": {\n \"BigDealIds\": [\n \"20241223054076837313781\",\n \"20241223054076837313781\"\n ],\n \"ClusterIds\": [\n \"cynosdbmysql-b6sy2i0oi\"\n ],\n \"DealNames\": [\n \"20241223054076837520111\",\n \"20241223054076837520121\"\n ],\n \"RequestId\": \"623f7cc5-ce5f-4f11-ad96-97bd07dad332\",\n \"ResourceIds\": [\n \"cynosdbmysql-ins-bx72i9ws\",\n \"cynosdbmysql-ins-i8g3n8xq\"\n ],\n \"TranId\": \"\"\n }\n}",
1098
+ "title": "Renew a Cluster"
1099
+ }
1100
+ ],
1029
1101
  "ReplayInstanceAuditLog": [
1030
1102
  {
1031
1103
  "document": "This example shows you how to replay an instance audit log.",
@@ -1058,6 +1130,22 @@
1058
1130
  "title": "Resuming a serverless cluster"
1059
1131
  }
1060
1132
  ],
1133
+ "RollBackCluster": [
1134
+ {
1135
+ "document": "This example shows you how to perform a cluster rollback.",
1136
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollBackCluster\n<Common request parameters>\n\n{\n \"RollbackId\": 1,\n \"ClusterId\": \"cynosdbmysql-j9i41hff\",\n \"ExpectTimeThresh\": 1,\n \"RollbackStrategy\": \"snapRollback\",\n \"RollbackTables\": [\n {\n \"Tables\": [\n {\n \"OldTable\": \"old_table\",\n \"NewTable\": \"new_table\"\n }\n ],\n \"Database\": \"old_db1\"\n }\n ],\n \"ExpectTime\": \"2022-01-20 00:00:00\",\n \"RollbackDatabases\": [\n {\n \"NewDatabase\": \"new_db2\",\n \"OldDatabase\": \"old_db2\"\n }\n ]\n}",
1137
+ "output": "{\n \"Response\": {\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\",\n \"FlowId\": \"147283\"\n }\n}",
1138
+ "title": "Cluster Rollback"
1139
+ }
1140
+ ],
1141
+ "RollbackToNewCluster": [
1142
+ {
1143
+ "document": "This example shows you how to roll back to the new cluster.",
1144
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollbackToNewCluster\n<Common request parameters>\n\n{\n \"Zone\": \"ap-guangzhou-3\",\n \"ClusterName\": \"\",\n \"ProjectId\": 0,\n \"PayMode\": 0,\n \"OriginalClusterId\": \"cynosdbmysql-0fs2nhc7\",\n \"RollbackId\": 64142,\n \"InstanceInitInfos\": [\n {\n \"Cpu\": 1,\n \"Memory\": 1,\n \"InstanceType\": \"rw\",\n \"InstanceCount\": 1\n }\n ],\n \"UniqVpcId\": \"vpc-ns1jr6ff\",\n \"UniqSubnetId\": \"subnet-gncsqeuq\"\n}",
1145
+ "output": "{\n \"Response\": {\n \"BigDealIds\": [],\n \"ClusterIds\": [],\n \"DealNames\": [\n \"20250928456021591536011\"\n ],\n \"RequestId\": \"0c646e65-3597-44d7-b68b-d43391eedb33\",\n \"ResourceIds\": [],\n \"TranId\": \"20250928456021591536021\"\n }\n}",
1146
+ "title": "Rollback to a New Cluster"
1147
+ }
1148
+ ],
1061
1149
  "SearchClusterDatabases": [
1062
1150
  {
1063
1151
  "document": "",
@@ -1082,6 +1170,22 @@
1082
1170
  "title": "Setting the auto-renewal flag"
1083
1171
  }
1084
1172
  ],
1173
+ "StartCLSDelivery": [
1174
+ {
1175
+ "document": "",
1176
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartCLSDelivery\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"CLSTopicIds\": [\n \"83dc6703-f43a-4b95-92ec-267bdf9e48c3\",\n \"2a289122-0b01-490b-be75-763da79621fe\"\n ]\n}",
1177
+ "output": "{\n \"Response\": {\n \"TaskId\": 123456,\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
1178
+ "title": "Enabling Log Shipping"
1179
+ }
1180
+ ],
1181
+ "StopCLSDelivery": [
1182
+ {
1183
+ "document": "",
1184
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopCLSDelivery\n<Common request parameters>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"CLSTopicIds\": [\n \"83dc6703-f43a-4b95-92ec-267bdf9e48c3\",\n \"2a289122-0b01-490b-be75-763da79621fe\"\n ]\n}",
1185
+ "output": "{\n \"Response\": {\n \"TaskId\": 123456,\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
1186
+ "title": "Disabling Log Shipping"
1187
+ }
1188
+ ],
1085
1189
  "SwitchClusterVpc": [
1086
1190
  {
1087
1191
  "document": "This example shows you how to switch network.",
@@ -1111,6 +1111,58 @@ def doModifyDDoSPolicyHost(args, parsed_globals):
1111
1111
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1112
1112
 
1113
1113
 
1114
+ def doModifyMultiPathGatewayStatus(args, parsed_globals):
1115
+ g_param = parse_global_arg(parsed_globals)
1116
+
1117
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1118
+ cred = credential.CVMRoleCredential()
1119
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1120
+ cred = credential.STSAssumeRoleCredential(
1121
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1122
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1123
+ )
1124
+ 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):
1125
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1126
+ else:
1127
+ cred = credential.Credential(
1128
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1129
+ )
1130
+ http_profile = HttpProfile(
1131
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1132
+ reqMethod="POST",
1133
+ endpoint=g_param[OptionsDefine.Endpoint],
1134
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1135
+ )
1136
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1137
+ if g_param[OptionsDefine.Language]:
1138
+ profile.language = g_param[OptionsDefine.Language]
1139
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1140
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
1141
+ client._sdkVersion += ("_CLI_" + __version__)
1142
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1143
+ model = models.ModifyMultiPathGatewayStatusRequest()
1144
+ model.from_json_string(json.dumps(args))
1145
+ start_time = time.time()
1146
+ while True:
1147
+ rsp = client.ModifyMultiPathGatewayStatus(model)
1148
+ result = rsp.to_json_string()
1149
+ try:
1150
+ json_obj = json.loads(result)
1151
+ except TypeError as e:
1152
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1153
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1154
+ break
1155
+ cur_time = time.time()
1156
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1157
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1158
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1159
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1160
+ else:
1161
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1162
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1163
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1164
+
1165
+
1114
1166
  def doIdentifyZone(args, parsed_globals):
1115
1167
  g_param = parse_global_arg(parsed_globals)
1116
1168
 
@@ -4751,7 +4803,7 @@ def doDescribeOriginGroup(args, parsed_globals):
4751
4803
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4752
4804
 
4753
4805
 
4754
- def doDescribeTopL7CacheData(args, parsed_globals):
4806
+ def doDescribeTimingL4Data(args, parsed_globals):
4755
4807
  g_param = parse_global_arg(parsed_globals)
4756
4808
 
4757
4809
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4780,11 +4832,11 @@ def doDescribeTopL7CacheData(args, parsed_globals):
4780
4832
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
4781
4833
  client._sdkVersion += ("_CLI_" + __version__)
4782
4834
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4783
- model = models.DescribeTopL7CacheDataRequest()
4835
+ model = models.DescribeTimingL4DataRequest()
4784
4836
  model.from_json_string(json.dumps(args))
4785
4837
  start_time = time.time()
4786
4838
  while True:
4787
- rsp = client.DescribeTopL7CacheData(model)
4839
+ rsp = client.DescribeTimingL4Data(model)
4788
4840
  result = rsp.to_json_string()
4789
4841
  try:
4790
4842
  json_obj = json.loads(result)
@@ -4803,7 +4855,7 @@ def doDescribeTopL7CacheData(args, parsed_globals):
4803
4855
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4804
4856
 
4805
4857
 
4806
- def doDescribeTimingL4Data(args, parsed_globals):
4858
+ def doDescribeTopL7CacheData(args, parsed_globals):
4807
4859
  g_param = parse_global_arg(parsed_globals)
4808
4860
 
4809
4861
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4832,11 +4884,11 @@ def doDescribeTimingL4Data(args, parsed_globals):
4832
4884
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
4833
4885
  client._sdkVersion += ("_CLI_" + __version__)
4834
4886
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4835
- model = models.DescribeTimingL4DataRequest()
4887
+ model = models.DescribeTopL7CacheDataRequest()
4836
4888
  model.from_json_string(json.dumps(args))
4837
4889
  start_time = time.time()
4838
4890
  while True:
4839
- rsp = client.DescribeTimingL4Data(model)
4891
+ rsp = client.DescribeTopL7CacheData(model)
4840
4892
  result = rsp.to_json_string()
4841
4893
  try:
4842
4894
  json_obj = json.loads(result)
@@ -6415,6 +6467,58 @@ def doDescribeDnssec(args, parsed_globals):
6415
6467
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6416
6468
 
6417
6469
 
6470
+ def doConfirmMultiPathGatewayOriginACL(args, parsed_globals):
6471
+ g_param = parse_global_arg(parsed_globals)
6472
+
6473
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6474
+ cred = credential.CVMRoleCredential()
6475
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6476
+ cred = credential.STSAssumeRoleCredential(
6477
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6478
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6479
+ )
6480
+ 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):
6481
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6482
+ else:
6483
+ cred = credential.Credential(
6484
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6485
+ )
6486
+ http_profile = HttpProfile(
6487
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6488
+ reqMethod="POST",
6489
+ endpoint=g_param[OptionsDefine.Endpoint],
6490
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6491
+ )
6492
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6493
+ if g_param[OptionsDefine.Language]:
6494
+ profile.language = g_param[OptionsDefine.Language]
6495
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6496
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
6497
+ client._sdkVersion += ("_CLI_" + __version__)
6498
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6499
+ model = models.ConfirmMultiPathGatewayOriginACLRequest()
6500
+ model.from_json_string(json.dumps(args))
6501
+ start_time = time.time()
6502
+ while True:
6503
+ rsp = client.ConfirmMultiPathGatewayOriginACL(model)
6504
+ result = rsp.to_json_string()
6505
+ try:
6506
+ json_obj = json.loads(result)
6507
+ except TypeError as e:
6508
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6509
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6510
+ break
6511
+ cur_time = time.time()
6512
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6513
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6514
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6515
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6516
+ else:
6517
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6518
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6519
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6520
+
6521
+
6418
6522
  def doDescribeSecurityJSInjectionRule(args, parsed_globals):
6419
6523
  g_param = parse_global_arg(parsed_globals)
6420
6524
 
@@ -9431,6 +9535,58 @@ def doCreateLoadBalancer(args, parsed_globals):
9431
9535
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9432
9536
 
9433
9537
 
9538
+ def doDescribeMultiPathGatewayOriginACL(args, parsed_globals):
9539
+ g_param = parse_global_arg(parsed_globals)
9540
+
9541
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9542
+ cred = credential.CVMRoleCredential()
9543
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9544
+ cred = credential.STSAssumeRoleCredential(
9545
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9546
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9547
+ )
9548
+ 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):
9549
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9550
+ else:
9551
+ cred = credential.Credential(
9552
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9553
+ )
9554
+ http_profile = HttpProfile(
9555
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9556
+ reqMethod="POST",
9557
+ endpoint=g_param[OptionsDefine.Endpoint],
9558
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9559
+ )
9560
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9561
+ if g_param[OptionsDefine.Language]:
9562
+ profile.language = g_param[OptionsDefine.Language]
9563
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9564
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
9565
+ client._sdkVersion += ("_CLI_" + __version__)
9566
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9567
+ model = models.DescribeMultiPathGatewayOriginACLRequest()
9568
+ model.from_json_string(json.dumps(args))
9569
+ start_time = time.time()
9570
+ while True:
9571
+ rsp = client.DescribeMultiPathGatewayOriginACL(model)
9572
+ result = rsp.to_json_string()
9573
+ try:
9574
+ json_obj = json.loads(result)
9575
+ except TypeError as e:
9576
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9577
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9578
+ break
9579
+ cur_time = time.time()
9580
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9581
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9582
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9583
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9584
+ else:
9585
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9586
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9587
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9588
+
9589
+
9434
9590
  def doDescribeJustInTimeTranscodeTemplates(args, parsed_globals):
9435
9591
  g_param = parse_global_arg(parsed_globals)
9436
9592
 
@@ -12429,6 +12585,7 @@ ACTION_MAP = {
12429
12585
  "DeleteFunctionRules": doDeleteFunctionRules,
12430
12586
  "CreateLoadBalancing": doCreateLoadBalancing,
12431
12587
  "ModifyDDoSPolicyHost": doModifyDDoSPolicyHost,
12588
+ "ModifyMultiPathGatewayStatus": doModifyMultiPathGatewayStatus,
12432
12589
  "IdentifyZone": doIdentifyZone,
12433
12590
  "DescribeDefaultCertificates": doDescribeDefaultCertificates,
12434
12591
  "ModifyL7AccRule": doModifyL7AccRule,
@@ -12499,8 +12656,8 @@ ACTION_MAP = {
12499
12656
  "DescribeSecurityIPGroup": doDescribeSecurityIPGroup,
12500
12657
  "CreateL4ProxyRules": doCreateL4ProxyRules,
12501
12658
  "DescribeOriginGroup": doDescribeOriginGroup,
12502
- "DescribeTopL7CacheData": doDescribeTopL7CacheData,
12503
12659
  "DescribeTimingL4Data": doDescribeTimingL4Data,
12660
+ "DescribeTopL7CacheData": doDescribeTopL7CacheData,
12504
12661
  "ScanDnsRecords": doScanDnsRecords,
12505
12662
  "ModifyRule": doModifyRule,
12506
12663
  "DescribeMultiPathGateways": doDescribeMultiPathGateways,
@@ -12531,6 +12688,7 @@ ACTION_MAP = {
12531
12688
  "ModifyMultiPathGateway": doModifyMultiPathGateway,
12532
12689
  "CreateSharedCNAME": doCreateSharedCNAME,
12533
12690
  "DescribeDnssec": doDescribeDnssec,
12691
+ "ConfirmMultiPathGatewayOriginACL": doConfirmMultiPathGatewayOriginACL,
12534
12692
  "DescribeSecurityJSInjectionRule": doDescribeSecurityJSInjectionRule,
12535
12693
  "CreateRule": doCreateRule,
12536
12694
  "CreateConfigGroupVersion": doCreateConfigGroupVersion,
@@ -12589,6 +12747,7 @@ ACTION_MAP = {
12589
12747
  "EnableOriginACL": doEnableOriginACL,
12590
12748
  "ModifyAliasDomain": doModifyAliasDomain,
12591
12749
  "CreateLoadBalancer": doCreateLoadBalancer,
12750
+ "DescribeMultiPathGatewayOriginACL": doDescribeMultiPathGatewayOriginACL,
12592
12751
  "DescribeJustInTimeTranscodeTemplates": doDescribeJustInTimeTranscodeTemplates,
12593
12752
  "ModifyApplicationProxyRule": doModifyApplicationProxyRule,
12594
12753
  "DescribeL7AccSetting": doDescribeL7AccSetting,