tccli 3.0.1174.1__py2.py3-none-any.whl → 3.0.1176.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/batch/v20170312/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +9 -9
- tccli/services/cdwdoris/cdwdoris_client.py +144 -144
- tccli/services/cdwdoris/v20211228/api.json +816 -1196
- tccli/services/cdwdoris/v20211228/examples.json +70 -70
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +114 -8
- tccli/services/cynosdb/v20190107/api.json +136 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/dbbrain/v20210527/api.json +116 -1
- tccli/services/dbbrain/v20210527/examples.json +1 -1
- tccli/services/eb/v20210416/api.json +1 -0
- tccli/services/ecm/v20190719/api.json +8 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/ess/v20201111/api.json +10 -0
- tccli/services/faceid/v20180301/api.json +20 -2
- tccli/services/faceid/v20180301/examples.json +7 -1
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/lke/v20231130/api.json +9 -0
- tccli/services/mps/v20190612/api.json +49 -29
- tccli/services/sqlserver/sqlserver_client.py +53 -0
- tccli/services/sqlserver/v20180328/api.json +108 -9
- tccli/services/sqlserver/v20180328/examples.json +8 -0
- tccli/services/tiia/tiia_client.py +4 -57
- tccli/services/tiia/v20190529/api.json +0 -296
- tccli/services/tiia/v20190529/examples.json +0 -8
- tccli/services/trtc/trtc_client.py +53 -0
- tccli/services/trtc/v20190722/api.json +62 -0
- tccli/services/trtc/v20190722/examples.json +8 -0
- tccli/services/vod/v20180717/api.json +403 -5
- tccli/services/vod/v20180717/examples.json +31 -1
- tccli/services/vod/vod_client.py +171 -12
- tccli/services/vpc/v20170312/api.json +10 -1
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1174.1.dist-info → tccli-3.0.1176.1.dist-info}/license_files/LICENSE +0 -0
@@ -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
|
-
"
|
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:
|
143
|
-
"output": "{\n \"Response\": {\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
|
-
"
|
139
|
+
"DescribeCoolDownPolicies": [
|
148
140
|
{
|
149
141
|
"document": "",
|
150
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
151
|
-
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"
|
152
|
-
"title": "
|
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
|
-
"
|
147
|
+
"DescribeCoolDownTableData": [
|
156
148
|
{
|
157
149
|
"document": "",
|
158
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
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
|
-
"
|
155
|
+
"DescribeDatabaseAuditDownload": [
|
164
156
|
{
|
165
|
-
"document": "
|
166
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
167
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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
|
-
"
|
163
|
+
"DescribeDatabaseAuditRecords": [
|
172
164
|
{
|
173
|
-
"document": "
|
174
|
-
"input": "
|
175
|
-
"output": "{\n \"Response\": {\n \"
|
176
|
-
"title": "
|
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": "",
|
@@ -310,6 +286,14 @@
|
|
310
286
|
"title": "查询ck集群信息"
|
311
287
|
}
|
312
288
|
],
|
289
|
+
"DescribeTableList": [
|
290
|
+
{
|
291
|
+
"document": "获取internal数据源和demo库下的表列表",
|
292
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableList\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdwdoris-bjizjxxx\",\n \"DbName\": \"demo\"\n}",
|
293
|
+
"output": "{\n \"Response\": {\n \"Message\": \"\",\n \"RequestId\": \"28caf1f1-9192-477c-94d4-e910b87ca0fc\",\n \"TableNames\": [\n \"test\",\n \"table\"\n ]\n }\n}",
|
294
|
+
"title": "获取表列表"
|
295
|
+
}
|
296
|
+
],
|
313
297
|
"DescribeUserBindWorkloadGroup": [
|
314
298
|
{
|
315
299
|
"document": "",
|
@@ -334,12 +318,12 @@
|
|
334
318
|
"title": "集群销毁示例"
|
335
319
|
}
|
336
320
|
],
|
337
|
-
"
|
321
|
+
"ModifyCoolDownPolicy": [
|
338
322
|
{
|
339
|
-
"document": "
|
340
|
-
"input": "
|
341
|
-
"output": "{\n \"Response\": {\n \"
|
342
|
-
"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": "示例"
|
343
327
|
}
|
344
328
|
],
|
345
329
|
"ModifyInstance": [
|
@@ -406,14 +390,22 @@
|
|
406
390
|
"title": "开启或关闭资源组"
|
407
391
|
}
|
408
392
|
],
|
409
|
-
"
|
393
|
+
"OpenCoolDown": [
|
410
394
|
{
|
411
395
|
"document": "",
|
412
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
413
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
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}",
|
414
398
|
"title": "示例"
|
415
399
|
}
|
416
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
|
+
],
|
417
409
|
"RecoverBackUpJob": [
|
418
410
|
{
|
419
411
|
"document": "",
|
@@ -469,6 +461,14 @@
|
|
469
461
|
"output": "{\n \"Response\": {\n \"FlowId\": \"1231\",\n \"InstanceId\": \"cdwch-auqej7a\",\n \"ErrorMsg\": \"\",\n \"RequestId\": \"xasdfkqe2-a12q29-axdfas\"\n }\n}",
|
470
462
|
"title": "节点垂直变配示例"
|
471
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
|
+
}
|
472
472
|
]
|
473
473
|
},
|
474
474
|
"version": "1.0"
|
@@ -2742,7 +2742,7 @@
|
|
2742
2742
|
},
|
2743
2743
|
{
|
2744
2744
|
"disabled": false,
|
2745
|
-
"document": "空闲连接超时时间,此参数仅适用于TCP
|
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": "
|
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
|
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.
|
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.
|
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
|
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.
|
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.
|
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
|
-
"
|
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
|
-
"
|
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": [
|