tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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.
Files changed (187) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/asr/v20190614/api.json +18 -18
  4. tccli/services/batch/v20170312/api.json +14 -14
  5. tccli/services/bh/bh_client.py +623 -93
  6. tccli/services/bh/v20230418/api.json +1054 -32
  7. tccli/services/bh/v20230418/examples.json +93 -1
  8. tccli/services/billing/billing_client.py +4 -57
  9. tccli/services/billing/v20180709/api.json +3 -305
  10. tccli/services/billing/v20180709/examples.json +2 -10
  11. tccli/services/bpaas/v20181217/api.json +56 -56
  12. tccli/services/cat/cat_client.py +61 -8
  13. tccli/services/cat/v20180409/api.json +115 -0
  14. tccli/services/cat/v20180409/examples.json +20 -0
  15. tccli/services/cbs/v20170312/api.json +9 -7
  16. tccli/services/cbs/v20170312/examples.json +2 -2
  17. tccli/services/ccc/ccc_client.py +216 -4
  18. tccli/services/ccc/v20200210/api.json +364 -6
  19. tccli/services/ccc/v20200210/examples.json +32 -0
  20. tccli/services/cdb/v20170320/api.json +23 -14
  21. tccli/services/cdb/v20170320/examples.json +3 -3
  22. tccli/services/cdc/cdc_client.py +173 -67
  23. tccli/services/cdc/v20201214/api.json +96 -0
  24. tccli/services/cdc/v20201214/examples.json +16 -0
  25. tccli/services/cdn/v20180606/api.json +365 -279
  26. tccli/services/cdwch/v20200915/api.json +21 -21
  27. tccli/services/cdwdoris/v20211228/api.json +21 -1
  28. tccli/services/cdwdoris/v20211228/examples.json +4 -4
  29. tccli/services/cdwpg/v20201230/api.json +375 -360
  30. tccli/services/cdwpg/v20201230/examples.json +1 -1
  31. tccli/services/cfw/cfw_client.py +53 -0
  32. tccli/services/cfw/v20190904/api.json +201 -5
  33. tccli/services/cfw/v20190904/examples.json +8 -0
  34. tccli/services/chc/chc_client.py +57 -4
  35. tccli/services/chc/v20230418/api.json +108 -1
  36. tccli/services/chc/v20230418/examples.json +8 -0
  37. tccli/services/ckafka/ckafka_client.py +408 -302
  38. tccli/services/ckafka/v20190819/api.json +197 -2
  39. tccli/services/ckafka/v20190819/examples.json +16 -0
  40. tccli/services/clb/v20180317/api.json +439 -379
  41. tccli/services/clb/v20180317/examples.json +7 -7
  42. tccli/services/cls/cls_client.py +53 -0
  43. tccli/services/cls/v20201016/api.json +86 -3
  44. tccli/services/cls/v20201016/examples.json +11 -3
  45. tccli/services/cvm/v20170312/api.json +165 -147
  46. tccli/services/cvm/v20170312/examples.json +6 -6
  47. tccli/services/cwp/v20180228/api.json +93 -14
  48. tccli/services/cwp/v20180228/examples.json +7 -7
  49. tccli/services/cynosdb/cynosdb_client.py +171 -12
  50. tccli/services/cynosdb/v20190107/api.json +252 -3
  51. tccli/services/cynosdb/v20190107/examples.json +24 -0
  52. tccli/services/dbbrain/dbbrain_client.py +57 -4
  53. tccli/services/dbbrain/v20210527/api.json +62 -0
  54. tccli/services/dbbrain/v20210527/examples.json +8 -0
  55. tccli/services/dc/v20180410/api.json +1 -1
  56. tccli/services/dlc/dlc_client.py +53 -0
  57. tccli/services/dlc/v20210125/api.json +816 -655
  58. tccli/services/dlc/v20210125/examples.json +73 -59
  59. tccli/services/dsgc/v20190723/api.json +18 -0
  60. tccli/services/dts/v20211206/api.json +4 -4
  61. tccli/services/dts/v20211206/examples.json +6 -0
  62. tccli/services/emr/emr_client.py +53 -0
  63. tccli/services/emr/v20190103/api.json +127 -0
  64. tccli/services/emr/v20190103/examples.json +8 -0
  65. tccli/services/es/es_client.py +686 -151
  66. tccli/services/es/v20180416/api.json +509 -436
  67. tccli/services/es/v20180416/examples.json +43 -49
  68. tccli/services/es/v20250101/api.json +1391 -0
  69. tccli/services/es/v20250101/examples.json +85 -0
  70. tccli/services/ess/ess_client.py +53 -0
  71. tccli/services/ess/v20201111/api.json +142 -21
  72. tccli/services/ess/v20201111/examples.json +14 -0
  73. tccli/services/essbasic/essbasic_client.py +53 -0
  74. tccli/services/essbasic/v20210526/api.json +112 -9
  75. tccli/services/essbasic/v20210526/examples.json +8 -0
  76. tccli/services/gaap/v20180529/api.json +321 -312
  77. tccli/services/gaap/v20180529/examples.json +2 -2
  78. tccli/services/gs/gs_client.py +538 -8
  79. tccli/services/gs/v20191118/api.json +947 -44
  80. tccli/services/gs/v20191118/examples.json +87 -1
  81. tccli/services/gwlb/v20240906/api.json +56 -37
  82. tccli/services/gwlb/v20240906/examples.json +11 -5
  83. tccli/services/hunyuan/hunyuan_client.py +175 -69
  84. tccli/services/hunyuan/v20230901/api.json +191 -1
  85. tccli/services/hunyuan/v20230901/examples.json +17 -1
  86. tccli/services/ioa/ioa_client.py +227 -15
  87. tccli/services/ioa/v20220601/api.json +479 -0
  88. tccli/services/ioa/v20220601/examples.json +44 -0
  89. tccli/services/iotexplorer/iotexplorer_client.py +322 -4
  90. tccli/services/iotexplorer/v20190423/api.json +865 -52
  91. tccli/services/iotexplorer/v20190423/examples.json +64 -16
  92. tccli/services/iotvideo/iotvideo_client.py +57 -4
  93. tccli/services/iotvideo/v20211125/api.json +146 -0
  94. tccli/services/iotvideo/v20211125/examples.json +8 -0
  95. tccli/services/iotvideoindustry/v20201201/api.json +1 -1
  96. tccli/services/kms/v20190118/api.json +38 -2
  97. tccli/services/lcic/v20220817/api.json +66 -1
  98. tccli/services/lcic/v20220817/examples.json +1 -1
  99. tccli/services/lighthouse/lighthouse_client.py +0 -106
  100. tccli/services/lighthouse/v20200324/api.json +11 -98
  101. tccli/services/lighthouse/v20200324/examples.json +0 -16
  102. tccli/services/live/v20180801/api.json +1 -1
  103. tccli/services/lke/v20231130/api.json +208 -10
  104. tccli/services/lke/v20231130/examples.json +10 -10
  105. tccli/services/lkeap/lkeap_client.py +53 -0
  106. tccli/services/lkeap/v20240522/api.json +48 -4
  107. tccli/services/lkeap/v20240522/examples.json +8 -0
  108. tccli/services/mna/mna_client.py +4 -163
  109. tccli/services/mna/v20210119/api.json +0 -524
  110. tccli/services/mna/v20210119/examples.json +0 -24
  111. tccli/services/monitor/monitor_client.py +114 -8
  112. tccli/services/monitor/v20180724/api.json +129 -18
  113. tccli/services/monitor/v20180724/examples.json +17 -1
  114. tccli/services/mps/v20190612/api.json +1223 -1031
  115. tccli/services/mps/v20190612/examples.json +1 -1
  116. tccli/services/nlp/v20190408/examples.json +1 -1
  117. tccli/services/oceanus/v20190422/api.json +12 -12
  118. tccli/services/oceanus/v20190422/examples.json +15 -3
  119. tccli/services/ocr/v20181119/api.json +13 -3
  120. tccli/services/postgres/v20170312/api.json +2 -2
  121. tccli/services/privatedns/v20201028/api.json +30 -11
  122. tccli/services/privatedns/v20201028/examples.json +10 -10
  123. tccli/services/rce/v20201103/api.json +3 -3
  124. tccli/services/ses/v20201002/api.json +10 -1
  125. tccli/services/smop/v20201203/api.json +2 -2
  126. tccli/services/sqlserver/v20180328/api.json +1 -1
  127. tccli/services/ssm/v20190923/api.json +27 -0
  128. tccli/services/sts/sts_client.py +53 -0
  129. tccli/services/sts/v20180813/api.json +101 -1
  130. tccli/services/sts/v20180813/examples.json +8 -0
  131. tccli/services/taf/taf_client.py +0 -53
  132. tccli/services/taf/v20200210/api.json +0 -138
  133. tccli/services/taf/v20200210/examples.json +0 -8
  134. tccli/services/tan/v20220420/api.json +2 -2
  135. tccli/services/tat/v20201028/api.json +2 -2
  136. tccli/services/tcb/v20180608/api.json +29 -1
  137. tccli/services/tcbr/v20220217/api.json +32 -0
  138. tccli/services/tccatalog/v20241024/api.json +1 -1
  139. tccli/services/tccatalog/v20241024/examples.json +1 -1
  140. tccli/services/tcr/v20190924/api.json +5 -5
  141. tccli/services/tcr/v20190924/examples.json +2 -2
  142. tccli/services/tcss/v20201101/api.json +84 -34
  143. tccli/services/tcss/v20201101/examples.json +2809 -0
  144. tccli/services/tdmq/v20200217/api.json +40 -0
  145. tccli/services/tdmq/v20200217/examples.json +1 -1
  146. tccli/services/tds/tds_client.py +53 -0
  147. tccli/services/tds/v20220801/api.json +265 -0
  148. tccli/services/tds/v20220801/examples.json +8 -0
  149. tccli/services/tem/v20210701/api.json +664 -575
  150. tccli/services/tem/v20210701/examples.json +2 -2
  151. tccli/services/teo/v20220901/api.json +236 -208
  152. tccli/services/teo/v20220901/examples.json +13 -13
  153. tccli/services/tione/tione_client.py +53 -0
  154. tccli/services/tione/v20211111/api.json +256 -0
  155. tccli/services/tione/v20211111/examples.json +8 -0
  156. tccli/services/tke/v20180525/api.json +1 -1
  157. tccli/services/trocket/trocket_client.py +489 -12
  158. tccli/services/trocket/v20230308/api.json +925 -146
  159. tccli/services/trocket/v20230308/examples.json +72 -0
  160. tccli/services/trtc/v20190722/api.json +13 -19
  161. tccli/services/trtc/v20190722/examples.json +8 -8
  162. tccli/services/tse/v20201207/api.json +1016 -995
  163. tccli/services/tse/v20201207/examples.json +2 -2
  164. tccli/services/tsf/v20180326/api.json +510 -465
  165. tccli/services/tsf/v20180326/examples.json +4 -4
  166. tccli/services/tts/v20190823/api.json +10 -10
  167. tccli/services/vclm/v20240523/api.json +2 -2
  168. tccli/services/vcube/v20220410/api.json +10 -0
  169. tccli/services/vdb/v20230616/api.json +10 -0
  170. tccli/services/vdb/v20230616/examples.json +1 -1
  171. tccli/services/vpc/v20170312/api.json +824 -254
  172. tccli/services/vpc/v20170312/examples.json +66 -10
  173. tccli/services/vpc/vpc_client.py +383 -12
  174. tccli/services/vrs/v20200824/api.json +9 -0
  175. tccli/services/waf/v20180125/api.json +8113 -5814
  176. tccli/services/waf/v20180125/examples.json +90 -0
  177. tccli/services/waf/waf_client.py +559 -82
  178. tccli/services/wedata/v20210820/api.json +1379 -24
  179. tccli/services/wedata/v20210820/examples.json +25 -1
  180. tccli/services/wedata/wedata_client.py +171 -12
  181. tccli/services/weilingwith/v20230427/api.json +1 -1
  182. tccli/services/weilingwith/v20230427/examples.json +3 -3
  183. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
  184. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
  185. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
  186. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
  187. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -656,6 +656,14 @@
