tccli 3.0.1245.1__py2.py3-none-any.whl → 3.0.1246.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/cdb/cdb_client.py +53 -0
  4. tccli/services/cdb/v20170320/api.json +72 -0
  5. tccli/services/cdb/v20170320/examples.json +8 -0
  6. tccli/services/dbdc/v20201029/api.json +72 -72
  7. tccli/services/dcdb/v20180411/api.json +3 -3
  8. tccli/services/dcdb/v20180411/examples.json +1 -1
  9. tccli/services/iotexplorer/iotexplorer_client.py +216 -4
  10. tccli/services/iotexplorer/v20190423/api.json +146 -1
  11. tccli/services/iotexplorer/v20190423/examples.json +34 -2
  12. tccli/services/lkeap/__init__.py +4 -0
  13. tccli/services/lkeap/lkeap_client.py +1426 -0
  14. tccli/services/lkeap/v20240522/api.json +1882 -0
  15. tccli/services/lkeap/v20240522/examples.json +215 -0
  16. tccli/services/mna/v20210119/api.json +7 -7
  17. tccli/services/mna/v20210119/examples.json +9 -9
  18. tccli/services/monitor/v20180724/api.json +19 -0
  19. tccli/services/sqlserver/v20180328/api.json +43 -5
  20. tccli/services/sqlserver/v20180328/examples.json +2 -2
  21. tccli/services/tcb/v20180608/api.json +45 -39
  22. tccli/services/tcb/v20180608/examples.json +9 -9
  23. tccli/services/tcr/v20190924/api.json +53 -53
  24. tccli/services/tcr/v20190924/examples.json +14 -14
  25. tccli/services/vpc/v20170312/examples.json +23 -1
  26. tccli/services/wedata/v20210820/api.json +34 -1
  27. {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/METADATA +2 -2
  28. {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/RECORD +31 -27
  29. {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/WHEEL +0 -0
  30. {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/entry_points.txt +0 -0
  31. {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1245.1'
1
+ __version__ = '3.0.1246.1'
@@ -469,6 +469,9 @@ SERVICE_VERSIONS = {
469
469
  "lke": [
470
470
  "2023-11-30"
471
471
  ],
472
+ "lkeap": [
473
+ "2024-05-22"
474
+ ],
472
475
  "lowcode": [
473
476
  "2021-01-08"
474
477
  ],
@@ -173,6 +173,58 @@ def doCreateAuditPolicy(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
+ def doDescribeTableColumns(args, parsed_globals):
177
+ g_param = parse_global_arg(parsed_globals)
178
+
179
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
180
+ cred = credential.CVMRoleCredential()
181
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
+ cred = credential.STSAssumeRoleCredential(
183
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
185
+ )
186
+ 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):
187
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
188
+ else:
189
+ cred = credential.Credential(
190
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
191
+ )
192
+ http_profile = HttpProfile(
193
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
194
+ reqMethod="POST",
195
+ endpoint=g_param[OptionsDefine.Endpoint],
196
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
197
+ )
198
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
199
+ if g_param[OptionsDefine.Language]:
200
+ profile.language = g_param[OptionsDefine.Language]
201
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
202
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
203
+ client._sdkVersion += ("_CLI_" + __version__)
204
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
+ model = models.DescribeTableColumnsRequest()
206
+ model.from_json_string(json.dumps(args))
207
+ start_time = time.time()
208
+ while True:
209
+ rsp = client.DescribeTableColumns(model)
210
+ result = rsp.to_json_string()
211
+ try:
212
+ json_obj = json.loads(result)
213
+ except TypeError as e:
214
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
215
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
216
+ break
217
+ cur_time = time.time()
218
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
219
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
220
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
221
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
222
+ else:
223
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
224
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
225
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
+
227
+
176
228
  def doDescribeDBInstanceLogToCLS(args, parsed_globals):
177
229
  g_param = parse_global_arg(parsed_globals)
178
230
 
@@ -8923,6 +8975,7 @@ ACTION_MAP = {
8923
8975
  "DescribeDBInstanceGTID": doDescribeDBInstanceGTID,
8924
8976
  "CreateRoInstanceIp": doCreateRoInstanceIp,
8925
8977
  "CreateAuditPolicy": doCreateAuditPolicy,
8978
+ "DescribeTableColumns": doDescribeTableColumns,
8926
8979
  "DescribeDBInstanceLogToCLS": doDescribeDBInstanceLogToCLS,
8927
8980
  "DescribeDBFeatures": doDescribeDBFeatures,
8928
8981
  "CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
@@ -721,6 +721,13 @@
721
721
  "output": "DescribeSupportedPrivilegesResponse",
722
722
  "status": "online"
723
723
  },
724
+ "DescribeTableColumns": {
725
+ "document": "本接口(DescribeTableColumns)用于查询云数据库实例的指定数据库表的列信息,仅支持主实例和灾备实例。",
726
+ "input": "DescribeTableColumnsRequest",
727
+ "name": "查询云数据库实例的列",
728
+ "output": "DescribeTableColumnsResponse",
729
+ "status": "online"
730
+ },
724
731
  "DescribeTables": {
725
732
  "document": "本接口(DescribeTables)用于查询云数据库实例的数据库表信息,仅支持主实例和灾备实例,不支持只读实例。",
726
733
  "input": "DescribeTablesRequest",
@@ -12772,6 +12779,71 @@
12772
12779
  ],
12773
12780
  "type": "object"
12774
12781
  },
12782
+ "DescribeTableColumnsRequest": {
12783
+ "document": "DescribeTableColumns请求参数结构体",
12784
+ "members": [
12785
+ {
12786
+ "disabled": false,
12787
+ "document": "实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。",
12788
+ "example": "cdb-c1nl9rpv",
12789
+ "member": "string",
12790
+ "name": "InstanceId",
12791
+ "required": true,
12792
+ "type": "string"
12793
+ },
12794
+ {
12795
+ "disabled": false,
12796
+ "document": "数据库名称,可使用[查询数据库](https://cloud.tencent.com/document/api/253/7167)接口获得。",
12797
+ "example": "test_data_base",
12798
+ "member": "string",
12799
+ "name": "Database",
12800
+ "required": true,
12801
+ "type": "string"
12802
+ },
12803
+ {
12804
+ "disabled": false,
12805
+ "document": "数据库中的表的名称。",
12806
+ "example": "test_table",
12807
+ "member": "string",
12808
+ "name": "Table",
12809
+ "required": true,
12810
+ "type": "string"
12811
+ }
12812
+ ],
12813
+ "type": "object"
12814
+ },
12815
+ "DescribeTableColumnsResponse": {
12816
+ "document": "DescribeTableColumns返回参数结构体",
12817
+ "members": [
12818
+ {
12819
+ "disabled": false,
12820
+ "document": "符合查询条件的实例总数。",
12821
+ "example": "10",
12822
+ "member": "int64",
12823
+ "name": "TotalCount",
12824
+ "required": true,
12825
+ "type": "int",
12826
+ "value_allowed_null": false
12827
+ },
12828
+ {
12829
+ "disabled": false,
12830
+ "document": "返回的数据库列信息。",
12831
+ "example": "[ \"TABLE_CATALOG\", \"TABLE_SCHEMA\", ",
12832
+ "member": "string",
12833
+ "name": "Items",
12834
+ "required": true,
12835
+ "type": "list",
12836
+ "value_allowed_null": false
12837
+ },
12838
+ {
12839
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12840
+ "member": "string",
12841
+ "name": "RequestId",
12842
+ "type": "string"
12843
+ }
12844
+ ],
12845
+ "type": "object"
12846
+ },
12775
12847
  "DescribeTablesRequest": {
12776
12848
  "document": "DescribeTables请求参数结构体",
12777
12849
  "members": [
@@ -866,6 +866,14 @@
866
866
  "title": "查询云数据库实例支持的权限信息"
867
867
  }
868
868
  ],
869
+ "DescribeTableColumns": [
870
+ {
871
+ "document": "",
872
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTableColumns\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-c1nl9rpv\",\n \"Table\": \"COLUMNS\",\n \"Database\": \"information_schema\"\n}",
873
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"TotalCount\": 20,\n \"Items\": [\n \"TABLE_CATALOG\",\n \"TABLE_SCHEMA\",\n \"TABLE_NAME\",\n \"COLUMN_NAME\",\n \"ORDINAL_POSITION\",\n \"COLUMN_DEFAULT\",\n \"IS_NULLABLE\",\n \"DATA_TYPE\",\n \"CHARACTER_MAXIMUM_LENGTH\",\n \"CHARACTER_OCTET_LENGTH\",\n \"NUMERIC_PRECISION\",\n \"NUMERIC_SCALE\",\n \"DATETIME_PRECISION\",\n \"CHARACTER_SET_NAME\",\n \"COLLATION_NAME\",\n \"COLUMN_TYPE\",\n \"COLUMN_KEY\",\n \"EXTRA\",\n \"PRIVILEGES\",\n \"COLUMN_COMMENT\"\n ]\n }\n}",
874
+ "title": "查询云数据库实例的列"
875
+ }
876
+ ],
869
877
  "DescribeTables": [
870
878
  {
871
879
  "document": "",
@@ -1238,90 +1238,90 @@
1238
1238
  {
1239
1239
  "disabled": false,
1240
1240
  "document": "设备ID",
1241
- "example": "",
1241
+ "example": "18504",
1242
1242
  "member": "int64",
1243
1243
  "name": "DeviceId",
1244
- "required": true,
1244
+ "output_required": true,
1245
1245
  "type": "int",
1246
1246
  "value_allowed_null": false
1247
1247
  },
1248
1248
  {
1249
1249
  "disabled": false,
1250
1250
  "document": "设备No",
1251
- "example": "",
1251
+ "example": "SNxxx",
1252
1252
  "member": "string",
1253
1253
  "name": "DeviceNo",
1254
- "required": true,
1254
+ "output_required": true,
1255
1255
  "type": "string",
1256
1256
  "value_allowed_null": false
1257
1257
  },
1258
1258
  {
1259
1259
  "disabled": false,
1260
1260
  "document": "设备类型",
1261
- "example": "",
1261
+ "example": "SH12",
1262
1262
  "member": "string",
1263
1263
  "name": "DevClass",
1264
- "required": true,
1264
+ "output_required": true,
1265
1265
  "type": "string",
1266
1266
  "value_allowed_null": false
1267
1267
  },
1268
1268
  {
1269
1269
  "disabled": false,
1270
1270
  "document": "设备总内存,单位GB",
1271
- "example": "",
1271
+ "example": "576",
1272
1272
  "member": "float",
1273
1273
  "name": "MaxMemory",
1274
- "required": true,
1274
+ "output_required": true,
1275
1275
  "type": "float",
1276
1276
  "value_allowed_null": false
1277
1277
  },
1278
1278
  {
1279
1279
  "disabled": false,
1280
1280
  "document": "设备总磁盘,单位GB",
1281
- "example": "",
1281
+ "example": "28000",
1282
1282
  "member": "float",
1283
1283
  "name": "MaxDisk",
1284
- "required": true,
1284
+ "output_required": true,
1285
1285
  "type": "float",
1286
1286
  "value_allowed_null": false
1287
1287
  },
1288
1288
  {
1289
1289
  "disabled": false,
1290
1290
  "document": "设备剩余内存,单位GB",
1291
- "example": "",
1291
+ "example": "216",
1292
1292
  "member": "float",
1293
1293
  "name": "RestMemory",
1294
- "required": true,
1294
+ "output_required": true,
1295
1295
  "type": "float",
1296
1296
  "value_allowed_null": false
1297
1297
  },
1298
1298
  {
1299
1299
  "disabled": false,
1300
1300
  "document": "设备剩余磁盘,单位GB",
1301
- "example": "",
1301
+ "example": "6420",
1302
1302
  "member": "float",
1303
1303
  "name": "RestDisk",
1304
- "required": true,
1304
+ "output_required": true,
1305
1305
  "type": "float",
1306
1306
  "value_allowed_null": false
1307
1307
  },
1308
1308
  {
1309
1309
  "disabled": false,
1310
1310
  "document": "设备机器个数",
1311
- "example": "",
1311
+ "example": "3",
1312
1312
  "member": "uint64",
1313
1313
  "name": "RawDeviceNum",
1314
- "required": true,
1314
+ "output_required": true,
1315
1315
  "type": "int",
1316
1316
  "value_allowed_null": false
1317
1317
  },
1318
1318
  {
1319
1319
  "disabled": false,
1320
1320
  "document": "数据库实例个数",
1321
- "example": "",
1321
+ "example": "31",
1322
1322
  "member": "uint64",
1323
1323
  "name": "InstanceNum",
1324
- "required": true,
1324
+ "output_required": true,
1325
1325
  "type": "int",
1326
1326
  "value_allowed_null": false
1327
1327
  }
@@ -1580,100 +1580,100 @@
1580
1580
  {
1581
1581
  "disabled": false,
1582
1582
  "document": "集群状态,0:运行中,1:不在运行",
1583
- "example": "",
1583
+ "example": "0",
1584
1584
  "member": "int64",
1585
1585
  "name": "Status",
1586
- "required": true,
1586
+ "output_required": true,
1587
1587
  "type": "int",
1588
1588
  "value_allowed_null": false
1589
1589
  },
1590
1590
  {
1591
1591
  "disabled": false,
1592
1592
  "document": "读写集群剩余内存容量,单位GB",
1593
- "example": "",
1593
+ "example": "216",
1594
1594
  "member": "float",
1595
1595
  "name": "ReadWriteTotalLeaveMemory",
1596
- "required": true,
1596
+ "output_required": true,
1597
1597
  "type": "float",
1598
1598
  "value_allowed_null": false
1599
1599
  },
1600
1600
  {
1601
1601
  "disabled": false,
1602
1602
  "document": "读写集群剩余磁盘容量,单位GB",
1603
- "example": "",
1603
+ "example": "6420",
1604
1604
  "member": "float",
1605
1605
  "name": "ReadWriteTotalLeaveDisk",
1606
- "required": true,
1606
+ "output_required": true,
1607
1607
  "type": "float",
1608
1608
  "value_allowed_null": false
1609
1609
  },
1610
1610
  {
1611
1611
  "disabled": false,
1612
1612
  "document": "读写集群总内存容量,单位GB",
1613
- "example": "",
1613
+ "example": "576",
1614
1614
  "member": "float",
1615
1615
  "name": "ReadWriteTotalMemory",
1616
- "required": true,
1616
+ "output_required": true,
1617
1617
  "type": "float",
1618
1618
  "value_allowed_null": false
1619
1619
  },
1620
1620
  {
1621
1621
  "disabled": false,
1622
1622
  "document": "读写集群总磁盘容量,单位GB",
1623
- "example": "",
1623
+ "example": "28000",
1624
1624
  "member": "float",
1625
1625
  "name": "ReadWriteTotalDisk",
1626
- "required": true,
1626
+ "output_required": true,
1627
1627
  "type": "float",
1628
1628
  "value_allowed_null": false
1629
1629
  },
1630
1630
  {
1631
1631
  "disabled": false,
1632
1632
  "document": "只读集群剩余内存容量,单位GB",
1633
- "example": "",
1633
+ "example": "0",
1634
1634
  "member": "float",
1635
1635
  "name": "ReadOnlyTotalLeaveMemory",
1636
- "required": true,
1636
+ "output_required": true,
1637
1637
  "type": "float",
1638
1638
  "value_allowed_null": false
1639
1639
  },
1640
1640
  {
1641
1641
  "disabled": false,
1642
1642
  "document": "只读集群剩余磁盘容量,单位GB",
1643
- "example": "",
1643
+ "example": "0",
1644
1644
  "member": "float",
1645
1645
  "name": "ReadOnlyTotalLeaveDisk",
1646
- "required": true,
1646
+ "output_required": true,
1647
1647
  "type": "float",
1648
1648
  "value_allowed_null": false
1649
1649
  },
1650
1650
  {
1651
1651
  "disabled": false,
1652
1652
  "document": "只读集群总内存容量,单位GB",
1653
- "example": "",
1653
+ "example": "0",
1654
1654
  "member": "float",
1655
1655
  "name": "ReadOnlyTotalMemory",
1656
- "required": true,
1656
+ "output_required": true,
1657
1657
  "type": "float",
1658
1658
  "value_allowed_null": false
1659
1659
  },
1660
1660
  {
1661
1661
  "disabled": false,
1662
1662
  "document": "只读集群总磁盘容量,单位GB",
1663
- "example": "",
1663
+ "example": "0",
1664
1664
  "member": "float",
1665
1665
  "name": "ReadOnlyTotalDisk",
1666
- "required": true,
1666
+ "output_required": true,
1667
1667
  "type": "float",
1668
1668
  "value_allowed_null": false
1669
1669
  },
1670
1670
  {
1671
1671
  "disabled": false,
1672
1672
  "document": "集群设备详情",
1673
- "example": "",
1673
+ "example": "见InstanceDeviceInfo数据结构",
1674
1674
  "member": "InstanceDeviceInfo",
1675
1675
  "name": "InstanceDeviceInfos",
1676
- "required": true,
1676
+ "output_required": true,
1677
1677
  "type": "list",
1678
1678
  "value_allowed_null": false
1679
1679
  }
@@ -1686,40 +1686,40 @@
1686
1686
  {
1687
1687
  "disabled": false,
1688
1688
  "document": "集群ID\n注意:此字段可能返回 null,表示取不到有效值。",
1689
- "example": "",
1689
+ "example": "cage-gz-3-7",
1690
1690
  "member": "string",
1691
1691
  "name": "InstanceId",
1692
- "required": true,
1692
+ "output_required": true,
1693
1693
  "type": "string",
1694
1694
  "value_allowed_null": true
1695
1695
  },
1696
1696
  {
1697
1697
  "disabled": false,
1698
1698
  "document": "读写设备组\n注意:此字段可能返回 null,表示取不到有效值。",
1699
- "example": "",
1699
+ "example": "详见DeviceInfo",
1700
1700
  "member": "DeviceInfo",
1701
1701
  "name": "ReadWriteDevice",
1702
- "required": true,
1702
+ "output_required": true,
1703
1703
  "type": "list",
1704
1704
  "value_allowed_null": true
1705
1705
  },
1706
1706
  {
1707
1707
  "disabled": false,
1708
1708
  "document": "只读设备组\n注意:此字段可能返回 null,表示取不到有效值。",
1709
- "example": "",
1709
+ "example": "详见DeviceInfo",
1710
1710
  "member": "DeviceInfo",
1711
1711
  "name": "ReadOnlyDevice",
1712
- "required": true,
1712
+ "output_required": true,
1713
1713
  "type": "list",
1714
1714
  "value_allowed_null": true
1715
1715
  },
1716
1716
  {
1717
1717
  "disabled": false,
1718
1718
  "document": "空闲设备组\n注意:此字段可能返回 null,表示取不到有效值。",
1719
- "example": "",
1719
+ "example": "详见DeviceInfo",
1720
1720
  "member": "DeviceInfo",
1721
1721
  "name": "FreeDevice",
1722
- "required": true,
1722
+ "output_required": true,
1723
1723
  "type": "list",
1724
1724
  "value_allowed_null": true
1725
1725
  }
@@ -1732,130 +1732,130 @@
1732
1732
  {
1733
1733
  "disabled": false,
1734
1734
  "document": "集群ID",
1735
- "example": "",
1735
+ "example": "dbdc-dcdjhdzk",
1736
1736
  "member": "string",
1737
1737
  "name": "InstanceId",
1738
- "required": true,
1738
+ "output_required": true,
1739
1739
  "type": "string",
1740
1740
  "value_allowed_null": false
1741
1741
  },
1742
1742
  {
1743
1743
  "disabled": false,
1744
1744
  "document": "集群名称",
1745
- "example": "",
1745
+ "example": "exclusivetest",
1746
1746
  "member": "string",
1747
1747
  "name": "InstanceName",
1748
- "required": true,
1748
+ "output_required": true,
1749
1749
  "type": "string",
1750
1750
  "value_allowed_null": false
1751
1751
  },
1752
1752
  {
1753
1753
  "disabled": false,
1754
1754
  "document": "用户ID",
1755
- "example": "",
1755
+ "example": "1270047691",
1756
1756
  "member": "uint64",
1757
1757
  "name": "AppId",
1758
- "required": true,
1758
+ "output_required": true,
1759
1759
  "type": "int",
1760
1760
  "value_allowed_null": false
1761
1761
  },
1762
1762
  {
1763
1763
  "disabled": false,
1764
1764
  "document": "地域",
1765
- "example": "",
1765
+ "example": "ap-guangzhou",
1766
1766
  "member": "string",
1767
1767
  "name": "Region",
1768
- "required": true,
1768
+ "output_required": true,
1769
1769
  "type": "string",
1770
1770
  "value_allowed_null": false
1771
1771
  },
1772
1772
  {
1773
1773
  "disabled": false,
1774
1774
  "document": "可用区",
1775
- "example": "",
1775
+ "example": "ap-guangzhou-1",
1776
1776
  "member": "string",
1777
1777
  "name": "Zone",
1778
- "required": true,
1778
+ "output_required": true,
1779
1779
  "type": "string",
1780
1780
  "value_allowed_null": false
1781
1781
  },
1782
1782
  {
1783
1783
  "disabled": false,
1784
1784
  "document": "集群类型: 0:一主一备,1:一主两备",
1785
- "example": "",
1785
+ "example": "1",
1786
1786
  "member": "int64",
1787
1787
  "name": "InstanceType",
1788
- "required": true,
1788
+ "output_required": true,
1789
1789
  "type": "int",
1790
1790
  "value_allowed_null": false
1791
1791
  },
1792
1792
  {
1793
1793
  "disabled": false,
1794
1794
  "document": "集群状态: 0 集群创建中, 1 集群有效, 2 集群扩容中, 3 集群删除中, 4 集群缩容中 -1 集群已隔离 -2 集群已删除",
1795
- "example": "",
1795
+ "example": "1",
1796
1796
  "member": "int64",
1797
1797
  "name": "InstanceStatus",
1798
- "required": true,
1798
+ "output_required": true,
1799
1799
  "type": "int",
1800
1800
  "value_allowed_null": false
1801
1801
  },
1802
1802
  {
1803
1803
  "disabled": false,
1804
1804
  "document": "创建时间",
1805
- "example": "",
1805
+ "example": "2021-02-25T16:08:47+08:00",
1806
1806
  "member": "string",
1807
1807
  "name": "CreateTime",
1808
- "required": true,
1808
+ "output_required": true,
1809
1809
  "type": "string",
1810
1810
  "value_allowed_null": false
1811
1811
  },
1812
1812
  {
1813
1813
  "disabled": false,
1814
1814
  "document": "实例自动续费标识: 0正常续费 1自动续费 2到期不续费",
1815
- "example": "",
1815
+ "example": "1",
1816
1816
  "member": "int64",
1817
1817
  "name": "AutoRenewFlag",
1818
- "required": true,
1818
+ "output_required": true,
1819
1819
  "type": "int",
1820
1820
  "value_allowed_null": false
1821
1821
  },
1822
1822
  {
1823
1823
  "disabled": false,
1824
1824
  "document": "机型",
1825
- "example": "",
1825
+ "example": "SH12",
1826
1826
  "member": "string",
1827
1827
  "name": "Machine",
1828
- "required": true,
1828
+ "output_required": true,
1829
1829
  "type": "string",
1830
1830
  "value_allowed_null": false
1831
1831
  },
1832
1832
  {
1833
1833
  "disabled": false,
1834
1834
  "document": "过期时间",
1835
- "example": "",
1835
+ "example": "2021-09-25T16:08:47+08:00",
1836
1836
  "member": "string",
1837
1837
  "name": "PeriodEndTime",
1838
- "required": true,
1838
+ "output_required": true,
1839
1839
  "type": "string",
1840
1840
  "value_allowed_null": false
1841
1841
  },
1842
1842
  {
1843
1843
  "disabled": false,
1844
1844
  "document": "集群信息",
1845
- "example": "",
1845
+ "example": "详见InstanceDetail",
1846
1846
  "member": "InstanceDetail",
1847
1847
  "name": "InstanceDetail",
1848
- "required": true,
1848
+ "output_required": true,
1849
1849
  "type": "object",
1850
1850
  "value_allowed_null": false
1851
1851
  },
1852
1852
  {
1853
1853
  "disabled": false,
1854
1854
  "document": "计费侧的产品ID",
1855
- "example": "",
1855
+ "example": "10875",
1856
1856
  "member": "int64",
1857
1857
  "name": "Pid",
1858
- "required": true,
1858
+ "output_required": true,
1859
1859
  "type": "int",
1860
1860
  "value_allowed_null": false
1861
1861
  }
@@ -1412,7 +1412,7 @@
1412
1412
  {
1413
1413
  "disabled": false,
1414
1414
  "document": "安全组id",
1415
- "example": "",
1415
+ "example": "sg-9tfjckm6",
1416
1416
  "member": "string",
1417
1417
  "name": "SecurityGroupId",
1418
1418
  "required": false,
@@ -6072,7 +6072,7 @@
6072
6072
  "example": "无",
6073
6073
  "member": "Database",
6074
6074
  "name": "Databases",
6075
- "required": true,
6075
+ "output_required": true,
6076
6076
  "type": "list",
6077
6077
  "value_allowed_null": false
6078
6078
  },
@@ -6082,7 +6082,7 @@
6082
6082
  "example": "dcdbt-52s53yyh",
6083
6083
  "member": "string",
6084
6084
  "name": "InstanceId",
6085
- "required": true,
6085
+ "output_required": true,
6086
6086
  "type": "string",
6087
6087
  "value_allowed_null": false
6088
6088
  },
@@ -314,7 +314,7 @@
314
314
  {
315
315
  "document": "",
316
316
  "input": "https://dcdb.tencentcloudapi.com/?Action=DescribeDatabases\n&InstanceId=dcdbt-52s53yyh\n&<公共请求参数>",
317
- "output": "{\n \"Response\": {\n \"RequestId\": \"d0f51893-e15f-44ac-be6d-900450a6b8c2\",\n \"InstanceId\": \"dcdbt-52s53yyh\",\n \"Databases\": [\n {\n \"DbName\": \"information_schema\"\n },\n {\n \"DbName\": \"mysql\"\n },\n {\n \"DbName\": \"performance_schema\"\n },\n {\n \"DbName\": \"test\"\n }\n ]\n }\n}",
317
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d0f51893-e15f-44ac-be6d-900450a6b8c2\",\n \"InstanceId\": \"dcdbt-52s53yyh\",\n \"Databases\": [\n {\n \"DbName\": \"information_schema\"\n },\n {\n \"DbName\": \"mysql\"\n },\n {\n \"DbName\": \"performance_schema\"\n },\n {\n \"DbName\": \"product_db\"\n }\n ]\n }\n}",
318
318
  "title": "查询云数据库实例上的数据库列表"
319
319
  }
320
320
  ],