tccli 3.0.1175.1__py2.py3-none-any.whl → 3.0.1177.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/ccc/v20200210/api.json +9 -9
- tccli/services/cdwdoris/cdwdoris_client.py +113 -113
- tccli/services/cdwdoris/v20211228/api.json +899 -1218
- 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/dcdb/v20180411/api.json +28 -1
- tccli/services/dnspod/v20210323/api.json +1 -0
- tccli/services/dsgc/v20190723/api.json +85 -9
- tccli/services/dsgc/v20190723/examples.json +4 -4
- tccli/services/ecm/v20190719/api.json +8 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/faceid/v20180301/api.json +29 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/mps/v20190612/api.json +49 -29
- tccli/services/mrs/v20200910/api.json +3 -0
- tccli/services/mrs/v20200910/examples.json +1 -1
- tccli/services/organization/v20210331/api.json +23 -23
- tccli/services/organization/v20210331/examples.json +4 -4
- tccli/services/redis/v20180412/api.json +85 -39
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/trtc/trtc_client.py +106 -0
- tccli/services/trtc/v20190722/api.json +142 -1
- tccli/services/trtc/v20190722/examples.json +16 -0
- tccli/services/tse/v20201207/api.json +58 -0
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vclm/v20240523/api.json +9 -0
- tccli/services/vod/v20180717/api.json +341 -0
- tccli/services/vod/v20180717/examples.json +30 -0
- tccli/services/vod/vod_client.py +171 -12
- tccli/services/vpc/v20170312/api.json +168 -38
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1175.1.dist-info → tccli-3.0.1177.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActionAlterUser": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActionAlterUser\n<公共请求参数>\n\n{\n \"UserInfo\": {\n \"InstanceId\": \"abc\",\n \"UserName\": \"abc\",\n \"PassWord\": \"abc\",\n \"WhiteHost\": \"abc\",\n \"OldWhiteHost\": \"abc\",\n \"Describe\": \"abc\",\n \"OldPwd\": \"abc\"\n },\n \"ApiType\": \"abc\",\n \"UserPrivilege\": 0\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
8
|
+
"title": "新增、修改ck集群用户"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"CancelBackupJob": [
|
4
12
|
{
|
5
13
|
"document": "",
|
@@ -8,6 +16,14 @@
|
|
8
16
|
"title": "test"
|
9
17
|
}
|
10
18
|
],
|
19
|
+
"CheckCoolDownWorkingVariableConfigCorrect": [
|
20
|
+
{
|
21
|
+
"document": "",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckCoolDownWorkingVariableConfigCorrect\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
24
|
+
"title": "示例"
|
25
|
+
}
|
26
|
+
],
|
11
27
|
"CreateBackUpSchedule": [
|
12
28
|
{
|
13
29
|
"document": "",
|
@@ -16,6 +32,14 @@
|
|
16
32
|
"title": "示例"
|
17
33
|
}
|
18
34
|
],
|
35
|
+
"CreateCoolDownPolicy": [
|
36
|
+
{
|
37
|
+
"document": "",
|
38
|
+
"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}",
|
39
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
40
|
+
"title": "示例"
|
41
|
+
}
|
42
|
+
],
|
19
43
|
"CreateInstanceNew": [
|
20
44
|
{
|
21
45
|
"document": "创建集群",
|
@@ -112,68 +136,44 @@
|
|
112
136
|
"title": "test"
|
113
137
|
}
|
114
138
|
],
|
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": [
|
139
|
+
"DescribeCoolDownBackends": [
|
140
140
|
{
|
141
141
|
"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": "
|
142
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCoolDownBackends\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
143
|
+
"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}",
|
144
|
+
"title": "示例"
|
145
145
|
}
|
146
146
|
],
|
147
|
-
"
|
147
|
+
"DescribeCoolDownPolicies": [
|
148
148
|
{
|
149
149
|
"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": "
|
150
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCoolDownPolicies\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
151
|
+
"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}",
|
152
|
+
"title": "示例"
|
153
153
|
}
|
154
154
|
],
|
155
|
-
"
|
155
|
+
"DescribeCoolDownTableData": [
|
156
156
|
{
|
157
157
|
"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": "
|
158
|
+
"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}",
|
159
|
+
"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}",
|
160
|
+
"title": "示例"
|
161
161
|
}
|
162
162
|
],
|
163
|
-
"
|
163
|
+
"DescribeDatabaseAuditDownload": [
|
164
164
|
{
|
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": "
|
165
|
+
"document": "下载数据库审计日志",
|
166
|
+
"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}",
|
167
|
+
"output": "{\n \"Response\": {\n \"CosUrl\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
168
|
+
"title": "DescribeDatabaseAuditDownload"
|
169
169
|
}
|
170
170
|
],
|
171
|
-
"
|
171
|
+
"DescribeDatabaseAuditRecords": [
|
172
172
|
{
|
173
|
-
"document": "
|
174
|
-
"input": "
|
175
|
-
"output": "{\n \"Response\": {\n \"
|
176
|
-
"title": "
|
173
|
+
"document": "获取数据库审计记录",
|
174
|
+
"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}",
|
175
|
+
"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}",
|
176
|
+
"title": "DescribeDatabaseAuditRecords"
|
177
177
|
}
|
178
178
|
],
|
179
179
|
"DescribeInstance": [
|
@@ -254,22 +254,6 @@
|
|
254
254
|
"title": "DescribeInstancesHealthState"
|
255
255
|
}
|
256
256
|
],
|
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
257
|
"DescribeRestoreTaskDetail": [
|
274
258
|
{
|
275
259
|
"document": "",
|
@@ -342,12 +326,12 @@
|
|
342
326
|
"title": "集群销毁示例"
|
343
327
|
}
|
344
328
|
],
|
345
|
-
"
|
329
|
+
"ModifyCoolDownPolicy": [
|
346
330
|
{
|
347
|
-
"document": "
|
348
|
-
"input": "
|
349
|
-
"output": "{\n \"Response\": {\n \"
|
350
|
-
"title": "
|
331
|
+
"document": "",
|
332
|
+
"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}",
|
333
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
334
|
+
"title": "示例"
|
351
335
|
}
|
352
336
|
],
|
353
337
|
"ModifyInstance": [
|
@@ -414,14 +398,22 @@
|
|
414
398
|
"title": "开启或关闭资源组"
|
415
399
|
}
|
416
400
|
],
|
417
|
-
"
|
401
|
+
"OpenCoolDown": [
|
418
402
|
{
|
419
403
|
"document": "",
|
420
|
-
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
421
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
404
|
+
"input": "POST / HTTP/1.1\nHost: cdwdoris.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenCoolDown\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}",
|
405
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
422
406
|
"title": "示例"
|
423
407
|
}
|
424
408
|
],
|
409
|
+
"OpenCoolDownPolicy": [
|
410
|
+
{
|
411
|
+
"document": "",
|
412
|
+
"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}",
|
413
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"QueryDocument\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
414
|
+
"title": "开通"
|
415
|
+
}
|
416
|
+
],
|
425
417
|
"RecoverBackUpJob": [
|
426
418
|
{
|
427
419
|
"document": "",
|
@@ -477,6 +469,14 @@
|
|
477
469
|
"output": "{\n \"Response\": {\n \"FlowId\": \"1231\",\n \"InstanceId\": \"cdwch-auqej7a\",\n \"ErrorMsg\": \"\",\n \"RequestId\": \"xasdfkqe2-a12q29-axdfas\"\n }\n}",
|
478
470
|
"title": "节点垂直变配示例"
|
479
471
|
}
|
472
|
+
],
|
473
|
+
"UpdateCoolDown": [
|
474
|
+
{
|
475
|
+
"document": "",
|
476
|
+
"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}",
|
477
|
+
"output": "{\n \"Response\": {\n \"ErrorMsg\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
478
|
+
"title": "示例"
|
479
|
+
}
|
480
480
|
]
|
481
481
|
},
|
482
482
|
"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": [
|