656
656
  "title": "查询回档时间范围"
657
657
  }
658
658
  ],
659
+ "DescribeSSLStatus": [
660
+ {
661
+ "document": "查询实例SSL状态",
662
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSSLStatus\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-jd510000\",\n \"InstanceId\": \"cynosdbmysql-ins-906n0000\"\n}",
663
+ "output": "{\n \"Response\": {\n \"DownloadUrl\": \"download_url\",\n \"IsOpenSSL\": \"yes\",\n \"RequestId\": \"baa4f39e-47c0-4400-bff2-1d6062b70748\"\n }\n}",
664
+ "title": "查询实例SSL状态"
665
+ }
666
+ ],
659
667
  "DescribeServerlessInstanceSpecs": [
660
668
  {
661
669
  "document": "",
@@ -672,6 +680,14 @@
672
680
  "title": "查询serverless策略"
673
681
  }
674
682
  ],
683
+ "DescribeSlaveZones": [
684
+ {
685
+ "document": "",
686
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSlaveZones\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou-3\"\n}",
687
+ "output": "{\n \"Response\": {\n \"SlaveZones\": [\n \"ap-guangzhou-5\"\n ],\n \"RequestId\": \"128046\"\n }\n}",
688
+ "title": "DescribeSlaveZones"
689
+ }
690
+ ],
675
691
  "DescribeSupportProxyVersion": [
676
692
  {
677
693
  "document": "查询支持的数据库代理版本",
@@ -1070,6 +1086,14 @@
1070
1086
  "title": "ex:"
1071
1087
  }
1072
1088
  ],
