tencentcloud-sdk-nodejs-cynosdb 4.0.623 → 4.0.624

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.
@@ -24,6 +24,75 @@ export interface ModifyClusterNameRequest {
24
24
  */
25
25
  ClusterName: string;
26
26
  }
27
+ /**
28
+ * ModifyProxyRwSplit请求参数结构体
29
+ */
30
+ export interface ModifyProxyRwSplitRequest {
31
+ /**
32
+ * 集群ID
33
+ */
34
+ ClusterId: string;
35
+ /**
36
+ * 数据库代理组ID
37
+ */
38
+ ProxyGroupId: string;
39
+ /**
40
+ * 一致性类型;“eventual"-最终一致性, "session"-会话一致性, "global"-全局一致性
41
+ */
42
+ ConsistencyType?: string;
43
+ /**
44
+ * 一致性超时时间
45
+ */
46
+ ConsistencyTimeOut?: string;
47
+ /**
48
+ * 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
49
+ */
50
+ WeightMode?: string;
51
+ /**
52
+ * 实例只读权重
53
+ */
54
+ InstanceWeights?: Array<ProxyInstanceWeight>;
55
+ /**
56
+ * 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
57
+ */
58
+ FailOver?: string;
59
+ /**
60
+ * 是否自动添加只读实例,取值:"yes" , "no"
61
+ */
62
+ AutoAddRo?: string;
63
+ /**
64
+ * 是否打开读写分离
65
+ */
66
+ OpenRw?: string;
67
+ /**
68
+ * 读写类型:
69
+ READWRITE,READONLY
70
+ */
71
+ RwType?: string;
72
+ /**
73
+ * 事务拆分
74
+ */
75
+ TransSplit?: boolean;
76
+ /**
77
+ * 连接模式:
78
+ nearby,balance
79
+ */
80
+ AccessMode?: string;
81
+ /**
82
+ * 是否打开连接池:
83
+ yes,no
84
+ */
85
+ OpenConnectionPool?: string;
86
+ /**
87
+ * 连接池类型:
88
+ SessionConnectionPool
89
+ */
90
+ ConnectionPoolType?: string;
91
+ /**
92
+ * 连接池时间
93
+ */
94
+ ConnectionPoolTimeOut?: number;
95
+ }
27
96
  /**
28
97
  * DescribeRollbackTimeRange请求参数结构体
29
98
  */
@@ -100,6 +169,19 @@ export interface InstanceAuditRule {
100
169
  */
101
170
  AuditRuleFilters: Array<AuditRuleFilters>;
102
171
  }
172
+ /**
173
+ * 数据库代理,读写分离实例权重
174
+ */
175
+ export interface ProxyInstanceWeight {
176
+ /**
177
+ * 实例Id
178
+ */
179
+ InstanceId: string;
180
+ /**
181
+ * 实例权重
182
+ */
183
+ Weight: number;
184
+ }
103
185
  /**
104
186
  * CreateResourcePackage请求参数结构体
105
187
  */
@@ -303,6 +385,39 @@ export interface BillingResourceInfo {
303
385
  */
304
386
  DealName: string;
305
387
  }
388
+ /**
389
+ * DescribeProxies请求参数结构体
390
+ */
391
+ export interface DescribeProxiesRequest {
392
+ /**
393
+ * 集群ID
394
+ */
395
+ ClusterId?: string;
396
+ /**
397
+ * 返回数量,默认为 20,最大值为 100
398
+ */
399
+ Limit?: number;
400
+ /**
401
+ * 记录偏移量,默认值为0
402
+ */
403
+ Offset?: number;
404
+ /**
405
+ * 排序字段,取值范围:
406
+ <li> CREATETIME:创建时间</li>
407
+ <li> PERIODENDTIME:过期时间</li>
408
+ */
409
+ OrderBy?: string;
410
+ /**
411
+ * 排序类型,取值范围:
412
+ <li> ASC:升序排序 </li>
413
+ <li> DESC:降序排序 </li>
414
+ */
415
+ OrderByType?: string;
416
+ /**
417
+ * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
418
+ */
419
+ Filters?: Array<QueryParamFilter>;
420
+ }
306
421
  /**
307
422
  * ModifyClusterPasswordComplexity返回参数结构体
308
423
  */
@@ -413,6 +528,26 @@ export interface SwitchClusterZoneResponse {
413
528
  */
414
529
  RequestId?: string;
415
530
  }
531
+ /**
532
+ * 数据库代理连接池信息
533
+ */
534
+ export interface ProxyConnectionPoolInfo {
535
+ /**
536
+ * 连接池保持阈值:单位(秒)
537
+ 注意:此字段可能返回 null,表示取不到有效值。
538
+ */
539
+ ConnectionPoolTimeOut: number;
540
+ /**
541
+ * 是否开启了连接池
542
+ 注意:此字段可能返回 null,表示取不到有效值。
543
+ */
544
+ OpenConnectionPool?: string;
545
+ /**
546
+ * 连接池类型:SessionConnectionPool(会话级别连接池
547
+ 注意:此字段可能返回 null,表示取不到有效值。
548
+ */
549
+ ConnectionPoolType?: string;
550
+ }
416
551
  /**
417
552
  * DescribeResourcePackageDetail返回参数结构体
418
553
  */
@@ -919,17 +1054,50 @@ export interface CopyClusterPasswordComplexityResponse {
919
1054
  RequestId?: string;
920
1055
  }
