tccli 3.0.1175.1__py2.py3-none-any.whl → 3.0.1176.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,14 @@
8
8
  "title": "test"
9
9
  }
10
10
  ],
11
+ "CheckCoolDownWorkingVariableConfigCorrect": [
12
+ {
13
+ "document": "",
14
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckCoolDownWorkingVariableConfigCorrect\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
15
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
16
+ "title": "示例"
17
+ }
18
+ ],
11
19
  "CreateBackUpSchedule": [
12
20
  {
13
21
  "document": "",
@@ -16,6 +24,14 @@
16
24
  "title": "示例"
17
25
  }
18
26
  ],
27
+ "CreateCoolDownPolicy": [
28
+ {
29
+ "document": "",
30
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCoolDownPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"PolicyName\": \"abc\",\n \"CoolDownTtl\": \"abc\",\n \"CoolDownDatetime\": \"abc\"\n}",
31
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
32
+ "title": "示例"
33
+ }
34
+ ],
19
35
  "CreateInstanceNew": [
20
36
  {
21
37
  "document": "创建集群",
@@ -112,68 +128,44 @@
112
128
  "title": "test"
113
129
  }
114
130
  ],
115
- "DescribeDatabaseAuditDownload": [
116
- {
117
- "document": "下载数据库审计日志",
118
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabaseAuditDownload\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"PageSize\": 0,\n \"PageNum\": 0,\n \"OrderType\": \"abc\",\n \"User\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\",\n \"Sql\": \"abc\",\n \"Users\": [\n \"abc\"\n ],\n \"DbNames\": [\n \"abc\"\n ],\n \"SqlTypes\": [\n \"abc\"\n ]\n}",
119
- "output": "{\n \"Response\": {\n \"CosUrl\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
120
- "title": "DescribeDatabaseAuditDownload"
121
- }
122
- ],
123
- "DescribeDatabaseAuditRecords": [
124
- {
125
- "document": "获取数据库审计记录",
126
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabaseAuditRecords\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"PageSize\": 0,\n \"PageNum\": 0,\n \"OrderType\": \"abc\",\n \"User\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\",\n \"Sql\": \"abc\",\n \"Users\": [\n \"abc\"\n ],\n \"DbNames\": [\n \"abc\"\n ],\n \"SqlTypes\": [\n \"abc\"\n ]\n}",
127
- "output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"SlowQueryRecords\": {\n \"OsUser\": \"abc\",\n \"InitialQueryId\": \"abc\",\n \"Sql\": \"abc\",\n \"QueryStartTime\": \"abc\",\n \"DurationMs\": 0,\n \"ReadRows\": 0,\n \"ResultRows\": 0,\n \"ResultBytes\": 1,\n \"MemoryUsage\": 0,\n \"InitialAddress\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
128
- "title": "DescribeDatabaseAuditRecords"
129
- }
130
- ],
131
- "DescribeDatabaseAuditResource": [
132
- {
133
- "document": "获取审计日志的相关信息",
134
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabaseAuditResource\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
135
- "output": "{\n \"Response\": {\n \"Databases\": [\n \"abc\"\n ],\n \"Users\": [\n \"abc\"\n ],\n \"SqlTypes\": [\n \"abc\"\n ],\n \"RequestId\": \"abc\"\n }\n}",
136
- "title": "DescribeDatabaseAuditResource"
137
- }
138
- ],
139
- "DescribeDmsSqlHistory": [
131
+ "DescribeCoolDownBackends": [
140
132
  {
141
133
  "document": "",
142
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDmsSqlHistory\n<公共请求参数>\n\n{}",
143
- "output": "{\n \"Response\": {\n \"QueryNodeList\": [\n \"abc\"\n ],\n \"QueryStatusList\": [\n \"abc\"\n ],\n \"RequestId\": \"abc\"\n }\n}",
144
- "title": "查询历史执行记录"
134
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCoolDownBackends\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
135
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"List\": [\n {\n \"Host\": \"abc\",\n \"DataUsedCapacity\": \"abc\",\n \"TotalCapacity\": \"abc\",\n \"RemoteUsedCapacity\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
136
+ "title": "示例"
145
137
  }
146
138
  ],
147
- "DescribeDorisMetricFiles": [
139
+ "DescribeCoolDownPolicies": [
148
140
  {
149
141
  "document": "",
150
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDorisMetricFiles\n<公共请求参数>\n\n{\n \"ApiType\": \"abc\",\n \"DescribeMetricsFileReq\": {\n \"InstanceType\": \"abc\",\n \"MetricType\": \"abc\",\n \"IfAttention\": 0\n },\n \"ModifyMetricFileReq\": {\n \"Id\": 0,\n \"IfAttention\": \"abc\"\n },\n \"InstanceId\": \"abc\",\n \"ModifyAttentionMetricFileReq\": {\n \"InstanceType\": \"abc\",\n \"MetricType\": \"abc\",\n \"Name\": \"abc\",\n \"IfAttention\": 0\n }\n}",
151
- "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"ReturnData\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
152
- "title": "DescribeDorisMetricFiles"
142
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCoolDownPolicies\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
143
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"List\": [\n {\n \"PolicyName\": \"abc\",\n \"CooldownDatetime\": \"abc\",\n \"CooldownTtl\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
144
+ "title": "示例"
153
145
  }
154
146
  ],
155
- "DescribeFederationToken": [
147
+ "DescribeCoolDownTableData": [
156
148
  {
157
149
  "document": "",
158
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFederationToken\n<公共请求参数>\n\n{}",
159
- "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
160
- "title": "获取联合临时密钥"
150
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCoolDownTableData\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"DatabaseName\": \"abc\"\n}",
151
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"List\": [\n {\n \"TableName\": \"abc\",\n \"Size\": \"abc\",\n \"RemoteSize\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
152
+ "title": "示例"
161
153
  }
162
154
  ],
163
- "DescribeFrontEnd": [
155
+ "DescribeDatabaseAuditDownload": [
164
156
  {
165
- "document": "示例",
166
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFrontEnd\n<公共请求参数>\n\n{}",
167
- "output": "{\n \"Response\": {\n \"RequestId\": \"532418ac-e131-437f-9fe7-4c7d0f3e31c4\"\n }\n}",
168
- "title": "示例"
157
+ "document": "下载数据库审计日志",
158
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabaseAuditDownload\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"PageSize\": 0,\n \"PageNum\": 0,\n \"OrderType\": \"abc\",\n \"User\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\",\n \"Sql\": \"abc\",\n \"Users\": [\n \"abc\"\n ],\n \"DbNames\": [\n \"abc\"\n ],\n \"SqlTypes\": [\n \"abc\"\n ]\n}",
159
+ "output": "{\n \"Response\": {\n \"CosUrl\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
160
+ "title": "DescribeDatabaseAuditDownload"
169
161
  }
170
162
  ],
171
- "DescribeGoodsDetail": [
163
+ "DescribeDatabaseAuditRecords": [
172
164
  {
173
- "document": "生成计费相关接口的GoodsDetail结构",
174
- "input": "https://cdwdoris.tencentcloudapi.com/\n?Action=DescribeGoodsDetail\n&Zone=ap-chongqing-1\n&HaFlag=true\n&UserVPCId=vpc-xxx\n&UserSubnetId=subnet-xxxx\n&ProductVersion=20.7.2.30\n&Case=CREATE\n&ChargeProperties.ChargeType=\"PREPAID\"\n&ChargeProperties.RenewFlag=1\n&ChargeProperties.TimeSpan=1\n&ChargeProperties.TimeUnit=m\n&<公共请求参数>",
175
- "output": "{\n \"Response\": {\n \"Type\": \"sp_cdwch_standard\",\n \"GoodsCategoryId\": 1,\n \"GoodsDetail\": \"{\\\"context\\\":{\\\"AppID\\\":1258469122,\\\"AutoRenewFlag\\\":0,\\\"Case\\\":\\\"CREATE\\\",\\\"Channel\\\":0,\\\"ChargeProperties\\\":{\\\"ChargeType\\\":\\\"PREPAID\\\",\\\"RenewFlag\\\":1,\\\"TimeSpan\\\":1,\\\"TimeUnit\\\":\\\"m\\\"},\\\"Components\\\":[\\\"clickhouse-20.7.2.30\\\",\\\"zookeeper-3.4.9\\\"],\\\"DealName\\\":\\\"\\\",\\\"EMRInstanceID\\\":\\\"\\\",\\\"EMRInstanceNo\\\":0,\\\"ExpiredTime\\\":\\\"\\\",\\\"HAInstance\\\":true,\\\"ImageID\\\":\\\"\\\",\\\"InstanceName\\\":\\\"\\\",\\\"InstanceType\\\":\\\"\\\",\\\"ModifyConfigItems\\\":null,\\\"OperateUin\\\":\\\"\\\",\\\"Password\\\":\\\"\\\",\\\"ProductID\\\":0,\\\"Region\\\":\\\"ap-guangzhou\\\",\\\"RenewPeriod\\\":0,\\\"ResourceAppID\\\":0,\\\"ResourceOperateUin\\\":\\\"\\\",\\\"ResourceUin\\\":\\\"\\\",\\\"Resources\\\":[{\\\"Count\\\":2,\\\"DiskSpec\\\":{\\\"DiskCount\\\":0,\\\"DiskSize\\\":0,\\\"DiskType\\\":\\\"\\\"},\\\"SpecName\\\":\\\"CVM.S2\\\",\\\"Type\\\":\\\"DATA\\\"},{\\\"Count\\\":1,\\\"DiskSpec\\\":{\\\"DiskCount\\\":0,\\\"DiskSize\\\":0,\\\"DiskType\\\":\\\"\\\"},\\\"SpecName\\\":\\\"CVM.S2\\\",\\\"Type\\\":\\\"COMMON\\\"}],\\\"SecurityGroupID\\\":\\\"\\\",\\\"ServiceName\\\":\\\"ClickHouse\\\",\\\"StackID\\\":\\\"\\\",\\\"Tags\\\":{\\\"ResourceType\\\":\\\"\\\",\\\"Tags\\\":null},\\\"TimeSpan\\\":1,\\\"TimeUnit\\\":\\\"m\\\",\\\"Topology\\\":\\\"\\\",\\\"TraceID\\\":\\\"trace-vudbhcyqe15awen3\\\",\\\"Uin\\\":\\\"100010640219\\\",\\\"UserSubnetID\\\":\\\"subnet-xx111\\\",\\\"UserVPCID\\\":\\\"vpc-xxx\\\",\\\"VIPType\\\":0,\\\"Version\\\":\\\"20.7.2.30\\\",\\\"Zone\\\":\\\"ap-guangzhou-4\\\",\\\"instanceId\\\":\\\"cdwch-bbi1k4he\\\",\\\"modifySpec\\\":null},\\\"curDeadline\\\":\\\"\\\",\\\"goodsNum\\\":1,\\\"pid\\\":123,\\\"productCode\\\":\\\"p_cdwch\\\",\\\"productInfo\\\":{\\\"可用区\\\":\\\"ap-guangzhou-4\\\",\\\"地域\\\":\\\"ap-guangzhou\\\",\\\"集群\\\":\\\"cdwch-bbi1k4he\\\"},\\\"sa2_cpu2_mem4\\\":\\\"3\\\",\\\"subProductCode\\\":\\\"p_sub_iaas\\\",\\\"timeSpan\\\":1,\\\"timeUnit\\\":\\\"m\\\"}\",\n \"GoodsNum\": 1,\n \"PayMode\": 1,\n \"RegionId\": 1,\n \"ZoneId\": 100004,\n \"ResourceId\": \"cdwch-bbi1k4he\",\n \"RequestId\": \"xxx-xxx-xxx-xxx\"\n }\n}",
176
- "title": "生成GoodsDetail"
165
+ "document": "获取数据库审计记录",
166
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDatabaseAuditRecords\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\",\n \"PageSize\": 0,\n \"PageNum\": 0,\n \"OrderType\": \"abc\",\n \"User\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\",\n \"Sql\": \"abc\",\n \"Users\": [\n \"abc\"\n ],\n \"DbNames\": [\n \"abc\"\n ],\n \"SqlTypes\": [\n \"abc\"\n ]\n}",
167
+ "output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"SlowQueryRecords\": {\n \"OsUser\": \"abc\",\n \"InitialQueryId\": \"abc\",\n \"Sql\": \"abc\",\n \"QueryStartTime\": \"abc\",\n \"DurationMs\": 0,\n \"ReadRows\": 0,\n \"ResultRows\": 0,\n \"ResultBytes\": 1,\n \"MemoryUsage\": 0,\n \"InitialAddress\": \"abc\",\n \"DbName\": \"abc\",\n \"SqlType\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
168
+ "title": "DescribeDatabaseAuditRecords"
177
169
  }
178
170
  ],
179
171
  "DescribeInstance": [
@@ -254,22 +246,6 @@
254
246
  "title": "DescribeInstancesHealthState"
255
247
  }
256
248
  ],
257
- "DescribeRegionZone": [
258
- {
259
- "document": "购买页获取地域及可用区列表、内核版本、网络规则等",
260
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRegionZone\n<公共请求参数>\n\n{}",
261
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"Regions\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"RegionId\": 0,\n \"Zones\": [\n {\n \"Name\": \"abc\",\n \"Desc\": \"abc\",\n \"ZoneId\": 0,\n \"Encrypt\": 0\n }\n ],\n \"Count\": 0,\n \"IsInternationalSite\": 1,\n \"Bucket\": \"abc\"\n }\n ]\n }\n ],\n \"Versions\": [\n \"abc\"\n ],\n \"VpcRule\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
262
- "title": "购买页获取地域及可用区列表"
263
- }
264
- ],
265
- "DescribeReplicaVersion": [
266
- {
267
- "document": "",
268
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReplicaVersion\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\"\n}",
269
- "output": "{\n \"Response\": {\n \"ReplicaFlagItem\": {\n \"ReplicaFlag\": 0,\n \"ErrorMsg\": \"xx\"\n },\n \"RequestId\": \"xx\"\n }\n}",
270
- "title": "DescribeReplicaVersion"
271
- }
272
- ],
273
249
  "DescribeRestoreTaskDetail": [
274
250
  {
275
251
  "document": "",
@@ -342,12 +318,12 @@
342
318
  "title": "集群销毁示例"
343
319
  }
344
320
  ],
345
- "FitClsLog": [
321
+ "ModifyCoolDownPolicy": [
346
322
  {
347
- "document": "在集群配置页面修改集群接口",
348
- "input": "https://cdwdoris.tencentcloudapi.com/\n?Action=FitClsLog\n&InstanceId=cdwch-xxxx\n&ClsLogSetId=xxxx\n&<公共请求参数>",
349
- "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx\",\n \"FlowId\": 0,\n \"ErrorMsg\": \"\"\n }\n}",
350
- "title": "修改集群配置接口"
323
+ "document": "",
324
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyCoolDownPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"PolicyName\": \"abc\",\n \"CoolDownTtl\": \"abc\",\n \"CoolDownDatetime\": \"abc\"\n}",
325
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
326
+ "title": "示例"
351
327
  }
352
328
  ],
353
329
  "ModifyInstance": [
@@ -414,14 +390,22 @@
414
390
  "title": "开启或关闭资源组"
415
391
  }
416
392
  ],
417
- "OpenBackUp": [
393
+ "OpenCoolDown": [
418
394
  {
419
395
  "document": "",
420
- "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenBackUp\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-itrbbn1z\",\n \"CosBucketName\": \"carson-test-1301087413\",\n \"OperationType\": \"open\"\n}",
421
- "output": "{\n \"Response\": {\n \"RequestId\": \"3f8a0da4-f950-4ab5-9b20-c347528bd220\"\n }\n}",
396
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenCoolDown\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
397
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
422
398
  "title": "示例"
423
399
  }
424
400
  ],
401
+ "OpenCoolDownPolicy": [
402
+ {
403
+ "document": "",
404
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenCoolDownPolicy\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"DatabaseName\": \"abc\",\n \"TableName\": \"abc\",\n \"OperationType\": \"abc\"\n}",
405
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"QueryDocument\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
406
+ "title": "开通"
407
+ }
408
+ ],
425
409
  "RecoverBackUpJob": [
426
410
  {
427
411
  "document": "",
@@ -477,6 +461,14 @@
477
461
  "output": "{\n \"Response\": {\n \"FlowId\": \"1231\",\n \"InstanceId\": \"cdwch-auqej7a\",\n \"ErrorMsg\": \"\",\n \"RequestId\": \"xasdfkqe2-a12q29-axdfas\"\n }\n}",
478
462
  "title": "节点垂直变配示例"
479
463
  }
464
+ ],
465
+ "UpdateCoolDown": [
466
+ {
467
+ "document": "",
468
+ "input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCoolDown\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"Enable\": 1,\n \"Bucket\": \"abc\"\n}",
469
+ "output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
470
+ "title": "示例"
471
+ }
480
472
  ]
481
473
  },
482
474
  "version": "1.0"
@@ -2742,7 +2742,7 @@
2742
2742
  },
2743
2743
  {
2744
2744
  "disabled": false,
2745
- "document": "空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。默认值:900,取值范围:共享型实例和独占型实例支持:300900,性能容量型实例支持:300~2000。如需设置超过2000s,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category),最大可设置到3600s。",
2745
+ "document": "空闲连接超时时间,此参数仅适用于TCP监听器,单位:秒。取值范围:共享型实例和独占型实例支持:300~900,性能容量型实例支持:300~2000。如需设置请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)。",
2746
2746
  "example": "900",
2747
2747
  "member": "int64",
2748
2748
  "name": "IdleConnectTimeout",
@@ -9188,7 +9188,7 @@
9188
9188
  "members": [
9189
9189
  {
9190
9190
  "disabled": false,
9191
- "document": "实例所属的可用区ID。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。",
9191
+ "document": "实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。",
9192
9192
  "example": "无",
9193
9193
  "member": "string",
9194
9194
  "name": "Zone",
@@ -121,6 +121,58 @@ def doDescribeInstanceSpecs(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
+ def doModifyBinlogConfig(args, parsed_globals):
125
+ g_param = parse_global_arg(parsed_globals)
126
+
127
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
128
+ cred = credential.CVMRoleCredential()
129
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
130
+ cred = credential.STSAssumeRoleCredential(
131
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
132
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
133
+ )
134
+ 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):
135
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
136
+ else:
137
+ cred = credential.Credential(
138
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
139
+ )
140
+ http_profile = HttpProfile(
141
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
142
+ reqMethod="POST",
143
+ endpoint=g_param[OptionsDefine.Endpoint],
144
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
145
+ )
146
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
147
+ if g_param[OptionsDefine.Language]:
148
+ profile.language = g_param[OptionsDefine.Language]
149
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
150
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
151
+ client._sdkVersion += ("_CLI_" + __version__)
152
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
+ model = models.ModifyBinlogConfigRequest()
154
+ model.from_json_string(json.dumps(args))
155
+ start_time = time.time()
156
+ while True:
157
+ rsp = client.ModifyBinlogConfig(model)
158
+ result = rsp.to_json_string()
159
+ try:
160
+ json_obj = json.loads(result)
161
+ except TypeError as e:
162
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
163
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
164
+ break
165
+ cur_time = time.time()
166
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
167
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
168
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
169
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
170
+ else:
171
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
172
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
173
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
+
175
+
124
176
  def doCreateProxyEndPoint(args, parsed_globals):
125
177
  g_param = parse_global_arg(parsed_globals)
126
178
 
@@ -4697,6 +4749,58 @@ def doAssociateSecurityGroups(args, parsed_globals):
4697
4749
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4698
4750
 
4699
4751
 
4752
+ def doDescribeBinlogConfig(args, parsed_globals):
4753
+ g_param = parse_global_arg(parsed_globals)
4754
+
4755
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4756
+ cred = credential.CVMRoleCredential()
4757
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4758
+ cred = credential.STSAssumeRoleCredential(
4759
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4760
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4761
+ )
4762
+ 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):
4763
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4764
+ else:
4765
+ cred = credential.Credential(
4766
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4767
+ )
4768
+ http_profile = HttpProfile(
4769
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4770
+ reqMethod="POST",
4771
+ endpoint=g_param[OptionsDefine.Endpoint],
4772
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4773
+ )
4774
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4775
+ if g_param[OptionsDefine.Language]:
4776
+ profile.language = g_param[OptionsDefine.Language]
4777
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4778
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
4779
+ client._sdkVersion += ("_CLI_" + __version__)
4780
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4781
+ model = models.DescribeBinlogConfigRequest()
4782
+ model.from_json_string(json.dumps(args))
4783
+ start_time = time.time()
4784
+ while True:
4785
+ rsp = client.DescribeBinlogConfig(model)
4786
+ result = rsp.to_json_string()
4787
+ try:
4788
+ json_obj = json.loads(result)
4789
+ except TypeError as e:
4790
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4791
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4792
+ break
4793
+ cur_time = time.time()
4794
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4795
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4796
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4797
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4798
+ else:
4799
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4800
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4801
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4802
+
4803
+
4700
4804
  def doDescribeResourcePackageSaleSpec(args, parsed_globals):
4701
4805
  g_param = parse_global_arg(parsed_globals)
4702
4806
 
@@ -4853,7 +4957,7 @@ def doDescribeAuditRuleWithInstanceIds(args, parsed_globals):
4853
4957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
4958
 
4855
4959
 
4856
- def doIsolateInstance(args, parsed_globals):
4960
+ def doExportInstanceErrorLogs(args, parsed_globals):
4857
4961
  g_param = parse_global_arg(parsed_globals)
4858
4962
 
4859
4963
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4882,11 +4986,11 @@ def doIsolateInstance(args, parsed_globals):
4882
4986
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
4883
4987
  client._sdkVersion += ("_CLI_" + __version__)
4884
4988
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4885
- model = models.IsolateInstanceRequest()
4989
+ model = models.ExportInstanceErrorLogsRequest()
4886
4990
  model.from_json_string(json.dumps(args))
4887
4991
  start_time = time.time()
4888
4992
  while True:
4889
- rsp = client.IsolateInstance(model)
4993
+ rsp = client.ExportInstanceErrorLogs(model)
4890
4994
  result = rsp.to_json_string()
4891
4995
  try:
4892
4996
  json_obj = json.loads(result)
@@ -7453,7 +7557,7 @@ def doDescribeInstanceErrorLogs(args, parsed_globals):
7453
7557
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7454
7558
 
7455
7559
 
7456
- def doExportInstanceErrorLogs(args, parsed_globals):
7560
+ def doIsolateInstance(args, parsed_globals):
7457
7561
  g_param = parse_global_arg(parsed_globals)
7458
7562
 
7459
7563
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -7482,11 +7586,11 @@ def doExportInstanceErrorLogs(args, parsed_globals):
7482
7586
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
7483
7587
  client._sdkVersion += ("_CLI_" + __version__)
7484
7588
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
7485
- model = models.ExportInstanceErrorLogsRequest()
7589
+ model = models.IsolateInstanceRequest()
7486
7590
  model.from_json_string(json.dumps(args))
7487
7591
  start_time = time.time()
7488
7592
  while True:
7489
- rsp = client.ExportInstanceErrorLogs(model)
7593
+ rsp = client.IsolateInstance(model)
7490
7594
  result = rsp.to_json_string()
7491
7595
  try:
7492
7596
  json_obj = json.loads(result)
@@ -7518,6 +7622,7 @@ MODELS_MAP = {
7518
7622
  ACTION_MAP = {
7519
7623
  "ResumeServerless": doResumeServerless,
7520
7624
  "DescribeInstanceSpecs": doDescribeInstanceSpecs,
7625
+ "ModifyBinlogConfig": doModifyBinlogConfig,
7521
7626
  "CreateProxyEndPoint": doCreateProxyEndPoint,
7522
7627
  "ModifyResourcePackageClusters": doModifyResourcePackageClusters,
7523
7628
  "CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
@@ -7606,10 +7711,11 @@ ACTION_MAP = {
7606
7711
  "OpenWan": doOpenWan,
7607
7712
  "InquirePriceCreate": doInquirePriceCreate,
7608
7713
  "AssociateSecurityGroups": doAssociateSecurityGroups,
7714
+ "DescribeBinlogConfig": doDescribeBinlogConfig,
7609
7715
  "DescribeResourcePackageSaleSpec": doDescribeResourcePackageSaleSpec,
7610
7716
  "ModifyAccountPrivileges": doModifyAccountPrivileges,
7611
7717
  "DescribeAuditRuleWithInstanceIds": doDescribeAuditRuleWithInstanceIds,
7612
- "IsolateInstance": doIsolateInstance,
7718
+ "ExportInstanceErrorLogs": doExportInstanceErrorLogs,
7613
7719
  "AddClusterSlaveZone": doAddClusterSlaveZone,
7614
7720
  "ModifyBackupName": doModifyBackupName,
7615
7721
  "DescribeAccounts": doDescribeAccounts,
@@ -7659,7 +7765,7 @@ ACTION_MAP = {
7659
7765
  "OpenAuditService": doOpenAuditService,
7660
7766
  "RemoveClusterSlaveZone": doRemoveClusterSlaveZone,
7661
7767
  "DescribeInstanceErrorLogs": doDescribeInstanceErrorLogs,
7662
- "ExportInstanceErrorLogs": doExportInstanceErrorLogs,
7768
+ "IsolateInstance": doIsolateInstance,
7663
7769
 
7664
7770
  }
7665
7771
 
@@ -273,6 +273,13 @@
273
273
  "output": "DescribeBackupListResponse",
274
274
  "status": "online"
275
275
  },
276
+ "DescribeBinlogConfig": {
277
+ "document": "该接口(DescribeBinlogConfig)用于查询binlog配置",
278
+ "input": "DescribeBinlogConfigRequest",
279
+ "name": "查询binlog配置",
280
+ "output": "DescribeBinlogConfigResponse",
281
+ "status": "online"
282
+ },
276
283
  "DescribeBinlogDownloadUrl": {
277
284
  "document": "此接口(DescribeBinlogDownloadUrl)用于查询Binlog的下载地址。",
278
285
  "input": "DescribeBinlogDownloadUrlRequest",
@@ -658,6 +665,13 @@
658
665
  "output": "ModifyBackupNameResponse",
659
666
  "status": "online"
660
667
  },
668
+ "ModifyBinlogConfig": {
669
+ "document": "该接口(ModifyBinlogConfig)用于修改Binlog配置",
670
+ "input": "ModifyBinlogConfigRequest",
671
+ "name": "修改Binlog配置",
672
+ "output": "ModifyBinlogConfigResponse",
673
+ "status": "online"
674
+ },
661
675
  "ModifyBinlogSaveDays": {
662
676
  "document": "此接口(ModifyBinlogSaveDays)用于修改集群Binlog保留天数。",
663
677
  "input": "ModifyBinlogSaveDaysRequest",
@@ -2440,6 +2454,45 @@
2440
2454
  ],
2441
2455
  "usage": "out"
2442
2456
  },
2457
+ "BinlogConfigInfo": {
2458
+ "document": "binlog配置信息",
2459
+ "members": [
2460
+ {
2461
+ "disabled": false,
2462
+ "document": "binlog保留时间\n注意:此字段可能返回 null,表示取不到有效值。",
2463
+ "example": "无",
2464
+ "member": "int64",
2465
+ "name": "BinlogSaveDays",
2466
+ "output_required": false,
2467
+ "required": true,
2468
+ "type": "int",
2469
+ "value_allowed_null": true
2470
+ },
2471
+ {
2472
+ "disabled": false,
2473
+ "document": "binlog异地地域备份是否开启\n注意:此字段可能返回 null,表示取不到有效值。",
2474
+ "example": "无",
2475
+ "member": "string",
2476
+ "name": "BinlogCrossRegionsEnable",
2477
+ "output_required": false,
2478
+ "required": true,
2479
+ "type": "string",
2480
+ "value_allowed_null": true
2481
+ },
2482
+ {
2483
+ "disabled": false,
2484
+ "document": "binlog异地地域\n注意:此字段可能返回 null,表示取不到有效值。",
2485
+ "example": "无",
2486
+ "member": "string",
2487
+ "name": "BinlogCrossRegions",
2488
+ "output_required": false,
2489
+ "required": false,
2490
+ "type": "list",
2491
+ "value_allowed_null": true
2492
+ }
2493
+ ],
2494
+ "usage": "both"
2495
+ },
2443
2496
  "BinlogItem": {
2444
2497
  "document": "Binlog描述",
2445
2498
  "members": [
@@ -8783,6 +8836,53 @@
8783
8836
  ],
8784
8837
  "type": "object"
8785
8838
  },
8839
+ "DescribeBinlogConfigRequest": {
8840
+ "document": "DescribeBinlogConfig请求参数结构体",
8841
+ "members": [
8842
+ {
8843
+ "disabled": false,
8844
+ "document": "集群ID",
8845
+ "example": "无",
8846
+ "member": "string",
8847
+ "name": "ClusterId",
8848
+ "required": true,
8849
+ "type": "string"
8850
+ }
8851
+ ],
8852
+ "type": "object"
8853
+ },
8854
+ "DescribeBinlogConfigResponse": {
8855
+ "document": "DescribeBinlogConfig返回参数结构体",
8856
+ "members": [
8857
+ {
8858
+ "disabled": false,
8859
+ "document": "Binlog跨地域配置更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
8860
+ "example": "无",
8861
+ "member": "string",
8862
+ "name": "BinlogCrossRegionsConfigUpdateTime",
8863
+ "output_required": false,
8864
+ "type": "string",
8865
+ "value_allowed_null": true
8866
+ },
8867
+ {
8868
+ "disabled": false,
8869
+ "document": "Binlog配置信息\n注意:此字段可能返回 null,表示取不到有效值。",
8870
+ "example": "无",
8871
+ "member": "BinlogConfigInfo",
8872
+ "name": "BinlogConfig",
8873
+ "output_required": false,
8874
+ "type": "object",
8875
+ "value_allowed_null": true
8876
+ },
8877
+ {
8878
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8879
+ "member": "string",
8880
+ "name": "RequestId",
8881
+ "type": "string"
8882
+ }
8883
+ ],
8884
+ "type": "object"
8885
+ },
8786
8886
  "DescribeBinlogDownloadUrlRequest": {
8787
8887
  "document": "DescribeBinlogDownloadUrl请求参数结构体",
8788
8888
  "members": [
@@ -13845,6 +13945,42 @@
13845
13945
  ],
13846
13946
  "type": "object"
13847
13947
  },
13948
+ "ModifyBinlogConfigRequest": {
13949
+ "document": "ModifyBinlogConfig请求参数结构体",
13950
+ "members": [
13951
+ {
13952
+ "disabled": false,
13953
+ "document": "集群ID",
13954
+ "example": "无",
13955
+ "member": "string",
13956
+ "name": "ClusterId",
13957
+ "required": true,
13958
+ "type": "string"
13959
+ },
13960
+ {
13961
+ "disabled": false,
13962
+ "document": "Binlog配置信息",
13963
+ "example": "无",
13964
+ "member": "BinlogConfigInfo",
13965
+ "name": "BinlogConfig",
13966
+ "required": true,
13967
+ "type": "object"
13968
+ }
13969
+ ],
13970
+ "type": "object"
13971
+ },
13972
+ "ModifyBinlogConfigResponse": {
13973
+ "document": "ModifyBinlogConfig返回参数结构体",
13974
+ "members": [
13975
+ {
13976
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13977
+ "member": "string",
13978
+ "name": "RequestId",
13979
+ "type": "string"
13980
+ }
13981
+ ],
13982
+ "type": "object"
13983
+ },
13848
13984
  "ModifyBinlogSaveDaysRequest": {
13849
13985
  "document": "ModifyBinlogSaveDays请求参数结构体",
13850
13986
  "members": [
@@ -330,6 +330,14 @@
330
330
  "title": "查询备份文件列表"
331
331
  }
332
332
  ],
333
+ "DescribeBinlogConfig": [
334
+ {
335
+ "document": "查询binlog配置信息",
336
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBinlogConfig\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxx\"\n}",
337
+ "output": "{\n \"Response\": {\n \"BinlogCrossRegionsConfigUpdateTime\": \"abc\",\n \"BinlogConfig\": {\n \"BinlogSaveDays\": 0,\n \"BinlogCrossRegionsEnable\": \"abc\",\n \"BinlogCrossRegions\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
338
+ "title": "查询binlog配置信息"
339
+ }
340
+ ],
333
341
  "DescribeBinlogDownloadUrl": [
334
342
  {
335
343
  "document": "",
@@ -776,6 +784,14 @@
776
784
  "title": "修改备份文件备注名"
777
785
  }
778
786
  ],
787
+ "ModifyBinlogConfig": [
788
+ {
789
+ "document": "修改binlog配置信息",
790
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBinlogConfig\n<公共请求参数>\n\n{\n \"ClusterId\": \"abc\",\n \"BinlogConfig\": {\n \"BinlogSaveDays\": 0,\n \"BinlogCrossRegionsEnable\": \"abc\",\n \"BinlogCrossRegions\": \"abc\"\n }\n}",
791
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
792
+ "title": "修改binlog配置信息"
793
+ }
794
+ ],
779
795
  "ModifyBinlogSaveDays": [
780
796
  {
781
797
  "document": "",