tccli 3.0.1240.1__py2.py3-none-any.whl → 3.0.1241.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/apm/v20210622/api.json +66 -69
- tccli/services/apm/v20210622/examples.json +26 -26
- tccli/services/autoscaling/v20180419/api.json +12 -1
- tccli/services/batch/v20170312/api.json +11 -11
- tccli/services/billing/v20180709/api.json +20 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/car/v20220110/examples.json +3 -3
- tccli/services/cdb/v20170320/api.json +582 -579
- tccli/services/cdb/v20170320/examples.json +9 -9
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/v20210820/api.json +11 -0
- tccli/services/chdfs/v20201112/api.json +10 -10
- tccli/services/chdfs/v20201112/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cmq/v20190304/api.json +77 -77
- tccli/services/cvm/cvm_client.py +60 -325
- tccli/services/cvm/v20170312/api.json +618 -1401
- tccli/services/cvm/v20170312/examples.json +8 -48
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -34
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +452 -458
- tccli/services/cynosdb/v20190107/examples.json +23 -23
- tccli/services/dbbrain/v20191016/api.json +16 -4
- tccli/services/dbbrain/v20191016/examples.json +5 -5
- tccli/services/dbbrain/v20210527/api.json +44 -44
- tccli/services/dbbrain/v20210527/examples.json +8 -8
- tccli/services/dts/v20180330/api.json +30 -30
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +19 -9
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/ecm/v20190719/api.json +55 -48
- tccli/services/ecm/v20190719/examples.json +7 -7
- tccli/services/emr/emr_client.py +493 -16
- tccli/services/emr/v20190103/api.json +1323 -246
- tccli/services/emr/v20190103/examples.json +72 -0
- tccli/services/ess/v20201111/api.json +13 -4
- tccli/services/essbasic/v20210526/api.json +11 -2
- tccli/services/essbasic/v20210526/examples.json +12 -0
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gaap/v20180529/api.json +181 -183
- tccli/services/gaap/v20180529/examples.json +31 -37
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/gs/v20191118/examples.json +3 -3
- tccli/services/iai/iai_client.py +53 -0
- tccli/services/iai/v20200303/api.json +80 -0
- tccli/services/iai/v20200303/examples.json +14 -0
- tccli/services/iotexplorer/v20190423/api.json +10 -0
- tccli/services/keewidb/v20220308/api.json +188 -190
- tccli/services/live/v20180801/api.json +323 -222
- tccli/services/live/v20180801/examples.json +79 -79
- tccli/services/mna/v20210119/api.json +20 -20
- tccli/services/mps/v20190612/api.json +40 -0
- tccli/services/oceanus/v20190422/api.json +407 -39
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +50 -0
- tccli/services/sqlserver/v20180328/api.json +235 -139
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +777 -779
- tccli/services/ssl/v20191205/examples.json +8 -8
- tccli/services/tbaas/v20180416/api.json +118 -82
- tccli/services/tbaas/v20180416/examples.json +7 -7
- tccli/services/tcb/v20180608/api.json +18 -18
- tccli/services/tcb/v20180608/examples.json +2 -2
- tccli/services/tcm/v20210413/api.json +6 -6
- tccli/services/tcm/v20210413/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +17 -12
- tccli/services/tdmq/v20200217/api.json +18 -0
- tccli/services/tem/v20210701/api.json +439 -280
- tccli/services/tem/v20210701/examples.json +39 -39
- tccli/services/tke/v20180525/api.json +50 -39
- tccli/services/tke/v20180525/examples.json +51 -21
- tccli/services/trro/v20220325/api.json +27 -27
- tccli/services/trro/v20220325/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +46 -9
- tccli/services/tse/v20201207/examples.json +31 -31
- tccli/services/tsf/v20180326/api.json +448 -434
- tccli/services/tsf/v20180326/examples.json +122 -122
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +278 -37
- tccli/services/vpc/v20170312/examples.json +56 -8
- tccli/services/vpc/vpc_client.py +159 -0
- tccli/services/waf/v20180125/api.json +303 -4
- tccli/services/waf/v20180125/examples.json +25 -1
- tccli/services/waf/waf_client.py +163 -4
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/RECORD +92 -92
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1241.1.dist-info}/license_files/LICENSE +0 -0
@@ -107,7 +107,7 @@
|
|
107
107
|
"CreateAuditRuleTemplate": [
|
108
108
|
{
|
109
109
|
"document": "创建审计规则模板",
|
110
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAuditRuleTemplate\n<公共请求参数>\n\n{\n \"RuleFilters\": [\n {\n \"Type\": \"host\",\n \"Compare\": \"EQS\",\n \"Value\": [\n \"100.122.76.176\",\n \"10.0.0.9\"\n ]\n },\n {\n \"Type\": \"user\",\n \"Compare\": \"EQS\",\n \"Value\": [\n \"wy\",\n \"
|
110
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAuditRuleTemplate\n<公共请求参数>\n\n{\n \"RuleFilters\": [\n {\n \"Type\": \"host\",\n \"Compare\": \"EQS\",\n \"Value\": [\n \"100.122.76.176\",\n \"10.0.0.9\"\n ]\n },\n {\n \"Type\": \"user\",\n \"Compare\": \"EQS\",\n \"Value\": [\n \"wy\",\n \"andy\"\n ]\n },\n {\n \"Type\": \"sqlType\",\n \"Compare\": \"EQS\",\n \"Value\": [\n \"Update\",\n \"Delete\"\n ]\n }\n ],\n \"RuleTemplateName\": \"andy\",\n \"Description\": \"andy模板\"\n}",
|
111
111
|
"output": "{\n \"Response\": {\n \"RuleTemplateId\": \"cynosdb-rt-ws23fwu8\",\n \"RequestId\": \"43-12121-812w1221213-62usf9093\"\n }\n}",
|
112
112
|
"title": "创建审计规则模板"
|
113
113
|
}
|
@@ -124,7 +124,7 @@
|
|
124
124
|
{
|
125
125
|
"document": "",
|
126
126
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCLSDelivery\n<公共请求参数>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-o971o62r\",\n \"CLSInfoList\": [\n {\n \"TopicId\": \"38b86342-7cb0-4776-9ebd-ff1830035da1\",\n \"TopicOperation\": \"reuse\",\n \"GroupId\": \"17de6e2a-efd0-4fc2-ba2e-8845bd4f9895\",\n \"Region\": \"ap-guangzhou\",\n \"GroupOperation\": \"reuse\"\n }\n ]\n}",
|
127
|
-
"output": "{\n \"Response\": {\n \"TaskId\":
|
127
|
+
"output": "{\n \"Response\": {\n \"TaskId\": 148728,\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
|
128
128
|
"title": "创建日志投递"
|
129
129
|
}
|
130
130
|
],
|
@@ -193,7 +193,7 @@
|
|
193
193
|
"DeleteAuditLogFile": [
|
194
194
|
{
|
195
195
|
"document": "",
|
196
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAuditLogFile\n<公共请求参数>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-qwerasdf\",\n \"FileName\": \"
|
196
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAuditLogFile\n<公共请求参数>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-qwerasdf\",\n \"FileName\": \"andy.csv\"\n}",
|
197
197
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\"\n }\n}",
|
198
198
|
"title": "删除审计日志文件"
|
199
199
|
}
|
@@ -241,15 +241,15 @@
|
|
241
241
|
"DescribeAccountAllGrantPrivileges": [
|
242
242
|
{
|
243
243
|
"document": "查询账号所有可授予权限",
|
244
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountAllGrantPrivileges\n<公共请求参数>\n\n{\n \"Account\": {\n \"Host\": \"%\",\n \"AccountName\": \"
|
245
|
-
"output": "{\n \"Response\": {\n \"DatabasePrivileges\": [\n {\n \"Db\": \"
|
244
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountAllGrantPrivileges\n<公共请求参数>\n\n{\n \"Account\": {\n \"Host\": \"%\",\n \"AccountName\": \"andy\"\n },\n \"ClusterId\": \"cynosdbmysql-j9i41hfv\"\n}",
|
245
|
+
"output": "{\n \"Response\": {\n \"DatabasePrivileges\": [\n {\n \"Db\": \"db1\",\n \"Privileges\": [\n \"DROP\",\n \"EXECUTE\"\n ]\n }\n ],\n \"GlobalPrivileges\": [\n \"CREATE\",\n \"ALTER\"\n ],\n \"PrivilegeStatements\": [\n \"GRANT CREATE, ALTER ON *.* TO 'test'@'%'\",\n \"GRANT DROP, EXECUTE ON `db1`.* TO 'andy'@'%'\",\n \"GRANT UPDATE, SHOW VIEW ON `db1`.`user1` TO 'andy'@'%'\"\n ],\n \"RequestId\": \"46bf5c40-3fc1-4030-ab84-a66355ae25ab\",\n \"TablePrivileges\": [\n {\n \"Db\": \"andy1\",\n \"Privileges\": [\n \"UPDATE\",\n \"SHOW VIEW\"\n ],\n \"TableName\": \"user1\"\n }\n ]\n }\n}",
|
246
246
|
"title": "查询账号所有可授予权限"
|
247
247
|
}
|
248
248
|
],
|
249
249
|
"DescribeAccountPrivileges": [
|
250
250
|
{
|
251
251
|
"document": "查询账号已有权限",
|
252
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxx\",\n \"AccountName\": \"
|
252
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxx\",\n \"AccountName\": \"andy\",\n \"Host\": \"1.1.1.1\",\n \"Db\": \"Db1\",\n \"Type\": \"table\",\n \"TableName\": \"Table1\"\n}",
|
253
253
|
"output": "{\n \"Response\": {\n \"Privileges\": [\n \"select\",\n \"update\",\n \"delete\",\n \"create\",\n \"drop\",\n \"references\",\n \"index\",\n \"alter\",\n \"show_db\",\n \"create_tmp_table\",\n \"lock_tables\",\n \"execute\",\n \"create_view\",\n \"show_view\",\n \"create_routine\",\n \"alter_routine\",\n \"event\",\n \"trigger\"\n ],\n \"RequestId\": \"167350\"\n }\n}",
|
254
254
|
"title": "查询账号已有权限"
|
255
255
|
}
|
@@ -282,7 +282,7 @@
|
|
282
282
|
{
|
283
283
|
"document": "查询审计日志",
|
284
284
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditLogs\n<公共请求参数>\n\n{\n \"InstanceId\": \"cynosdbmysql-ins-qwerasdf\",\n \"StartTime\": \"2017-07-12 10:29:20\",\n \"EndTime\": \"2017-07-13 10:29:20\"\n}",
|
285
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"TotalCount\": \"1\",\n \"Items\": [\n {\n \"PolicyName\": \"sys_default\",\n \"ExecTime\": 0,\n \"Timestamp\": \"2023-06-26 10:32:36.000\",\n \"AffectRows\": 0,\n \"ThreadId\": 0,\n \"TableName\": \"\",\n \"ErrCode\": 0,\n \"Host\": \"10.0.0.1\",\n \"SentRows\": 0,\n \"User\": \"
|
285
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"TotalCount\": \"1\",\n \"Items\": [\n {\n \"PolicyName\": \"sys_default\",\n \"ExecTime\": 0,\n \"Timestamp\": \"2023-06-26 10:32:36.000\",\n \"AffectRows\": 0,\n \"ThreadId\": 0,\n \"TableName\": \"\",\n \"ErrCode\": 0,\n \"Host\": \"10.0.0.1\",\n \"SentRows\": 0,\n \"User\": \"andy\",\n \"Sql\": \"SELECT * FROM test LIMIT 1;\",\n \"SqlType\": \"SELECT\",\n \"InstanceName\": \"cynosdbandy\",\n \"DBName\": \"db1\"\n }\n ]\n }\n}",
|
286
286
|
"title": "查询审计日志"
|
287
287
|
},
|
288
288
|
{
|
@@ -421,8 +421,8 @@
|
|
421
421
|
"DescribeClusterInstanceGrps": [
|
422
422
|
{
|
423
423
|
"document": "查询实例组网络信息. 该接口已废弃,推荐使用DescribeClusterInstanceGroups",
|
424
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterInstanceGrps\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-
|
425
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"InstanceGrpInfoList\": [\n {\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"CreatedTime\": \"2020-09-22 00:00:00\",\n \"DeletedTime\": \"2020-09-22 00:00:00\",\n \"InstanceGrpId\": \"abc\",\n \"Status\": \"abc\",\n \"Type\": \"abc\",\n \"UpdatedTime\": \"2020-09-22 00:00:00\",\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\",\n \"InstanceSet\": [\n {\n \"Uin\": \"abc\",\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"ProjectId\": 0,\n \"Region\": \"abc\",\n \"Zone\": \"abc\",\n \"Status\": \"abc\",\n \"StatusDesc\": \"abc\",\n \"DbMode\": \"abc\",\n \"DbType\": \"abc\",\n \"DbVersion\": \"abc\",\n \"Cpu\": 0,\n \"Memory\": 0,\n \"Storage\": 0,\n \"InstanceType\": \"abc\",\n \"InstanceRole\": \"abc\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"PayMode\": 0,\n \"PeriodEndTime\": \"2020-09-22 00:00:00\",\n \"DestroyDeadlineText\": \"abc\",\n \"IsolateTime\": \"2020-09-22 00:00:00\",\n \"NetType\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\",\n \"DestroyTime\": \"abc\",\n \"CynosVersion\": \"abc\",\n \"ProcessingTask\": \"abc\",\n \"RenewFlag\": 0,\n \"MinCpu\": 0,\n \"MaxCpu\": 0,\n \"ServerlessStatus\": \"abc\",\n \"StorageId\": \"abc\",\n \"StoragePayMode\": 0,\n \"PhysicalZone\": \"abc\",\n \"BusinessType\": \"abc\",\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"IsFreeze\": \"abc\",\n \"ResourceTags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"MasterZone\": \"abc\",\n \"SlaveZones\": [\n \"abc\"\n ],\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupType\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"NetType\": 0,\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\"\n }\n ],\n \"ResourcePackages\": [\n {\n \"PackageId\": \"abc\",\n \"PackageType\": \"abc\"\n }\n ],\n \"InstanceIndexMode\": \"abc\"\n }\n ],\n \"UniqVpcId\": \"abc\",\n \"UniqSubnetId\": \"abc\",\n \"OldAddrInfo\": {\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"ReturnTime\": \"abc\"\n },\n \"ProcessingTasks\": [\n \"abc\"\n ],\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"NetServiceId\": 0\n }\n ],\n \"InstanceGroupInfoList\": [\n {\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"CreatedTime\": \"abc\",\n \"DeletedTime\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"Status\": \"abc\",\n \"Type\": \"abc\",\n \"UpdatedTime\": \"abc\",\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\",\n \"InstanceSet\": [\n {\n \"Uin\": \"abc\",\n \"AppId\": 0,\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"ProjectId\": 0,\n \"Region\": \"abc\",\n \"Zone\": \"abc\",\n \"Status\": \"abc\",\n \"StatusDesc\": \"abc\",\n \"DbMode\": \"abc\",\n \"DbType\": \"abc\",\n \"DbVersion\": \"abc\",\n \"Cpu\": 0,\n \"Memory\": 0,\n \"Storage\": 0,\n \"InstanceType\": \"abc\",\n \"InstanceRole\": \"abc\",\n \"UpdateTime\": \"2020-09-22 00:00:00\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"PayMode\": 0,\n \"PeriodEndTime\": \"2020-09-22 00:00:00\",\n \"DestroyDeadlineText\": \"abc\",\n \"IsolateTime\": \"2020-09-22 00:00:00\",\n \"NetType\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\",\n \"DestroyTime\": \"abc\",\n \"CynosVersion\": \"abc\",\n \"ProcessingTask\": \"abc\",\n \"RenewFlag\": 0,\n \"MinCpu\": 0,\n \"MaxCpu\": 0,\n \"ServerlessStatus\": \"abc\",\n \"StorageId\": \"abc\",\n \"StoragePayMode\": 0,\n \"PhysicalZone\": \"abc\",\n \"BusinessType\": \"abc\",\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"IsFreeze\": \"abc\",\n \"ResourceTags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"MasterZone\": \"abc\",\n \"SlaveZones\": [\n \"abc\"\n ],\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupType\": \"abc\",\n \"InstanceGroupId\": \"abc\",\n \"VpcId\": \"abc\",\n \"SubnetId\": \"abc\",\n \"NetType\": 0,\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"WanDomain\": \"abc\",\n \"WanIP\": \"abc\",\n \"WanPort\": 0,\n \"WanStatus\": \"abc\"\n }\n ],\n \"ResourcePackages\": [\n {\n \"PackageId\": \"abc\",\n \"PackageType\": \"abc\"\n }\n ],\n \"InstanceIndexMode\": \"abc\"\n }\n ],\n \"UniqVpcId\": \"abc\",\n \"UniqSubnetId\": \"abc\",\n \"OldAddrInfo\": {\n \"Vip\": \"abc\",\n \"Vport\": 0,\n \"ReturnTime\": \"abc\"\n },\n \"ProcessingTasks\": [\n \"abc\"\n ],\n \"Tasks\": [\n {\n \"TaskId\": 0,\n \"TaskType\": \"abc\",\n \"TaskStatus\": \"abc\",\n \"ObjectId\": \"abc\",\n \"ObjectType\": \"abc\"\n }\n ],\n \"NetServiceId\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
424
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterInstanceGrps\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-grhvkwd\"\n}",
|
425
|
+
"output": "{\n \"Response\": {\n \"InstanceGroupInfoList\": [\n {\n \"AppId\": 1312008346,\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"CreatedTime\": \"2024-12-03 14:03:58\",\n \"DeletedTime\": \"0001-01-01 00:00:00\",\n \"InstanceGroupId\": \"cynosdbmysql-grp-r7hmdx4\",\n \"InstanceSet\": [\n {\n \"AppId\": 1312008346,\n \"BusinessType\": \"\",\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"ClusterName\": \"cynosdbmysql-grhvkwd\",\n \"Cpu\": 2,\n \"CreateTime\": \"2024-12-03 14:03:58\",\n \"CynosVersion\": \"2.1.13.001\",\n \"DbMode\": \"NORMAL\",\n \"DbType\": \"MYSQL\",\n \"DbVersion\": \"5.7\",\n \"DestroyDeadlineText\": \"\",\n \"DestroyTime\": \"\",\n \"DeviceType\": \"exclusive\",\n \"InstanceAbility\": {\n \"IsSupportForceRestart\": \"no\",\n \"NonsupportForceRestartReason\": \"NoForcedRestartAllowed\"\n },\n \"InstanceId\": \"cynosdbmysql-ins-crl6j3l\",\n \"InstanceIndexMode\": \"onlyRowIndex\",\n \"InstanceName\": \"cynosdbmysql-ins-crl6j3l\",\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupId\": \"cynosdbmysql-grp-r7hmdx4\",\n \"InstanceGroupType\": \"ha\",\n \"NetType\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Vip\": \"172.0.0.2\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n }\n ],\n \"InstanceRole\": \"master\",\n \"InstanceStorageType\": \"\",\n \"InstanceType\": \"rw\",\n \"IsFreeze\": \"no\",\n \"IsolateTime\": \"0001-01-01 00:00:00\",\n \"MasterZone\": \"ap-chongqing-1\",\n \"MaxCpu\": 0,\n \"Memory\": 4,\n \"MinCpu\": 0,\n \"NetType\": 1,\n \"PayMode\": 1,\n \"PeriodEndTime\": \"2025-01-03 14:04:40\",\n \"PhysicalZone\": \"ap-chongqing-1\",\n \"ProcessingTask\": \"\",\n \"ProjectId\": 0,\n \"Region\": \"ap-chongqing\",\n \"RenewFlag\": 1,\n \"ResourcePackages\": null,\n \"ResourceTags\": null,\n \"ServerlessStatus\": \"\",\n \"SlaveZones\": [],\n \"Status\": \"running\",\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageId\": \"cynosdbmysql-grhvkwd\",\n \"StoragePayMode\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Tasks\": [],\n \"Uin\": \"100021117054\",\n \"UpdateTime\": \"2024-12-03 14:04:40\",\n \"Vip\": \"172.0.0.12\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\",\n \"Zone\": \"ap-chongqing-1\"\n }\n ],\n \"NetServiceId\": 53990,\n \"OldAddrInfo\": {\n \"ReturnTime\": \"\",\n \"Vip\": \"\",\n \"Vport\": 0\n },\n \"ProcessingTasks\": [],\n \"Status\": \"running\",\n \"Tasks\": [],\n \"Type\": \"ha\",\n \"UniqSubnetId\": \"subnet-oiz56c8\",\n \"UniqVpcId\": \"vpc-gy34uq2\",\n \"UpdatedTime\": \"2024-12-03 14:04:40\",\n \"Vip\": \"172.0.0.12\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n },\n {\n \"AppId\": 1310008346,\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"CreatedTime\": \"2024-12-03 14:03:58\",\n \"DeletedTime\": \"0001-01-01 00:00:00\",\n \"InstanceGroupId\": \"cynosdbmysql-grp-08o6vjh\",\n \"InstanceSet\": [\n {\n \"AppId\": 1310008346,\n \"BusinessType\": \"\",\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"ClusterName\": \"cynosdbmysql-grhvkwd\",\n \"Cpu\": 2,\n \"CreateTime\": \"2024-12-03 14:03:58\",\n \"CynosVersion\": \"2.1.13.001\",\n \"DbMode\": \"NORMAL\",\n \"DbType\": \"MYSQL\",\n \"DbVersion\": \"5.7\",\n \"DestroyDeadlineText\": \"\",\n \"DestroyTime\": \"\",\n \"DeviceType\": \"exclusive\",\n \"InstanceAbility\": {\n \"IsSupportForceRestart\": \"no\",\n \"NonsupportForceRestartReason\": \"NoForcedRestartAllowed\"\n },\n \"InstanceId\": \"cynosdbmysql-ins-6t9ynb7\",\n \"InstanceIndexMode\": \"onlyRowIndex\",\n \"InstanceName\": \"cynosdbmysql-ins-6t9ynb7\",\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupId\": \"cynosdbmysql-grp-08o6vj0\",\n \"InstanceGroupType\": \"singleRo\",\n \"NetType\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Vip\": \"172.0.0.7\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n }\n ],\n \"InstanceRole\": \"ro\",\n \"InstanceStorageType\": \"\",\n \"InstanceType\": \"ro\",\n \"IsFreeze\": \"no\",\n \"IsolateTime\": \"0001-01-01 00:00:00\",\n \"MasterZone\": \"ap-chongqing-1\",\n \"MaxCpu\": 0,\n \"Memory\": 4,\n \"MinCpu\": 0,\n \"NetType\": 1,\n \"PayMode\": 1,\n \"PeriodEndTime\": \"2025-01-03 14:04:40\",\n \"PhysicalZone\": \"ap-chongqing-1\",\n \"ProcessingTask\": \"\",\n \"ProjectId\": 0,\n \"Region\": \"ap-chongqing\",\n \"RenewFlag\": 1,\n \"ResourcePackages\": null,\n \"ResourceTags\": null,\n \"ServerlessStatus\": \"\",\n \"SlaveZones\": [],\n \"Status\": \"running\",\n \"StatusDesc\": \"运行中\",\n \"Storage\": 10,\n \"StorageId\": \"cynosdbmysql-grhvkwd\",\n \"StoragePayMode\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Tasks\": [],\n \"Uin\": \"100021117054\",\n \"UpdateTime\": \"2024-12-09 15:18:23\",\n \"Vip\": \"172.0.0.7\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\",\n \"Zone\": \"ap-chongqing-1\"\n }\n ],\n \"NetServiceId\": 53991,\n \"OldAddrInfo\": {\n \"ReturnTime\": \"\",\n \"Vip\": \"\",\n \"Vport\": 0\n },\n \"ProcessingTasks\": [],\n \"Status\": \"running\",\n \"Tasks\": [],\n \"Type\": \"singleRo\",\n \"UniqSubnetId\": \"subnet-oiz56c8\",\n \"UniqVpcId\": \"vpc-gy34uq2\",\n \"UpdatedTime\": \"2024-12-03 14:04:40\",\n \"Vip\": \"172.0.0.7\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n }\n ],\n \"RequestId\": \"c32019ab-0d57-4b3d-80ea-5f52c12b523f\",\n \"TotalCount\": 2\n }\n}",
|
426
426
|
"title": "查询实例组(废弃)"
|
427
427
|
}
|
428
428
|
],
|
@@ -550,7 +550,7 @@
|
|
550
550
|
{
|
551
551
|
"document": "",
|
552
552
|
"input": "https://cynosdb.tencentcloudapi.com/?Action=DescribeIsolatedInstances\n&Limit=20\n&Offset=0\n&Filters.0.Names.0=InstanceId\n&Filters.0.Values.0=cynosdbpg-ins-bzkxxrmt\n&DbType=MYSQL\n&<公共请求参数>",
|
553
|
-
"output": "{\n \"Response\": {\n \"
|
553
|
+
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"AppId\": 1311111346,\n \"BusinessType\": \"\",\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"ClusterName\": \"cynosdbmysql-grhvkwd\",\n \"Cpu\": 2,\n \"CreateTime\": \"2024-12-03 14:03:58\",\n \"CynosVersion\": \"2.1.13.001\",\n \"DbMode\": \"NORMAL\",\n \"DbType\": \"MYSQL\",\n \"DbVersion\": \"5.7\",\n \"DestroyDeadlineText\": \"<7 天\",\n \"DestroyTime\": \"2024-12-30 19:51:33\",\n \"DeviceType\": \"exclusive\",\n \"InstanceAbility\": {\n \"IsSupportForceRestart\": \"no\",\n \"NonsupportForceRestartReason\": \"NoForcedRestartAllowed\"\n },\n \"InstanceId\": \"cynosdbmysql-ins-crl6j3l\",\n \"InstanceIndexMode\": \"onlyRowIndex\",\n \"InstanceName\": \"cynosdbmysql-ins-crl6j3l\",\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupId\": \"cynosdbmysql-grp-r7hmdx4\",\n \"InstanceGroupType\": \"ha\",\n \"NetType\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Vip\": \"172.0.0.2\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n }\n ],\n \"InstanceRole\": \"master\",\n \"InstanceStorageType\": \"\",\n \"InstanceType\": \"rw\",\n \"IsFreeze\": \"no\",\n \"IsolateTime\": \"2024-12-23 19:51:33\",\n \"MasterZone\": \"ap-chongqing-1\",\n \"MaxCpu\": 0,\n \"Memory\": 4,\n \"MinCpu\": 0,\n \"NetType\": 1,\n \"PayMode\": 1,\n \"PeriodEndTime\": \"2024-12-23 19:51:24\",\n \"PhysicalZone\": \"ap-chongqing-1\",\n \"ProcessingTask\": \"\",\n \"ProjectId\": 0,\n \"Region\": \"ap-chongqing\",\n \"RenewFlag\": 1,\n \"ResourcePackages\": null,\n \"ResourceTags\": null,\n \"ServerlessStatus\": \"\",\n \"SlaveZones\": [],\n \"Status\": \"isolated\",\n \"StatusDesc\": \"已隔离\",\n \"Storage\": 10,\n \"StorageId\": \"cynosdbmysql-grhvkwd\",\n \"StoragePayMode\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Tasks\": [],\n \"Uin\": \"100011147054\",\n \"UpdateTime\": \"2024-12-23 19:51:33\",\n \"Vip\": \"172.0.0.2\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\",\n \"Zone\": \"ap-chongqing-1\"\n },\n {\n \"AppId\": 1311111346,\n \"BusinessType\": \"\",\n \"ClusterId\": \"cynosdbmysql-grhvkwd\",\n \"ClusterName\": \"cynosdbmysql-grhvkwd\",\n \"Cpu\": 2,\n \"CreateTime\": \"2024-12-03 14:03:58\",\n \"CynosVersion\": \"2.1.13.001\",\n \"DbMode\": \"NORMAL\",\n \"DbType\": \"MYSQL\",\n \"DbVersion\": \"5.7\",\n \"DestroyDeadlineText\": \"<7 天\",\n \"DestroyTime\": \"2024-12-30 19:51:33\",\n \"DeviceType\": \"exclusive\",\n \"InstanceAbility\": {\n \"IsSupportForceRestart\": \"no\",\n \"NonsupportForceRestartReason\": \"NoForcedRestartAllowed\"\n },\n \"InstanceId\": \"cynosdbmysql-ins-6t9ynb7\",\n \"InstanceIndexMode\": \"onlyRowIndex\",\n \"InstanceName\": \"cynosdbmysql-ins-6t9ynb7\",\n \"InstanceNetInfo\": [\n {\n \"InstanceGroupId\": \"cynosdbmysql-grp-08o6vj0\",\n \"InstanceGroupType\": \"singleRo\",\n \"NetType\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Vip\": \"172.0.0.7\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\"\n }\n ],\n \"InstanceRole\": \"ro\",\n \"InstanceStorageType\": \"\",\n \"InstanceType\": \"ro\",\n \"IsFreeze\": \"no\",\n \"IsolateTime\": \"2024-12-23 19:51:33\",\n \"MasterZone\": \"ap-chongqing-1\",\n \"MaxCpu\": 0,\n \"Memory\": 4,\n \"MinCpu\": 0,\n \"NetType\": 1,\n \"PayMode\": 1,\n \"PeriodEndTime\": \"2024-12-23 19:51:24\",\n \"PhysicalZone\": \"ap-chongqing-1\",\n \"ProcessingTask\": \"\",\n \"ProjectId\": 0,\n \"Region\": \"ap-chongqing\",\n \"RenewFlag\": 1,\n \"ResourcePackages\": null,\n \"ResourceTags\": null,\n \"ServerlessStatus\": \"\",\n \"SlaveZones\": [],\n \"Status\": \"isolated\",\n \"StatusDesc\": \"已隔离\",\n \"Storage\": 10,\n \"StorageId\": \"cynosdbmysql-grhvkwd\",\n \"StoragePayMode\": 1,\n \"SubnetId\": \"subnet-oiz56c8\",\n \"Tasks\": [],\n \"Uin\": \"100011147054\",\n \"UpdateTime\": \"2024-12-23 19:51:33\",\n \"Vip\": \"172.0.0.7\",\n \"VpcId\": \"vpc-gy34uq2\",\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanIP\": \"\",\n \"WanPort\": 0,\n \"WanStatus\": \"init\",\n \"Zone\": \"ap-chongqing-1\"\n }\n ],\n \"RequestId\": \"8f291dbc-3840-40f9-aa39-841437c247fb\",\n \"TotalCount\": 2\n }\n}",
|
554
554
|
"title": "查询回收站实例列表"
|
555
555
|
}
|
556
556
|
],
|
@@ -574,7 +574,7 @@
|
|
574
574
|
{
|
575
575
|
"document": "参数板列表",
|
576
576
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeParamTemplates\n<公共请求参数>\n\n{}",
|
577
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"RequestId\": \"fc791b35-d5e5-4e08-859d-1c095e783199\",\n \"Items\": [\n {\n \"TemplateDescription\": \"API测试\",\n \"TemplateName\": \"API测试\",\n \"Id\": 27,\n \"EngineVersion\": \"5.7\",\n \"ParamInfoSet\": [\n {\n \"CurrentValue\": \"12\",\n \"Description\": \"API测试\",\n \"Min\": \"10\",\n \"Default\": \"10\",\n \"Max\": \"10000\",\n \"ParamType\": \"integer\",\n \"EnumValue\": [\n \"
|
577
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"RequestId\": \"fc791b35-d5e5-4e08-859d-1c095e783199\",\n \"Items\": [\n {\n \"TemplateDescription\": \"API测试\",\n \"TemplateName\": \"API测试\",\n \"Id\": 27,\n \"EngineVersion\": \"5.7\",\n \"ParamInfoSet\": [\n {\n \"CurrentValue\": \"12\",\n \"Description\": \"API测试\",\n \"Min\": \"10\",\n \"Default\": \"10\",\n \"Max\": \"10000\",\n \"ParamType\": \"integer\",\n \"EnumValue\": [\n \"ON\",\n \"OFF\"\n ],\n \"ParamName\": \"param1\",\n \"NeedReboot\": 0\n }\n ],\n \"DbMode\": \"NORMAL\"\n },\n {\n \"TemplateName\": \"API测试\",\n \"TemplateDescription\": \"API测试\",\n \"Id\": 28,\n \"EngineVersion\": \"5.7\",\n \"ParamInfoSet\": [\n {\n \"CurrentValue\": \"12\",\n \"Description\": \"API测试\",\n \"Min\": \"10\",\n \"Default\": \"10\",\n \"Max\": \"10000\",\n \"ParamType\": \"integer\",\n \"EnumValue\": [\n \"21\",\n \"22\"\n ],\n \"ParamName\": \"param2\",\n \"NeedReboot\": 0\n }\n ],\n \"DbMode\": \"NORMAL\"\n }\n ]\n }\n}",
|
578
578
|
"title": "参数板列表"
|
579
579
|
}
|
580
580
|
],
|
@@ -731,8 +731,8 @@
|
|
731
731
|
"GrantAccountPrivileges": [
|
732
732
|
{
|
733
733
|
"document": "批量授权账号权限",
|
734
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GrantAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-
|
735
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
734
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GrantAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-j9i41hdd\",\n \"DbTablePrivileges\": [\n \"ALTER\",\n \"DROP\"\n ],\n \"Account\": {\n \"AccountName\": \"andy\",\n \"Host\": \"%\"\n },\n \"DbTables\": [\n {\n \"Db\": \"db1\",\n \"TableName\": \"user1\"\n },\n {\n \"Db\": \"db2\"\n }\n ]\n}",
|
735
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51169b54-61d4-4604-a07e-e519a5527923\"\n }\n}",
|
736
736
|
"title": "批量授权账号权限"
|
737
737
|
}
|
738
738
|
],
|
@@ -764,7 +764,7 @@
|
|
764
764
|
{
|
765
765
|
"document": "隔离集群",
|
766
766
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: IsolateCluster\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-bzxxrmtq\"\n}",
|
767
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
767
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51169b54-61d4-4604-a07e-e519a5527923\",\n \"FlowId\": 147284,\n \"DealNames\": [\n \"20241226054077125855171\"\n ]\n }\n}",
|
768
768
|
"title": "隔离集群"
|
769
769
|
}
|
770
770
|
],
|
@@ -795,16 +795,16 @@
|
|
795
795
|
"ModifyAccountParams": [
|
796
796
|
{
|
797
797
|
"document": "修改账号配置",
|
798
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccountParams\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxxxx\",\n \"Account\": {\n \"AccountName\": \"
|
799
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
798
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccountParams\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxxxx\",\n \"Account\": {\n \"AccountName\": \"andy\",\n \"Host\": \"%\"\n },\n \"AccountParams\": [\n {\n \"ParamName\": \"max_user_connections\",\n \"ParamValue\": \"400\"\n }\n ]\n}",
|
799
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51169b54-61d4-4604-a07e-e519a5527923\"\n }\n}",
|
800
800
|
"title": "修改账号配置"
|
801
801
|
}
|
802
802
|
],
|
803
803
|
"ModifyAccountPrivileges": [
|
804
804
|
{
|
805
805
|
"document": "修改账号库表权限",
|
806
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxxx\",\n \"Account\": {\n \"AccountName\": \"
|
807
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
806
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAccountPrivileges\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxxxxxx\",\n \"Account\": {\n \"AccountName\": \"andy\",\n \"Host\": \"1.1.1.1\"\n },\n \"GlobalPrivileges\": [\n \"CREATE\"\n ],\n \"DatabasePrivileges\": [\n {\n \"Db\": \"testDb\",\n \"Privileges\": [\n \"DELETE\"\n ]\n }\n ],\n \"TablePrivileges\": [\n {\n \"Db\": \"testDb\",\n \"TableName\": \"testTable\",\n \"Privileges\": [\n \"DROP\"\n ]\n }\n ]\n}",
|
807
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51169b54-61d4-4604-a07e-e519a5527923\"\n }\n}",
|
808
808
|
"title": "修改账号库表权限"
|
809
809
|
}
|
810
810
|
],
|
@@ -1050,7 +1050,7 @@
|
|
1050
1050
|
{
|
1051
1051
|
"document": "任何场景",
|
1052
1052
|
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenClusterReadOnlyInstanceGroupAccess\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-abcd1234\",\n \"Port\": \"3306\",\n \"SecurityGroupIds\": [\n \"SecurityGroupIds1\",\n \"SecurityGroupIds2\"\n ]\n}",
|
1053
|
-
"output": "{\n \"Response\": {\n \"FlowId\": \"
|
1053
|
+
"output": "{\n \"Response\": {\n \"FlowId\": \"147287\",\n \"RequestId\": \"51169b54-61d4-4604-a07e-e519a5527923\"\n }\n}",
|
1054
1054
|
"title": "ex:"
|
1055
1055
|
}
|
1056
1056
|
],
|
@@ -1145,16 +1145,16 @@
|
|
1145
1145
|
"RevokeAccountPrivileges": [
|
1146
1146
|
{
|
1147
1147
|
"document": "批量回收账号权限",
|
1148
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RevokeAccountPrivileges\n<公共请求参数>\n\n{\n \"Account\": {\n \"Host\": \"%\",\n \"AccountName\": \"
|
1149
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1148
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RevokeAccountPrivileges\n<公共请求参数>\n\n{\n \"Account\": {\n \"Host\": \"%\",\n \"AccountName\": \"andy\"\n },\n \"DbTablePrivileges\": [\n \"ALTER\"\n ],\n \"ClusterId\": \"cynosdbmysql-j9i41hkf\",\n \"DbTables\": [\n {\n \"TableName\": \"andy-table\",\n \"Db\": \"andy-db\"\n }\n ]\n}",
|
1149
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\"\n }\n}",
|
1150
1150
|
"title": "批量回收账号权限"
|
1151
1151
|
}
|
1152
1152
|
],
|
1153
1153
|
"RollBackCluster": [
|
1154
1154
|
{
|
1155
1155
|
"document": "集群回档",
|
1156
|
-
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollBackCluster\n<公共请求参数>\n\n{\n \"RollbackId\": 1,\n \"ClusterId\": \"cynosdbmysql-
|
1157
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1156
|
+
"input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RollBackCluster\n<公共请求参数>\n\n{\n \"RollbackId\": 1,\n \"ClusterId\": \"cynosdbmysql-j9i41hff\",\n \"ExpectTimeThresh\": 1,\n \"RollbackStrategy\": \"snapRollback\",\n \"RollbackTables\": [\n {\n \"Tables\": [\n {\n \"OldTable\": \"old_table\",\n \"NewTable\": \"new_table\"\n }\n ],\n \"Database\": \"old_db1\"\n }\n ],\n \"ExpectTime\": \"2022-01-20 00:00:00\",\n \"RollbackDatabases\": [\n {\n \"NewDatabase\": \"new_db2\",\n \"OldDatabase\": \"old_db2\"\n }\n ]\n}",
|
1157
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"347698da-03e4-4078-8d96-9a8b219c01a5\",\n \"FlowId\": \"147283\"\n }\n}",
|
1158
1158
|
"title": "集群回档"
|
1159
1159
|
}
|
1160
1160
|
],
|
@@ -362,9 +362,10 @@
|
|
362
362
|
{
|
363
363
|
"disabled": false,
|
364
364
|
"document": "异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。\n注意:此字段可能返回 null,表示取不到有效值。",
|
365
|
-
"example": "
|
365
|
+
"example": "129543473",
|
366
366
|
"member": "int64",
|
367
367
|
"name": "AsyncRequestId",
|
368
|
+
"output_required": true,
|
368
369
|
"type": "int",
|
369
370
|
"value_allowed_null": true
|
370
371
|
},
|
@@ -842,6 +843,7 @@
|
|
842
843
|
"example": "健康巡检",
|
843
844
|
"member": "string",
|
844
845
|
"name": "DiagItem",
|
846
|
+
"output_required": true,
|
845
847
|
"type": "string",
|
846
848
|
"value_allowed_null": false
|
847
849
|
},
|
@@ -851,6 +853,7 @@
|
|
851
853
|
"example": "数据库快照",
|
852
854
|
"member": "string",
|
853
855
|
"name": "DiagType",
|
856
|
+
"output_required": true,
|
854
857
|
"type": "string",
|
855
858
|
"value_allowed_null": false
|
856
859
|
},
|
@@ -860,15 +863,17 @@
|
|
860
863
|
"example": "5",
|
861
864
|
"member": "int64",
|
862
865
|
"name": "EventId",
|
866
|
+
"output_required": true,
|
863
867
|
"type": "int",
|
864
868
|
"value_allowed_null": false
|
865
869
|
},
|
866
870
|
{
|
867
871
|
"disabled": false,
|
868
872
|
"document": "事件详情。",
|
869
|
-
"example": "[{\"DataType\":\"title\"
|
873
|
+
"example": "[{\"DataType\":\"title\"}]",
|
870
874
|
"member": "string",
|
871
875
|
"name": "Explanation",
|
876
|
+
"output_required": true,
|
872
877
|
"type": "string",
|
873
878
|
"value_allowed_null": false
|
874
879
|
},
|
@@ -878,15 +883,17 @@
|
|
878
883
|
"example": "数据库健康检查,发现1个问题",
|
879
884
|
"member": "string",
|
880
885
|
"name": "Outline",
|
886
|
+
"output_required": true,
|
881
887
|
"type": "string",
|
882
888
|
"value_allowed_null": false
|
883
889
|
},
|
884
890
|
{
|
885
891
|
"disabled": false,
|
886
892
|
"document": "诊断出的问题。",
|
887
|
-
"example": "[{\"DataType\":\"title\",\"Data\":{\"Name\":\"会话快照\"}}
|
893
|
+
"example": "[{\"DataType\":\"title\",\"Data\":{\"Name\":\"会话快照\"}}]",
|
888
894
|
"member": "string",
|
889
895
|
"name": "Problem",
|
896
|
+
"output_required": true,
|
890
897
|
"type": "string",
|
891
898
|
"value_allowed_null": false
|
892
899
|
},
|
@@ -896,6 +903,7 @@
|
|
896
903
|
"example": "4",
|
897
904
|
"member": "int64",
|
898
905
|
"name": "Severity",
|
906
|
+
"output_required": true,
|
899
907
|
"type": "int",
|
900
908
|
"value_allowed_null": false
|
901
909
|
},
|
@@ -905,15 +913,17 @@
|
|
905
913
|
"example": "2019-11-06 12:05:40",
|
906
914
|
"member": "datetime",
|
907
915
|
"name": "StartTime",
|
916
|
+
"output_required": true,
|
908
917
|
"type": "string",
|
909
918
|
"value_allowed_null": false
|
910
919
|
},
|
911
920
|
{
|
912
921
|
"disabled": false,
|
913
922
|
"document": "建议。",
|
914
|
-
"example": "[{\"DataType\":\"title\",\"Data\":{\"Name\":\"SQL优化\"}}
|
923
|
+
"example": "[{\"DataType\":\"title\",\"Data\":{\"Name\":\"SQL优化\"}}]",
|
915
924
|
"member": "string",
|
916
925
|
"name": "Suggestions",
|
926
|
+
"output_required": true,
|
917
927
|
"type": "string",
|
918
928
|
"value_allowed_null": false
|
919
929
|
},
|
@@ -923,6 +933,7 @@
|
|
923
933
|
"example": "innodb_rows_read_per_qps",
|
924
934
|
"member": "string",
|
925
935
|
"name": "Metric",
|
936
|
+
"output_required": true,
|
926
937
|
"type": "string",
|
927
938
|
"value_allowed_null": true
|
928
939
|
},
|
@@ -932,6 +943,7 @@
|
|
932
943
|
"example": "2019-11-06 12:05:50",
|
933
944
|
"member": "datetime",
|
934
945
|
"name": "EndTime",
|
946
|
+
"output_required": true,
|
935
947
|
"type": "string",
|
936
948
|
"value_allowed_null": false
|
937
949
|
},
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"CreateDBDiagReportTask": [
|
12
12
|
{
|
13
13
|
"document": "创建健康报告, 发送邮件。",
|
14
|
-
"input": "https://dbbrain.tencentcloudapi.com/?Action=CreateDBDiagReportTask\n&InstanceId=
|
14
|
+
"input": "https://dbbrain.tencentcloudapi.com/?Action=CreateDBDiagReportTask\n&InstanceId=cdb-test1234\n&StartTime=2019-01-01T00:00:00+08:00\n&EndTime=2019-01-02T00:00:00+08:00\n&SendMailFlag=1\n&ContactPerson.0=1\n&ContactGroup.0=1\n&<公共请求参数>",
|
15
15
|
"output": "{\n \"Response\": {\n \"AsyncRequestId\": 129632,\n \"RequestId\": \"77db16d7-bbe8-48a7-868b-ed776a96f1ab\"\n }\n}",
|
16
16
|
"title": "创建健康报告, 发送邮件(可选)"
|
17
17
|
}
|
@@ -75,8 +75,8 @@
|
|
75
75
|
"DescribeDBDiagEvent": [
|
76
76
|
{
|
77
77
|
"document": "获取诊断事件详情。",
|
78
|
-
"input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeDBDiagEvent\n&InstanceId=
|
79
|
-
"output": "{\n \"Response\": {\n \"Suggestions\": \"[]\",\n \"DiagType\": \"数据库快照\",\n \"EndTime\": \"2019-11-06 12:05:50\",\n \"RequestId\": \"78cf7bb1-0608-11ea-a9ef-2736f0f7f829\",\n \"Explanation\": \"[]\",\n \"StartTime\": \"2019-11-06 12:05:40\",\n \"Severity\": 4,\n \"EventId\": 5,\n \"Outline\": \"数据库健康检查,发现1个问题\",\n \"Problem\": \"[{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"会话快照\\\"}},{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"事务快照\\\"}},{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"Innodb状态快照\\\"}}]\",\n \"Metric\": \"\",\n \"DiagItem\": \"健康巡检\"\n }\n}",
|
78
|
+
"input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeDBDiagEvent\n&InstanceId=cdb-test1234\n&EventId=5\n&<公共请求参数>",
|
79
|
+
"output": "{\n \"Response\": {\n \"Suggestions\": \"[{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"SQL优化\\\"}},[{\\\"DataType\\\":\\\"sqlAdvice\\\",\\\"Data\\\":{\\\"Advices\\\":[{\\\"TableName\\\":\\\"t1\\\",\\\"TableSchema\\\":\\\"demo\\\",\\\"Keys\\\":[{\\\"SqlText\\\":\\\"alter table `demo`.`t1` add index index_0(`c_time`);\\\"}]}],\\\"Comments\\\":[],\\\"Schema\\\":\\\"demo\\\",\\\"SqlPlan\\\":{},\\\"SqlText\\\":\\\"select t1.*, t2.* from t1, t2 where t1.c_time = t2.c_time and t1.name > t2.name order by t2.name limit 10\\\",\\\"Tables\\\":[{\\\"TableName\\\":\\\"t1\\\",\\\"TableSchema\\\":\\\"demo\\\",\\\"TableDDL\\\":\\\"CREATE TABLE `t1` (\\\\n `id` int NOT NULL AUTO_INCREMENT,\\\\n `c_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\\\\n `name` varchar(32) DEFAULT NULL,\\\\n `age` int NOT NULL DEFAULT '0',\\\\n PRIMARY KEY (`id`)\\\\n) ENGINE=InnoDB AUTO_INCREMENT=786393 DEFAULT CHARSET=utf8mb3\\\"}],\\\"Cost\\\":{\\\"Before\\\":1.060202269597E10,\\\"After\\\":1.060202269597E10,\\\"Ratio\\\":0}}}]]\",\n \"DiagType\": \"数据库快照\",\n \"EndTime\": \"2019-11-06 12:05:50\",\n \"RequestId\": \"78cf7bb1-0608-11ea-a9ef-2736f0f7f829\",\n \"Explanation\": \"[{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"慢会话详情\\\"}},[{\\\"Layout\\\":\\\"vertical\\\",\\\"DataType\\\":\\\"table\\\",\\\"Data\\\":{\\\"Names\\\":[\\\"Schema\\\",{\\\"Type\\\":\\\"sql\\\",\\\"Name\\\":\\\"SqlText\\\"}],\\\"Data\\\":[{\\\"Schema\\\":\\\"demo\\\",\\\"SqlText\\\":\\\"select t1.*, t2.* from t1, t2 where t1.c_time = t2.c_time and t1.name > t2.name order by t2.name limit 10\\\"}]}}]]\",\n \"StartTime\": \"2019-11-06 12:05:40\",\n \"Severity\": 4,\n \"EventId\": 5,\n \"Outline\": \"数据库健康检查,发现1个问题\",\n \"Problem\": \"[{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"会话快照\\\"}},{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"事务快照\\\"}},{\\\"DataType\\\":\\\"title\\\",\\\"Data\\\":{\\\"Name\\\":\\\"Innodb状态快照\\\"}}]\",\n \"Metric\": \"\",\n \"DiagItem\": \"健康巡检\"\n }\n}",
|
80
80
|
"title": "获取诊断事件详情"
|
81
81
|
}
|
82
82
|
],
|
@@ -210,13 +210,13 @@
|
|
210
210
|
{
|
211
211
|
"document": "获取SQL优化建议。",
|
212
212
|
"input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeUserSqlAdvice\n&InstanceId=cdb-c1nl9rpv\n&SqlText=select * from t1 where id in ( ? )\n&<公共请求参数>",
|
213
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"
|
213
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"demo_db\\\", \\\"Keys\\\": [{\\\"SqlText\\\": \\\"alter table `test`.`t1` add index index_0(`id`);\\\"}]}]\",\n \"Comments\": \"[\\\"Failed to parse SQL statement\\\"]\",\n \"Schema\": \"demo_db\",\n \"Tables\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"demo_db\\\", \\\"TableDDL\\\": \\\"CREATE TABLE `test` (\\n `id` varchar(36) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC\\\"}]\",\n \"SqlText\": \"select * from t1 where id in ( ? )\",\n \"SqlPlan\": \"{\\\"Before\\\": [{\\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [ [1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ALL\\\", null, null, null, null, 1530, 10, \\\"Using where\\\" ]]}}], \\\"After\\\": [{ \\\"Format\\\": \\\"Table\\\", \\\"Data\\\": {\\\"Names\\\": [\\\"id\\\", \\\"select_type\\\", \\\"table\\\", \\\"partitions\\\", \\\"type\\\", \\\"possible_keys\\\", \\\"key\\\", \\\"key_len\\\", \\\"ref\\\", \\\"rows\\\", \\\"filtered\\\", \\\"Extra\\\"], \\\"Data\\\": [[1, \\\"SIMPLE\\\", \\\"t1\\\", null, \\\"ref\\\", \\\"index_0\\\", \\\"index_0\\\", 1056, \\\"const\\\", 51, 100.00, null]]}}]}\",\n \"Cost\": \"{\\\"Before\\\": 0.1, \\\"After\\\": 0.03, \\\"Ratio\\\": 90.61}\"\n }\n}",
|
214
214
|
"title": "获取SQL优化建议"
|
215
215
|
},
|
216
216
|
{
|
217
217
|
"document": "获取无需优化SQL的优化建议。",
|
218
218
|
"input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeUserSqlAdvice\n&InstanceId=cdb-c1nl9rpv\n&SqlText=select * from t1 where id = ?\n&<公共请求参数>",
|
219
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"\",\n \"Comments\": \"\",\n \"Schema\": \"
|
219
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e2a51350-8c9f-11eb-bc0f-c9f5ab88d057\",\n \"Advices\": \"\",\n \"Comments\": \"\",\n \"Schema\": \"demo_db\",\n \"Tables\": \"[{\\\"TableName\\\": \\\"t1\\\", \\\"TableSchema\\\": \\\"demo_db\\\", \\\"TableDDL\\\": \\\"CREATE TABLE `test` (\\n `id` varchar(36) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC\\\"}]\",\n \"SqlText\": \"select * from t1 where id in ( ? )\",\n \"SqlPlan\": \"\",\n \"Cost\": \"\"\n }\n}",
|
220
220
|
"title": "获取无需优化SQL的优化建议"
|
221
221
|
}
|
222
222
|
],
|