921
1056
  /**
922
- * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
1057
+ * UpgradeProxyVersion请求参数结构体
923
1058
  */
924
- export interface Tag {
1059
+ export interface UpgradeProxyVersionRequest {
925
1060
  /**
926
- * 标签键
1061
+ * 集群ID
927
1062
  */
928
- TagKey: string;
1063
+ ClusterId: string;
929
1064
  /**
930
- * 标签值
1065
+ * 数据库代理当前版本
931
1066
  */
932
- TagValue: string;
1067
+ SrcProxyVersion: string;
1068
+ /**
1069
+ * 数据库代理升级版本
1070
+ */
1071
+ DstProxyVersion: string;
1072
+ /**
1073
+ * 数据库代理组ID
1074
+ */
1075
+ ProxyGroupId?: string;
1076
+ /**
1077
+ * 升级时间 :no(升级完成时)yes(实例维护时间)
1078
+ */
1079
+ IsInMaintainPeriod?: string;
1080
+ }
1081
+ /**
1082
+ * SwitchClusterVpc请求参数结构体
1083
+ */
1084
+ export interface SwitchClusterVpcRequest {
1085
+ /**
1086
+ * 集群ID
1087
+ */
1088
+ ClusterId: string;
1089
+ /**
1090
+ * 字符串vpc id
1091
+ */
1092
+ UniqVpcId: string;
1093
+ /**
1094
+ * 字符串子网id
1095
+ */
1096
+ UniqSubnetId: string;
1097
+ /**
1098
+ * 旧地址回收时间
1099
+ */
1100
+ OldIpReserveHours: number;
933
1101
  }
934
1102
  /**
935
1103
  * DescribeAuditLogs返回参数结构体
@@ -967,28 +1135,27 @@ export interface DescribeInstanceParamsRequest {
967
1135
  ParamKeyword?: string;
968
1136
  }
969
1137
  /**
970
- * SearchClusterTables请求参数结构体
1138
+ * DescribeProxies返回参数结构体
971
1139
  */
972
- export interface SearchClusterTablesRequest {
1140
+ export interface DescribeProxiesResponse {
973
1141
  /**
974
- * 集群id
1142
+ * 数据库代理组数
975
1143
  */
976
- ClusterId: string;
1144
+ TotalCount?: number;
977
1145
  /**
978
- * 数据库名
1146
+ * 数据库代理组列表
1147
+ 注意:此字段可能返回 null,表示取不到有效值。
979
1148
  */
980
- Database?: string;
1149
+ ProxyGroupInfos?: Array<ProxyGroupInfo>;
981
1150
  /**
982
- * 数据表名
1151
+ * 数据库代理节点
1152
+ 注意:此字段可能返回 null,表示取不到有效值。
983
1153
  */
984
- Table?: string;
1154
+ ProxyNodeInfos?: Array<ProxyNodeInfo>;
985
1155
  /**
986
- * 数据表类型:
987
- view:只返回 view,
988
- base_table: 只返回基本表,
989
- all:返回 view 和表
1156
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
990
1157
  */
991
- TableType?: string;
1158
+ RequestId?: string;
992
1159
  }
993
1160
  /**
994
1161
  * ModifyResourcePackageClusters请求参数结构体
@@ -1103,6 +1270,34 @@ export interface SetRenewFlagResponse {
1103
1270
  */
1104
1271
  RequestId?: string;
1105
1272
  }
1273
+ /**
1274
+ * DescribeResourcePackageSaleSpec请求参数结构体
1275
+ */
1276
+ export interface DescribeResourcePackageSaleSpecRequest {
1277
+ /**
1278
+ * 实例类型
1279
+ */
1280
+ InstanceType: string;
1281
+ /**
1282
+ * 资源包使用地域
1283
+ china-中国内地通用,overseas-港澳台及海外通用
1284
+ */
1285
+ PackageRegion: string;
1286
+ /**
1287
+ * 资源包类型
1288
+ CCU-计算资源包
1289
+ DISK-存储资源包
1290
+ */
1291
+ PackageType: string;
1292
+ /**
1293
+ * 偏移量
1294
+ */
1295
+ Offset?: number;
1296
+ /**
1297
+ * 限制
1298
+ */
1299
+ Limit?: number;
1300
+ }
1106
1301
  /**
1107
1302
  * ExportInstanceErrorLogs请求参数结构体
1108
1303
  */
@@ -1148,6 +1343,20 @@ export interface ExportInstanceErrorLogsRequest {
1148
1343
  */
1149
1344
  OrderByType?: string;
1150
1345
  }
1346
+ /**
1347
+ * SearchClusterTables返回参数结构体
1348
+ */
1349
+ export interface SearchClusterTablesResponse {
1350
+ /**
1351
+ * 数据表列表
1352
+ 注意:此字段可能返回 null,表示取不到有效值。
1353
+ */
1354
+ Tables: Array<DatabaseTables>;
1355
+ /**
1356
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1357
+ */
1358
+ RequestId?: string;
1359
+ }
1151
1360
  /**
1152
1361
  * DescribeBackupConfig返回参数结构体
1153
1362
  */
@@ -1395,6 +1604,50 @@ export interface DatabaseTables {
1395
1604
  */
1396
1605
  Tables?: Array<string>;
1397
1606
  }
1607
+ /**
1608
+ * proxy组
1609
+ */
1610
+ export interface ProxyGroup {
1611
+ /**
1612
+ * 数据库代理组ID
1613
+ */
1614
+ ProxyGroupId: string;
1615
+ /**
1616
+ * 数据库代理组节点个数
1617
+ */
1618
+ ProxyNodeCount: number;
1619
+ /**
1620
+ * 数据库代理组状态
1621
+ */
1622
+ Status: string;
1623
+ /**
1624
+ * 地域
1625
+ */
1626
+ Region: string;
1627
+ /**
1628
+ * 可用区
1629
+ */
1630
+ Zone: string;
1631
+ /**
1632
+ * 当前代理版本
1633
+ */
1634
+ CurrentProxyVersion: string;
1635
+ /**
1636
+ * 集群ID
1637
+ 注意:此字段可能返回 null,表示取不到有效值。
1638
+ */
1639
+ ClusterId: string;
1640
+ /**
1641
+ * 用户AppId
1642
+ 注意:此字段可能返回 null,表示取不到有效值。
1643
+ */
1644
+ AppId: number;
1645
+ /**
1646
+ * 读写节点开通数据库代理
1647
+ 注意:此字段可能返回 null,表示取不到有效值。
1648
+ */
1649
+ OpenRw: string;
1650
+ }
1398
1651
  /**
1399
1652
  * AddClusterSlaveZone请求参数结构体
1400
1653
  */
@@ -1559,6 +1812,23 @@ export interface DescribeClustersRequest {
1559
1812
  */
1560
1813
  Filters?: Array<QueryFilter>;
1561
1814
  }
1815
+ /**
1816
+ * 修改参数时,传入参数描述
1817
+ */
1818
+ export interface ParamItem {
1819
+ /**
1820
+ * 参数名称
1821
+ */
1822
+ ParamName: string;
1823
+ /**
1824
+ * 当前值
1825
+ */
1826
+ CurrentValue: string;
1827
+ /**
1828
+ * 原有值
1829
+ */
1830
+ OldValue: string;
1831
+ }
1562
1832
  /**
1563
1833
  * ModifyClusterStorage返回参数结构体
1564
1834
  */
@@ -1857,6 +2127,19 @@ export interface InstanceParamItem {
1857
2127
  */
1858
2128
  ParamsItems: Array<ParamItemDetail>;
1859
2129
  }
2130
+ /**
2131
+ * ReloadBalanceProxyNode请求参数结构体
2132
+ */
2133
+ export interface ReloadBalanceProxyNodeRequest {
2134
+ /**
2135
+ * 集群ID
2136
+ */
2137
+ ClusterId: string;
2138
+ /**
2139
+ * 数据库代理组ID
2140
+ */
2141
+ ProxyGroupId: string;
2142
+ }
1860
2143
  /**
1861
2144
  * DescribeInstanceDetail请求参数结构体
1862
2145
  */
@@ -1866,6 +2149,19 @@ export interface DescribeInstanceDetailRequest {
1866
2149
  */
1867
2150
  InstanceId: string;
1868
2151
  }
2152
+ /**
2153
+ * proxy节点可用区内个数
2154
+ */
2155
+ export interface ProxyZone {
2156
+ /**
2157
+ * proxy节点可用区
2158
+ */
2159
+ ProxyNodeZone?: string;
2160
+ /**
2161
+ * proxy节点数量
2162
+ */
2163
+ ProxyNodeCount?: number;
2164
+ }
1869
2165
  /**
1870
2166
  * 集群支持的功能
1871
2167
  */
@@ -2044,6 +2340,30 @@ export interface DescribeClusterDetailRequest {
2044
2340
  */
2045
2341
  ClusterId: string;
2046
2342
  }
2343
+ /**
2344
+ * SearchClusterTables请求参数结构体
2345
+ */
2346
+ export interface SearchClusterTablesRequest {
2347
+ /**
2348
+ * 集群id
2349
+ */
2350
+ ClusterId: string;
2351
+ /**
2352
+ * 数据库名
2353
+ */
2354
+ Database?: string;
2355
+ /**
2356
+ * 数据表名
2357
+ */
2358
+ Table?: string;
2359
+ /**
2360
+ * 数据表类型:
2361
+ view:只返回 view,
2362
+ base_table: 只返回基本表,
2363
+ all:返回 view 和表
2364
+ */
2365
+ TableType?: string;
2366
+ }
2047
2367
  /**
2048
2368
  * DeleteBackup返回参数结构体
2049
2369
  */
@@ -2221,9 +2541,35 @@ export interface ParamDetail {
2221
2541
  ModifiableInfo: ModifiableInfo;
2222
2542
  }
2223
2543
  /**
2224
- * DeleteAccounts返回参数结构体
2544
+ * DescribeAuditRuleWithInstanceIds返回参数结构体
2225
2545
  */
2226
- export interface DeleteAccountsResponse {
2546
+ export interface DescribeAuditRuleWithInstanceIdsResponse {
2547
+ /**
2548
+ * 无
2549
+ */
2550
+ TotalCount: number;
2551
+ /**
2552
+ * 实例审计规则信息。
2553
+ 注意:此字段可能返回 null,表示取不到有效值。
2554
+ */
2555
+ Items: Array<InstanceAuditRule>;
2556
+ /**
2557
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2558
+ */
2559
+ RequestId?: string;
2560
+ }
2561
+ /**
2562
+ * UpgradeProxyVersion返回参数结构体
2563
+ */
2564
+ export interface UpgradeProxyVersionResponse {
2565
+ /**
2566
+ * 异步流程ID
2567
+ */
2568
+ FlowId?: number;
2569
+ /**
2570
+ * 异步任务id
2571
+ */
2572
+ TaskId?: number;
2227
2573
  /**
2228
2574
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2229
2575
  */
@@ -2336,6 +2682,43 @@ export interface TablePrivileges {
2336
2682
  */
2337
2683
  Privileges: Array<string>;
2338
2684
  }
2685
+ /**
2686
+ * UpgradeProxy请求参数结构体
2687
+ */
2688
+ export interface UpgradeProxyRequest {
2689
+ /**
2690
+ * 集群ID
2691
+ */
2692
+ ClusterId: string;
2693
+ /**
2694
+ * cpu核数
2695
+ */
2696
+ Cpu: number;
2697
+ /**
2698
+ * 内存
2699
+ */
2700
+ Mem: number;
2701
+ /**
2702
+ * 数据库代理组节点个数
2703
+ */
2704
+ ProxyCount?: number;
2705
+ /**
2706
+ * 数据库代理组ID(已废弃)
2707
+ */
2708
+ ProxyGroupId?: string;
2709
+ /**
2710
+ * 重新负载均衡:auto(自动),manual(手动)
2711
+ */
2712
+ ReloadBalance?: string;
2713
+ /**
2714
+ * 升级时间 :no(升级完成时)yes(实例维护时间)
2715
+ */
2716
+ IsInMaintainPeriod?: string;
2717
+ /**
2718
+ * 数据库代理节点信息
2719
+ */
2720
+ ProxyZones?: Array<ProxyZone>;
2721
+ }
2339
2722
  /**
2340
2723
  * DescribeClusterDetailDatabases请求参数结构体
2341
2724
  */
@@ -2391,18 +2774,9 @@ export interface BindInstanceInfo {
2391
2774
  InstanceType?: string;
2392
2775
  }
2393
2776
  /**
2394
- * DescribeAuditRuleWithInstanceIds返回参数结构体
2777
+ * DeleteAccounts返回参数结构体
2395
2778
  */
2396
- export interface DescribeAuditRuleWithInstanceIdsResponse {
2397
- /**
2398
- * 无
2399
- */
2400
- TotalCount: number;
2401
- /**
2402
- * 实例审计规则信息。
2403
- 注意:此字段可能返回 null,表示取不到有效值。
2404
- */
2405
- Items: Array<InstanceAuditRule>;
2779
+ export interface DeleteAccountsResponse {
2406
2780
  /**
2407
2781
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2408
2782
  */
@@ -2476,44 +2850,30 @@ export interface DescribeBackupListRequest {
2476
2850
  SnapshotIdList?: Array<number>;
2477
2851
  }
2478
2852
  /**
2479
- * SearchClusterDatabases请求参数结构体
2853
+ * CloseProxy请求参数结构体
2480
2854
  */
2481
- export interface SearchClusterDatabasesRequest {
2855
+ export interface CloseProxyRequest {
2482
2856
  /**
2483
- * 集群id
2857
+ * 集群ID
2484
2858
  */
2485
2859
  ClusterId: string;
2486
2860
  /**
2487
- * 数据库名
2861
+ * 数据库代理组ID
2488
2862
  */
2489
- Database?: string;
2863
+ ProxyGroupId?: string;
2490
2864
  /**
2491
- * 是否精确搜索。
2492
- 0: 模糊搜索 1:精确搜索
2493
- 默认为0
2865
+ * 是否只关闭读写分离,取值:是 "true","false"
2494
2866
  */
2495
- MatchType?: number;
2867
+ OnlyCloseRW?: boolean;
2496
2868
  }
2497
2869
  /**
2498
- * SwitchClusterVpc请求参数结构体
2870
+ * ModifyProxyDesc返回参数结构体
2499
2871
  */
2500
- export interface SwitchClusterVpcRequest {
2501
- /**
2502
- * 集群ID
2503
- */
2504
- ClusterId: string;
2872
+ export interface ModifyProxyDescResponse {
2505
2873
  /**
2506
- * 字符串vpc id
2507
- */
2508
- UniqVpcId: string;
2509
- /**
2510
- * 字符串子网id
2511
- */
2512
- UniqSubnetId: string;
2513
- /**
2514
- * 旧地址回收时间
2874
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2515
2875
  */
2516
- OldIpReserveHours: number;
2876
+ RequestId?: string;
2517
2877
  }
2518
2878
  /**
2519
2879
  * CreateResourcePackage返回参数结构体
@@ -2756,6 +3116,25 @@ export interface CynosdbInstance {
2756
3116
  */
2757
3117
  ResourcePackages?: Array<ResourcePackage>;
2758
3118
  }
3119
+ /**
3120
+ * SearchClusterDatabases请求参数结构体
3121
+ */
3122
+ export interface SearchClusterDatabasesRequest {
3123
+ /**
3124
+ * 集群id
3125
+ */
3126
+ ClusterId: string;
3127
+ /**
3128
+ * 数据库名
3129
+ */
3130
+ Database?: string;
3131
+ /**
3132
+ * 是否精确搜索。
3133
+ 0: 模糊搜索 1:精确搜索
3134
+ 默认为0
3135
+ */
3136
+ MatchType?: number;
3137
+ }
2759
3138
  /**
2760
3139
  * DescribeClusterPasswordComplexity返回参数结构体
2761
3140
  */
@@ -2954,6 +3333,23 @@ export interface BinlogItem {
2954
3333
  */
2955
3334
  BinlogId: number;
2956
3335
  }
3336
+ /**
3337
+ * ModifyProxyDesc请求参数结构体
3338
+ */
3339
+ export interface ModifyProxyDescRequest {
3340
+ /**
3341
+ * 集群ID
3342
+ */
3343
+ ClusterId: string;
3344
+ /**
3345
+ * 数据库代理组ID
3346
+ */
3347
+ ProxyGroupId: string;
3348
+ /**
3349
+ * 数据库代理描述
3350
+ */
3351
+ Description: string;
3352
+ }
2957
3353
  /**
2958
3354
  * 修改的实例参数信息
2959
3355
  */
@@ -3204,6 +3600,52 @@ export interface RollbackTableInfo {
3204
3600
  */
3205
3601
  NewTable: string;
3206
3602
  }
3603
+ /**
3604
+ * 数据库代理组读写分离信息
3605
+ */
3606
+ export interface ProxyGroupRwInfo {
3607
+ /**
3608
+ * 一致性类型 eventual-最终一致性,global-全局一致性,session-会话一致性
3609
+ */
3610
+ ConsistencyType?: string;
3611
+ /**
3612
+ * 一致性超时时间
3613
+ */
3614
+ ConsistencyTimeOut?: number;
3615
+ /**
3616
+ * 权重模式 system-系统分配,custom-自定义
3617
+ */
3618
+ WeightMode?: string;
3619
+ /**
3620
+ * 是否开启故障转移
3621
+ */
3622
+ FailOver?: string;
3623
+ /**
3624
+ * 是否自动添加只读实例,yes-是,no-不自动添加
3625
+ */
3626
+ AutoAddRo?: string;
3627
+ /**
3628
+ * 实例权重数组
3629
+ */
3630
+ InstanceWeights?: Array<ProxyInstanceWeight>;
3631
+ /**
3632
+ * 是否开通读写节点,yse-是,no-否
3633
+ 注意:此字段可能返回 null,表示取不到有效值。
3634
+ */
3635
+ OpenRw?: string;
3636
+ /**
3637
+ * 读写属性,可选值:READWRITE,READONLY
3638
+ */
3639
+ RwType?: string;
3640
+ /**
3641
+ * 事务拆分
3642
+ */
3643
+ TransSplit?: boolean;
3644
+ /**
3645
+ * 连接模式,可选值:balance,nearby
3646
+ */
3647
+ AccessMode?: string;
3648
+ }
3207
3649
  /**
3208
3650
  * DescribeClusters返回参数结构体
3209
3651
  */
@@ -3598,29 +4040,21 @@ export interface BindClusterResourcePackagesResponse {
3598
4040
  RequestId?: string;
3599
4041
  }
3600
4042
  /**
3601
- * SwitchProxyVpc请求参数结构体
4043
+ * 查询参数过滤器
3602
4044
  */
3603
- export interface SwitchProxyVpcRequest {
4045
+ export interface QueryParamFilter {
3604
4046
  /**
3605
- * 集群ID
3606
- */
3607
- ClusterId: string;
3608
- /**
3609
- * 字符串vpc id
3610
- */
3611
- UniqVpcId: string;
3612
- /**
3613
- * 字符串子网id
4047
+ * 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
3614
4048
  */
3615
- UniqSubnetId: string;
4049
+ Names: Array<string>;
3616
4050
  /**
3617
- * 旧地址回收时间
4051
+ * 搜索字符串
3618
4052
  */
3619
- OldIpReserveHours: number;
4053
+ Values: Array<string>;
3620
4054
  /**
3621
- * 数据库代理组Id(该参数为必填项,可以通过DescribeProxies接口获得)
4055
+ * 是否精确匹配
3622
4056
  */
3623
- ProxyGroupId?: string;
4057
+ ExactMatch?: boolean;
3624
4058
  }
3625
4059
  /**
3626
4060
  * DescribeBackupDownloadUrl请求参数结构体
@@ -3751,6 +4185,59 @@ export interface UnbindClusterResourcePackagesRequest {
3751
4185
  */
3752
4186
  PackageIds?: Array<string>;
3753
4187
  }
4188
+ /**
4189
+ * CreateProxy请求参数结构体
4190
+ */
4191
+ export interface CreateProxyRequest {
4192
+ /**
4193
+ * 集群ID
4194
+ */
4195
+ ClusterId: string;
4196
+ /**
4197
+ * cpu核数
4198
+ */
4199
+ Cpu: number;
4200
+ /**
4201
+ * 内存
4202
+ */
4203
+ Mem: number;
4204
+ /**
4205
+ * 私有网络ID,默认与集群私有网络ID保持一致
4206
+ */
4207
+ UniqueVpcId?: string;
4208
+ /**
4209
+ * 私有网络子网ID,默认与集群子网ID保持一致
4210
+ */
4211
+ UniqueSubnetId?: string;
4212
+ /**
4213
+ * 数据库代理组节点个数
4214
+ */
4215
+ ProxyCount?: number;
4216
+ /**
4217
+ * 连接池类型:SessionConnectionPool(会话级别连接池 )
4218
+ */
4219
+ ConnectionPoolType?: string;
4220
+ /**
4221
+ * 是否开启连接池,yes-开启,no-不开启
4222
+ */
4223
+ OpenConnectionPool?: string;
4224
+ /**
4225
+ * 连接池阀值:单位(秒)
4226
+ */
4227
+ ConnectionPoolTimeOut?: number;
4228
+ /**
4229
+ * 安全组ID数组
4230
+ */
4231
+ SecurityGroupIds?: Array<string>;
4232
+ /**
4233
+ * 描述说明
4234
+ */
4235
+ Description?: string;
4236
+ /**
4237
+ * 数据库节点信息
4238
+ */
4239
+ ProxyZones?: Array<ProxyZone>;
4240
+ }
3754
4241
  /**
3755
4242
  * OpenClusterPasswordComplexity返回参数结构体
3756
4243
  */
@@ -3765,13 +4252,17 @@ export interface OpenClusterPasswordComplexityResponse {
3765
4252
  RequestId?: string;
3766
4253
  }
3767
4254
  /**
3768
- * DescribeInstanceDetail返回参数结构体
4255
+ * CreateProxyEndPoint返回参数结构体
3769
4256
  */
3770
- export interface DescribeInstanceDetailResponse {
4257
+ export interface CreateProxyEndPointResponse {
3771
4258
  /**
3772
- * 实例详情
4259
+ * 异步流程ID
4260
+ */
4261
+ FlowId?: number;
4262
+ /**
4263
+ * 异步任务ID
3773
4264
  */
3774
- Detail: CynosdbInstanceDetail;
4265
+ TaskId?: number;
3775
4266
  /**
3776
4267
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3777
4268
  */
@@ -3960,6 +4451,66 @@ export interface CopyClusterPasswordComplexityRequest {
3960
4451
  */
3961
4452
  SourceClusterId: string;
3962
4453
  }
4454
+ /**
4455
+ * SwitchProxyVpc请求参数结构体
4456
+ */
4457
+ export interface SwitchProxyVpcRequest {
4458
+ /**
4459
+ * 集群ID
4460
+ */
4461
+ ClusterId: string;
4462
+ /**
4463
+ * 字符串vpc id
4464
+ */
4465
+ UniqVpcId: string;
4466
+ /**
4467
+ * 字符串子网id
4468
+ */
4469
+ UniqSubnetId: string;
4470
+ /**
4471
+ * 旧地址回收时间
4472
+ */
4473
+ OldIpReserveHours: number;
4474
+ /**
4475
+ * 数据库代理组Id(该参数为必填项,可以通过DescribeProxies接口获得)
4476
+ */
4477
+ ProxyGroupId?: string;
4478
+ }
4479
+ /**
4480
+ * 数据库代理组详细信息
4481
+ */
4482
+ export interface ProxyGroupInfo {
4483
+ /**
4484
+ * 数据库代理组
4485
+ 注意:此字段可能返回 null,表示取不到有效值。
4486
+ */
4487
+ ProxyGroup: ProxyGroup;
4488
+ /**
4489
+ * 数据库代理组读写分离信息
4490
+ 注意:此字段可能返回 null,表示取不到有效值。
4491
+ */
4492
+ ProxyGroupRwInfo: ProxyGroupRwInfo;
4493
+ /**
4494
+ * 数据库代理节点信息
4495
+ 注意:此字段可能返回 null,表示取不到有效值。
4496
+ */
4497
+ ProxyNodes: Array<ProxyNodeInfo>;
4498
+ /**
4499
+ * 数据库代理连接池信息
4500
+ 注意:此字段可能返回 null,表示取不到有效值。
4501
+ */
4502
+ ConnectionPool: ProxyConnectionPoolInfo;
4503
+ /**
4504
+ * 数据库代理网络信息
4505
+ 注意:此字段可能返回 null,表示取不到有效值。
4506
+ */
4507
+ NetAddrInfos: Array<NetAddr>;
4508
+ /**
4509
+ * 数据库代理任务集
4510
+ 注意:此字段可能返回 null,表示取不到有效值。
4511
+ */
4512
+ Tasks: Array<ObjectTask>;
4513
+ }
3963
4514
  /**
3964
4515
  * 参数模板详情
3965
4516
  */
@@ -4026,6 +4577,19 @@ export interface DescribeResourcesByDealNameRequest {
4026
4577
  */
4027
4578
  DealNames?: Array<string>;
4028
4579
  }
4580
+ /**
4581
+ * DescribeInstanceDetail返回参数结构体
4582
+ */
4583
+ export interface DescribeInstanceDetailResponse {
4584
+ /**
4585
+ * 实例详情
4586
+ */
4587
+ Detail: CynosdbInstanceDetail;
4588
+ /**
4589
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4590
+ */
4591
+ RequestId?: string;
4592
+ }
4029
4593
  /**
4030
4594
  * CreateBackup返回参数结构体
4031
4595
  */
@@ -4039,6 +4603,87 @@ export interface CreateBackupResponse {
4039
4603
  */
4040
4604
  RequestId?: string;
4041
4605
  }
4606
+ /**
4607
+ * CreateProxyEndPoint请求参数结构体
4608
+ */
4609
+ export interface CreateProxyEndPointRequest {
4610
+ /**
4611
+ * 集群ID
4612
+ */
4613
+ ClusterId: string;
4614
+ /**
4615
+ * 私有网络ID,默认与集群私有网络ID保持一致
4616
+ */
4617
+ UniqueVpcId: string;
4618
+ /**
4619
+ * 私有网络子网ID,默认与集群子网ID保持一致
4620
+ */
4621
+ UniqueSubnetId: string;
4622
+ /**
4623
+ * 连接池类型:SessionConnectionPool(会话级别连接池 )
4624
+ */
4625
+ ConnectionPoolType?: string;
4626
+ /**
4627
+ * 是否开启连接池,yes-开启,no-不开启
4628
+ */
4629
+ OpenConnectionPool?: string;
4630
+ /**
4631
+ * 连接池阀值:单位(秒)
4632
+ */
4633
+ ConnectionPoolTimeOut?: number;
4634
+ /**
4635
+ * 安全组ID数组
4636
+ */
4637
+ SecurityGroupIds?: Array<string>;
4638
+ /**
4639
+ * 描述说明
4640
+ */
4641
+ Description?: string;
4642
+ /**
4643
+ * vip信息
4644
+ */
4645
+ Vip?: string;
4646
+ /**
4647
+ * 权重模式:
4648
+ system-系统分配,custom-自定义
4649
+ */
4650
+ WeightMode?: string;
4651
+ /**
4652
+ * 是否自动添加只读实例,yes-是,no-不自动添加
4653
+ */
4654
+ AutoAddRo?: string;
4655
+ /**
4656
+ * 是否开启故障转移
4657
+ */
4658
+ FailOver?: string;
4659
+ /**
4660
+ * 一致性类型:
4661
+ eventual,global,session
4662
+ */
4663
+ ConsistencyType?: string;
4664
+ /**
4665
+ * 读写属性:
4666
+ READWRITE,READONLY
4667
+ */
4668
+ RwType?: string;
4669
+ /**
4670
+ * 一致性超时时间
4671
+ */
4672
+ ConsistencyTimeOut?: number;
4673
+ /**
4674
+ * 事务拆分
4675
+ */
4676
+ TransSplit?: boolean;
4677
+ /**
4678
+ * 连接模式:
4679
+ nearby,balance
4680
+ */
4681
+ AccessMode?: string;
4682
+ /**
4683
+ * 实例权重
4684
+ */
4685
+ InstanceWeights?: Array<ProxyInstanceWeight>;
4686
+ }
4042
4687
  /**
4043
4688
  * 用户主机权限
4044
4689
  */
@@ -4392,6 +5037,23 @@ export interface CreateAuditRuleTemplateRequest {
4392
5037
  */
4393
5038
  Description?: string;
4394
5039
  }
5040
+ /**
5041
+ * UpgradeProxy返回参数结构体
5042
+ */
5043
+ export interface UpgradeProxyResponse {
5044
+ /**
5045
+ * 异步流程ID
5046
+ */
5047
+ FlowId?: number;
5048
+ /**
5049
+ * 异步任务ID
5050
+ */
5051
+ TaskId?: number;
5052
+ /**
5053
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5054
+ */
5055
+ RequestId?: string;
5056
+ }
4395
5057
  /**
4396
5058
  * GrantAccountPrivileges返回参数结构体
4397
5059
  */
@@ -4410,6 +5072,23 @@ export interface ModifyBackupConfigResponse {
4410
5072
  */
4411
5073
  RequestId?: string;
4412
5074
  }
5075
+ /**
5076
+ * ModifyProxyRwSplit返回参数结构体
5077
+ */
5078
+ export interface ModifyProxyRwSplitResponse {
5079
+ /**
5080
+ * 异步FlowId
5081
+ */
5082
+ FlowId?: number;
5083
+ /**
5084
+ * 异步任务ID
5085
+ */
5086
+ TaskId?: number;
5087
+ /**
5088
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5089
+ */
5090
+ RequestId?: string;
5091
+ }
4413
5092
  /**
4414
5093
  * DescribeInstanceSpecs请求参数结构体
4415
5094
  */
@@ -4487,21 +5166,21 @@ export interface ModifyAccountDescriptionRequest {
4487
5166
  Host?: string;
4488
5167
  }
4489
5168
  /**
4490
- * 修改参数时,传入参数描述
5169
+ * DescribeProxyNodes返回参数结构体
4491
5170
  */
4492
- export interface ParamItem {
5171
+ export interface DescribeProxyNodesResponse {
4493
5172
  /**
4494
- * 参数名称
5173
+ * 数据库代理节点总数
4495
5174
  */
4496
- ParamName: string;
5175
+ TotalCount: number;
4497
5176
  /**
4498
- * 当前值
5177
+ * 数据库代理节点列表
4499
5178
  */
4500
- CurrentValue: string;
5179
+ ProxyNodeInfos: Array<ProxyNodeInfo>;
4501
5180
  /**
4502
- * 原有值
5181
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4503
5182
  */
4504
- OldValue: string;
5183
+ RequestId?: string;
4505
5184
  }
4506
5185
  /**
4507
5186
  * ModifyAccountParams请求参数结构体
@@ -4942,6 +5621,51 @@ export interface OpenAuditServiceResponse {
4942
5621
  */
4943
5622
  RequestId?: string;
4944
5623
  }
5624
+ /**
5625
+ * 数据库代理组节点
5626
+ */
5627
+ export interface ProxyNodeInfo {
5628
+ /**
5629
+ * 数据库代理节点ID
5630
+ */
5631
+ ProxyNodeId: string;
5632
+ /**
5633
+ * 节点当前连接数, DescribeProxyNodes接口此字段值不返回
5634
+ */
5635
+ ProxyNodeConnections: number;
5636
+ /**
5637
+ * 数据库代理节点cpu
5638
+ */
5639
+ Cpu: number;
5640
+ /**
5641
+ * 数据库代理节点内存
5642
+ */
5643
+ Mem: number;
5644
+ /**
5645
+ * 数据库代理节点状态
5646
+ */
5647
+ Status: string;
5648
+ /**
5649
+ * 数据库代理组ID
5650
+ */
5651
+ ProxyGroupId: string;
5652
+ /**
5653
+ * 集群ID
5654
+ */
5655
+ ClusterId: string;
5656
+ /**
5657
+ * 用户AppID
5658
+ */
5659
+ AppId: number;
5660
+ /**
5661
+ * 地域
5662
+ */
5663
+ Region: string;
5664
+ /**
5665
+ * 可用区
5666
+ */
5667
+ Zone: string;
5668
+ }
4945
5669
  /**
4946
5670
  * OfflineCluster返回参数结构体
4947
5671
  */
@@ -5262,14 +5986,17 @@ export interface DescribeClusterParamLogsRequest {
5262
5986
  Offset?: number;
5263
5987
  }
5264
5988
  /**
5265
- * SearchClusterTables返回参数结构体
5989
+ * CloseProxy返回参数结构体
5266
5990
  */
5267
- export interface SearchClusterTablesResponse {
5991
+ export interface CloseProxyResponse {
5268
5992
  /**
5269
- * 数据表列表
5270
- 注意:此字段可能返回 null,表示取不到有效值。
5993
+ * 异步流程ID
5271
5994
  */
5272
- Tables: Array<DatabaseTables>;
5995
+ FlowId?: number;
5996
+ /**
5997
+ * 异步任务ID
5998
+ */
5999
+ TaskId?: number;
5273
6000
  /**
5274
6001
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5275
6002
  */
@@ -5289,32 +6016,33 @@ export interface Module {
5289
6016
  ModuleName: string;
5290
6017
  }
5291
6018
  /**
5292
- * DescribeResourcePackageSaleSpec请求参数结构体
6019
+ * DescribeProxyNodes请求参数结构体
5293
6020
  */
5294
- export interface DescribeResourcePackageSaleSpecRequest {
6021
+ export interface DescribeProxyNodesRequest {
5295
6022
  /**
5296
- * 实例类型
6023
+ * 返回数量,默认为 20,最大值为 100
5297
6024
  */
5298
- InstanceType: string;
6025
+ Limit?: number;
5299
6026
  /**
5300
- * 资源包使用地域
5301
- china-中国内地通用,overseas-港澳台及海外通用
6027
+ * 记录偏移量,默认值为0
5302
6028
  */
5303
- PackageRegion: string;
6029
+ Offset?: number;
5304
6030
  /**
5305
- * 资源包类型
5306
- CCU-计算资源包
5307
- DISK-存储资源包
6031
+ * 排序字段,取值范围:
6032
+ <li> CREATETIME:创建时间</li>
6033
+ <li> PERIODENDTIME:过期时间</li>
5308
6034
  */
5309
- PackageType: string;
6035
+ OrderBy?: string;
5310
6036
  /**
5311
- * 偏移量
6037
+ * 排序类型,取值范围:
6038
+ <li> ASC:升序排序 </li>
6039
+ <li> DESC:降序排序 </li>
5312
6040
  */
5313
- Offset?: number;
6041
+ OrderByType?: string;
5314
6042
  /**
5315
- * 限制
6043
+ * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
5316
6044
  */
5317
- Limit?: number;
6045
+ Filters?: Array<QueryFilter>;
5318
6046
  }
5319
6047
  /**
5320
6048
  * 回档数据库及表
@@ -6486,6 +7214,23 @@ export interface ParamTemplateListInfo {
6486
7214
  */
6487
7215
  ParamInfoSet: Array<TemplateParamInfo>;
6488
7216
  }
7217
+ /**
7218
+ * ReloadBalanceProxyNode返回参数结构体
7219
+ */
7220
+ export interface ReloadBalanceProxyNodeResponse {
7221
+ /**
7222
+ * 异步流程ID
7223
+ */
7224
+ FlowId: number;
7225
+ /**
7226
+ * 异步任务ID
7227
+ */
7228
+ TaskId: number;
7229
+ /**
7230
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7231
+ */
7232
+ RequestId?: string;
7233
+ }
6489
7234
  /**
6490
7235
  * DescribeAccounts返回参数结构体
6491
7236
  */
@@ -6708,6 +7453,23 @@ export interface ErrorLogItemExport {
6708
7453
  */
6709
7454
  Content?: string;
6710
7455
  }
7456
+ /**
7457
+ * CreateProxy返回参数结构体
7458
+ */
7459
+ export interface CreateProxyResponse {
7460
+ /**
7461
+ * 异步流程ID
7462
+ */
7463
+ FlowId?: number;
7464
+ /**
7465
+ * 异步任务ID
7466
+ */
7467
+ TaskId?: number;
7468
+ /**
7469
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7470
+ */
7471
+ RequestId?: string;
7472
+ }
6711
7473
  /**
6712
7474
  * DescribeAccountAllGrantPrivileges请求参数结构体
6713
7475
  */
@@ -6964,6 +7726,19 @@ export interface InquirePriceRenewResponse {
6964
7726
  */
6965
7727
  RequestId?: string;
6966
7728
  }
7729
+ /**
7730
+ * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
7731
+ */
7732
+ export interface Tag {
7733
+ /**
7734
+ * 标签键
7735
+ */
7736
+ TagKey: string;
7737
+ /**
7738
+ * 标签值
7739
+ */
7740
+ TagValue: string;
7741
+ }
6967
7742
  /**
6968
7743
  * ModifyAuditRuleTemplates返回参数结构体
6969
7744
  */