1089
+ "OpenSSL": [
1090
+ {
1091
+ "document": "开启SSL加密",
1092
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenSSL\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-jd510000\",\n \"InstanceId\": \"cynosdbmysql-ins-906n0000\"\n}",
1093
+ "output": "{\n \"Response\": {\n \"FlowId\": 1,\n \"RequestId\": \"42d79173-6d36-4239-b7ad-5b993559a5c6\",\n \"TaskId\": 1\n }\n}",
1094
+ "title": "开启SSL加密"
1095
+ }
1096
+ ],
1073
1097
  "OpenWan": [
1074
1098
  {
1075
1099
  "document": "",
@@ -71,6 +71,58 @@ def doDescribeDBAutonomyEvents(args, parsed_globals):
71
71
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
72
72
 
73
73
 
74
+ def doVerifyUserAccount(args, parsed_globals):
75
+ g_param = parse_global_arg(parsed_globals)
76
+
77
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
78
+ cred = credential.CVMRoleCredential()
79
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
80
+ cred = credential.STSAssumeRoleCredential(
81
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
82
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
83
+ )
84
+ 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):
85
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
86
+ else:
87
+ cred = credential.Credential(
88
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
89
+ )
90
+ http_profile = HttpProfile(
91
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
92
+ reqMethod="POST",
93
+ endpoint=g_param[OptionsDefine.Endpoint],
94
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
95
+ )
96
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
97
+ if g_param[OptionsDefine.Language]:
98
+ profile.language = g_param[OptionsDefine.Language]
99
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
100
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
101
+ client._sdkVersion += ("_CLI_" + __version__)
102
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
103
+ model = models.VerifyUserAccountRequest()
104
+ model.from_json_string(json.dumps(args))
105
+ start_time = time.time()
106
+ while True:
107
+ rsp = client.VerifyUserAccount(model)
108
+ result = rsp.to_json_string()
109
+ try:
110
+ json_obj = json.loads(result)
111
+ except TypeError as e:
112
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
113
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
114
+ break
115
+ cur_time = time.time()
116
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
117
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
118
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
119
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
120
+ else:
121
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
122
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
123
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
124
+
125
+
74
126
  def doDescribeSecurityAuditLogDownloadUrls(args, parsed_globals):
75
127
  g_param = parse_global_arg(parsed_globals)
76
128
 
@@ -3659,7 +3711,7 @@ def doCreateDBDiagReportUrl(args, parsed_globals):
3659
3711
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3660
3712
 
3661
3713
 
3662
- def doVerifyUserAccount(args, parsed_globals):
3714
+ def doDescribeDBDiagReportContent(args, parsed_globals):
3663
3715
  g_param = parse_global_arg(parsed_globals)
3664
3716
 
3665
3717
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3688,11 +3740,11 @@ def doVerifyUserAccount(args, parsed_globals):
3688
3740
  client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
3689
3741
  client._sdkVersion += ("_CLI_" + __version__)
3690
3742
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3691
- model = models.VerifyUserAccountRequest()
3743
+ model = models.DescribeDBDiagReportContentRequest()
3692
3744
  model.from_json_string(json.dumps(args))
3693
3745
  start_time = time.time()
3694
3746
  while True:
3695
- rsp = client.VerifyUserAccount(model)
3747
+ rsp = client.DescribeDBDiagReportContent(model)
3696
3748
  result = rsp.to_json_string()
3697
3749
  try:
3698
3750
  json_obj = json.loads(result)
@@ -4037,6 +4089,7 @@ MODELS_MAP = {
4037
4089
 
4038
4090
  ACTION_MAP = {
4039
4091
  "DescribeDBAutonomyEvents": doDescribeDBAutonomyEvents,
4092
+ "VerifyUserAccount": doVerifyUserAccount,
4040
4093
  "DescribeSecurityAuditLogDownloadUrls": doDescribeSecurityAuditLogDownloadUrls,
4041
4094
  "DeleteDBDiagReportTasks": doDeleteDBDiagReportTasks,
4042
4095
  "DescribeMailProfile": doDescribeMailProfile,
@@ -4106,7 +4159,7 @@ ACTION_MAP = {
4106
4159
  "OpenAuditService": doOpenAuditService,
4107
4160
  "KillMySqlThreads": doKillMySqlThreads,
4108
4161
  "CreateDBDiagReportUrl": doCreateDBDiagReportUrl,
4109
- "VerifyUserAccount": doVerifyUserAccount,
4162
+ "DescribeDBDiagReportContent": doDescribeDBDiagReportContent,
4110
4163
  "DescribeRedisCommandCostStatistics": doDescribeRedisCommandCostStatistics,
4111
4164
  "ModifySqlFilters": doModifySqlFilters,
4112
4165
  "DescribeProxySessionKillTasks": doDescribeProxySessionKillTasks,
@@ -217,6 +217,13 @@
217
217
  "output": "DescribeDBDiagHistoryResponse",
218
218
  "status": "online"
219
219
  },
220
+ "DescribeDBDiagReportContent": {
221
+ "document": "健康报告内容。",
222
+ "input": "DescribeDBDiagReportContentRequest",
223
+ "name": "查询健康诊断报告内容",
224
+ "output": "DescribeDBDiagReportContentResponse",
225
+ "status": "online"
226
+ },
220
227
  "DescribeDBDiagReportTasks": {
221
228
  "document": "查询健康报告生成任务列表。",
222
229
  "input": "DescribeDBDiagReportTasksRequest",
@@ -3730,6 +3737,61 @@
3730
3737
  ],
3731
3738
  "type": "object"
3732
3739
  },
3740
+ "DescribeDBDiagReportContentRequest": {
3741
+ "document": "DescribeDBDiagReportContent请求参数结构体",
3742
+ "members": [
3743
+ {
3744
+ "disabled": false,
3745
+ "document": "实例名",
3746
+ "example": "cdb-c1nl9rpv",
3747
+ "member": "string",
3748
+ "name": "InstanceId",
3749
+ "required": true,
3750
+ "type": "string"
3751
+ },
3752
+ {
3753
+ "disabled": false,
3754
+ "document": "异步任务ID",
3755
+ "example": "59",
3756
+ "member": "uint64",
3757
+ "name": "AsyncRequestId",
3758
+ "required": true,
3759
+ "type": "int"
3760
+ },
3761
+ {
3762
+ "disabled": false,
3763
+ "document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL,\"redis\" - 云数据库 Redis,\"mongodb\" - 云数据库 MongoDB,默认为\"mysql\"。",
3764
+ "example": "mysql",
3765
+ "member": "string",
3766
+ "name": "Product",
3767
+ "required": false,
3768
+ "type": "string"
3769
+ }
3770
+ ],
3771
+ "type": "object"
3772
+ },
3773
+ "DescribeDBDiagReportContentResponse": {
3774
+ "document": "DescribeDBDiagReportContent返回参数结构体",
3775
+ "members": [
3776
+ {
3777
+ "disabled": false,
3778
+ "document": "报告内容。",
3779
+ "example": "无",
3780
+ "member": "string",
3781
+ "name": "Report",
3782
+ "output_required": true,
3783
+ "type": "string",
3784
+ "value_allowed_null": false
3785
+ },
3786
+ {
3787
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3788
+ "member": "string",
3789
+ "name": "RequestId",
3790
+ "type": "string"
3791
+ }
3792
+ ],
3793
+ "type": "object"
3794
+ },
3733
3795
  "DescribeDBDiagReportTasksRequest": {
3734
3796
  "document": "DescribeDBDiagReportTasks请求参数结构体",
3735
3797
  "members": [
@@ -248,6 +248,14 @@
248
248
  "title": "获取实例诊断事件列表"
249
249
  }
250
250
  ],
251
+ "DescribeDBDiagReportContent": [
252
+ {
253
+ "document": "",
254
+ "input": "https://dbbrain.tencentcloudapi.com/?Action=DescribeDBDiagReportTasks\n&Product=mysql\n&AsyncRequestId=1\n&InstanceId=cdb-xxxxx\n&<公共请求参数>",
255
+ "output": "{\n \"Response\": {\n \"Report\": \"{\\\"DiagEvents\\\":[],\\\"RiskAccounts\\\":null,\\\"PerfDataBrief\\\":[{\\\"Status\\\":\\\"IDLE\\\",\\\"Min\\\":1,\\\"Avg\\\":5.32,\\\"Max\\\":43,\\\"RecMin\\\":800,\\\"FlavorMax\\\":1200,\\\"Metric\\\":\\\"queries\\\",\\\"Unit\\\":\\\"次/秒\\\",\\\"RecMax\\\":1000},{\\\"Status\\\":\\\"IDLE\\\",\\\"Min\\\":0.1,\\\"Avg\\\":0.25,\\\"Max\\\":0.75,\\\"RecMin\\\":20,\\\"FlavorMax\\\":100,\\\"Metric\\\":\\\"cpu_use_rate\\\",\\\"Unit\\\":\\\"%\\\",\\\"RecMax\\\":60},{\\\"Status\\\":\\\"IDLE\\\",\\\"Min\\\":4,\\\"Avg\\\":5.76,\\\"Max\\\":7,\\\"RecMin\\\":400,\\\"FlavorMax\\\":1200,\\\"Metric\\\":\\\"threads_connected\\\",\\\"Unit\\\":\\\"个\\\",\\\"RecMax\\\":1000},{\\\"Status\\\":\\\"IDLE\\\",\\\"Min\\\":28.87,\\\"Avg\\\":29.01,\\\"Max\\\":29.26,\\\"RecMin\\\":60,\\\"FlavorMax\\\":100,\\\"Metric\\\":\\\"memory_use_rate\\\",\\\"Unit\\\":\\\"%\\\",\\\"RecMax\\\":80},{\\\"Status\\\":\\\"IDLE\\\",\\\"Min\\\":2.34,\\\"Avg\\\":2.34,\\\"Max\\\":2.34,\\\"RecMin\\\":20,\\\"FlavorMax\\\":100,\\\"Metric\\\":\\\"volume_rate\\\",\\\"Unit\\\":\\\"%\\\",\\\"RecMax\\\":80}],\\\"NoPrimaryKeyTables\\\":{},\\\"SourceType\\\":\\\"\\\",\\\"HealthStatus\\\":{},\\\"SlowLogTopSqls\\\":[],\\\"InstBasicInfo\\\":{\\\"CdbVersion\\\":\\\"8.0\\\",\\\"InternalVip\\\":\\\"\\\",\\\"DeviceTypeName\\\":\\\"通用型\\\",\\\"InstanceId\\\":\\\"cdb-xxxxx\\\",\\\"InternalVport\\\":0,\\\"Memory\\\":8000,\\\"Zone\\\":110001,\\\"Vport\\\":3306,\\\"Product\\\":\\\"MySQL\\\",\\\"Cpu\\\":4,\\\"InstanceName\\\":\\\"长稳CFT_2\\\",\\\"ZoneName\\\":\\\"深圳金融一区\\\",\\\"DeployMode\\\":\\\"CUSTOM\\\",\\\"Volume\\\":200,\\\"InstanceTypeName\\\":\\\"主实例\\\",\\\"Region\\\":\\\"深圳金融\\\",\\\"Vip\\\":\\\"172.23.32.5\\\"},\\\"PerfDataSeries\\\":[],\\\"ReportBasicInfo\\\":{\\\"UserName\\\":\\\"数据库智能管家DBbrain\\\",\\\"EndTime\\\":\\\"2025-04-10 00:00:00\\\",\\\"Language\\\":\\\"cn\\\",\\\"StartTime\\\":\\\"2025-04-09 00:00:00\\\"},\\\"TopSpaceTables\\\":{\\\"Names\\\":[\\\"TableSchema\\\",\\\"TableName\\\",\\\"Engine\\\",\\\"DataFree\\\",\\\"DataLength\\\",\\\"IndexLength\\\",\\\"TotalLength\\\",\\\"FragRatio\\\",\\\"TableRows\\\",\\\"PhysicalFileSize\\\"],\\\"Data\\\":[{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"stk_order_36\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.2},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"cuacct_1\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.2},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"cubsb_log\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.2},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"fund_dispatch_log\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.2},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"eg_sync-3dlgfz9a\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"__tencentdb__\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"aa\\\\\\\\na\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"special_column_test14\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"t125_btree_desc\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"full_syntax\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":1,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"gtid_executed\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"__tencentdb__\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":2,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"all_kinds_of_fields\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":2,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"special_column_test15\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"t125_hash\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"full_syntax\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":1,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"heartbeat_sync-3dlgfz9a\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"__tencentdb__\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":1,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"all_kinds_of_fields_0\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":2,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"special_column_test16\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"t125_hash_desc\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"full_syntax\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"identify\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"__tencentdb__\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"all_kinds_of_fields_1\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":5,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"special_column_test17\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"newdts\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":0,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1},{\\\"DataFree\\\":0,\\\"TableName\\\":\\\"t126\\\",\\\"TotalLength\\\":0,\\\"TableSchema\\\":\\\"full_syntax\\\",\\\"FragRatio\\\":0,\\\"DataLength\\\":0,\\\"TableRows\\\":1,\\\"Engine\\\":\\\"InnoDB\\\",\\\"IndexLength\\\":0,\\\"PhysicalFileSize\\\":0.1}]}}\",\n \"RequestId\": \"46b24e25-ad04-4cb1-8739-fdcd37aaf238\"\n }\n}",
256
+ "title": "查询健康报告内容"
257
+ }
258
+ ],
251
259
  "DescribeDBDiagReportTasks": [
252
260
  {
253
261
  "document": "",
@@ -167,7 +167,7 @@
167
167
  "members": [
168
168
  {
169
169
  "disabled": false,
170
- "document": "专用通道ID",
170
+ "document": "专用通道ID。可以通过[DescribeDirectConnectTunnel](https://cloud.tencent.com/document/product/216/19819)接口获取。",
171
171
  "example": "dcx-xxxxxxxx",
172
172
  "member": "string",
173
173
  "name": "DirectConnectTunnelId",
@@ -6673,6 +6673,58 @@ def doDescribeNotebookSessionStatement(args, parsed_globals):
6673
6673
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6674
6674
 
6675
6675
 
6676
+ def doDescribeClusterMonitorInfos(args, parsed_globals):
6677
+ g_param = parse_global_arg(parsed_globals)
6678
+
6679
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6680
+ cred = credential.CVMRoleCredential()
6681
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6682
+ cred = credential.STSAssumeRoleCredential(
6683
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6684
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6685
+ )
6686
+ 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):
6687
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6688
+ else:
6689
+ cred = credential.Credential(
6690
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6691
+ )
6692
+ http_profile = HttpProfile(
6693
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6694
+ reqMethod="POST",
6695
+ endpoint=g_param[OptionsDefine.Endpoint],
6696
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6697
+ )
6698
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6699
+ if g_param[OptionsDefine.Language]:
6700
+ profile.language = g_param[OptionsDefine.Language]
6701
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6702
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
6703
+ client._sdkVersion += ("_CLI_" + __version__)
6704
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6705
+ model = models.DescribeClusterMonitorInfosRequest()
6706
+ model.from_json_string(json.dumps(args))
6707
+ start_time = time.time()
6708
+ while True:
6709
+ rsp = client.DescribeClusterMonitorInfos(model)
6710
+ result = rsp.to_json_string()
6711
+ try:
6712
+ json_obj = json.loads(result)
6713
+ except TypeError as e:
6714
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6715
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6716
+ break
6717
+ cur_time = time.time()
6718
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6719
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6720
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6721
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6722
+ else:
6723
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6724
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6725
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6726
+
6727
+
6676
6728
  def doRenewDataEngine(args, parsed_globals):
6677
6729
  g_param = parse_global_arg(parsed_globals)
6678
6730
 
@@ -7748,6 +7800,7 @@ ACTION_MAP = {
7748
7800
  "CreateScript": doCreateScript,
7749
7801
  "RestartDataEngine": doRestartDataEngine,
7750
7802
  "DescribeNotebookSessionStatement": doDescribeNotebookSessionStatement,
7803
+ "DescribeClusterMonitorInfos": doDescribeClusterMonitorInfos,
7751
7804
  "RenewDataEngine": doRenewDataEngine,
7752
7805
  "ModifySparkApp": doModifySparkApp,
7753
7806
  "DescribeViews": doDescribeViews,