tencentcloud-sdk-nodejs-cynosdb 4.0.459 → 4.0.461

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.
@@ -76,38 +76,51 @@ export interface InquirePriceRenewRequest {
76
76
  }
77
77
 
78
78
  /**
79
- * 任务信息
79
+ * DescribeAuditLogs请求参数结构体
80
80
  */
81
- export interface ObjectTask {
81
+ export interface DescribeAuditLogsRequest {
82
82
  /**
83
- * 任务自增ID
84
- 注意:此字段可能返回 null,表示取不到有效值。
85
- */
86
- TaskId?: number
83
+ * 实例ID
84
+ */
85
+ InstanceId: string
87
86
 
88
87
  /**
89
- * 任务类型
90
- 注意:此字段可能返回 null,表示取不到有效值。
91
- */
92
- TaskType?: string
88
+ * 开始时间,格式为:"2017-07-12 10:29:20"。
89
+ */
90
+ StartTime: string
93
91
 
94
92
  /**
95
- * 任务状态
96
- 注意:此字段可能返回 null,表示取不到有效值。
97
- */
98
- TaskStatus?: string
93
+ * 结束时间,格式为:"2017-07-12 10:29:20"。
94
+ */
95
+ EndTime: string
99
96
 
100
97
  /**
101
- * 任务ID(集群ID|实例组ID|实例ID)
102
- 注意:此字段可能返回 null,表示取不到有效值。
103
- */
104
- ObjectId?: string
98
+ * 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
99
+ */
100
+ Order?: string
105
101
 
106
102
  /**
107
- * 任务类型
108
- 注意:此字段可能返回 null,表示取不到有效值。
103
+ * 排序字段。支持值包括:
104
+ "timestamp" - 时间戳;
105
+ "affectRows" - 影响行数;
106
+ "execTime" - 执行时间。
109
107
  */
110
- ObjectType?: string
108
+ OrderBy?: string
109
+
110
+ /**
111
+ * 过滤条件。可按设置的过滤条件过滤日志。
112
+ */
113
+ Filter?: AuditLogFilter
114
+
115
+ /**
116
+ * 分页参数,单次返回的数据条数。默认值为100,最大值为100。
117
+ */
118
+ Limit?: number
119
+
120
+ /**
121
+ * 分页偏移量。
122
+ */
123
+ Offset?: number
111
124
  }
112
125
 
113
126
  /**
@@ -226,6 +239,26 @@ export interface ModifyClusterStorageRequest {
226
239
  DealMode?: number
227
240
  }
228
241
 
242
+ /**
243
+ * DescribeAuditLogFiles返回参数结构体
244
+ */
245
+ export interface DescribeAuditLogFilesResponse {
246
+ /**
247
+ * 符合条件的审计日志文件个数。
248
+ */
249
+ TotalCount: number
250
+
251
+ /**
252
+ * 审计日志文件详情。
253
+ */
254
+ Items: Array<AuditLogFile>
255
+
256
+ /**
257
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
258
+ */
259
+ RequestId?: string
260
+ }
261
+
229
262
  /**
230
263
  * SwitchClusterZone返回参数结构体
231
264
  */
@@ -494,13 +527,63 @@ export interface IsolateInstanceResponse {
494
527
  }
495
528
 
496
529
  /**
497
- * ModifyInstanceName返回参数结构体
530
+ * 审计日志过滤条件。查询审计日志时,用户过滤返回的审计日志。
498
531
  */
499
- export interface ModifyInstanceNameResponse {
532
+ export interface AuditLogFilter {
500
533
  /**
501
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
534
+ * 客户端地址。
502
535
  */
503
- RequestId?: string
536
+ Host?: Array<string>
537
+
538
+ /**
539
+ * 用户名。
540
+ */
541
+ User?: Array<string>
542
+
543
+ /**
544
+ * 数据库名称。
545
+ */
546
+ DBName?: Array<string>
547
+
548
+ /**
549
+ * 表名称。
550
+ */
551
+ TableName?: Array<string>
552
+
553
+ /**
554
+ * 审计策略名称。
555
+ */
556
+ PolicyName?: Array<string>
557
+
558
+ /**
559
+ * SQL 语句。支持模糊匹配。
560
+ */
561
+ Sql?: string
562
+
563
+ /**
564
+ * SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
565
+ */
566
+ SqlType?: string
567
+
568
+ /**
569
+ * 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
570
+ */
571
+ ExecTime?: number
572
+
573
+ /**
574
+ * 影响行数。表示筛选影响行数大于该值的审计日志。
575
+ */
576
+ AffectRows?: number
577
+
578
+ /**
579
+ * SQL 类型。支持多个类型同时查询。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
580
+ */
581
+ SqlTypes?: Array<string>
582
+
583
+ /**
584
+ * SQL 语句。支持传递多个sql语句。
585
+ */
586
+ Sqls?: Array<string>
504
587
  }
505
588
 
506
589
  /**
@@ -508,6 +591,27 @@ export interface ModifyInstanceNameResponse {
508
591
  */
509
592
  export type DescribeParamTemplatesRequest = null
510
593
 
594
+ /**
595
+ * DescribeAuditLogs返回参数结构体
596
+ */
597
+ export interface DescribeAuditLogsResponse {
598
+ /**
599
+ * 符合条件的审计日志条数。
600
+ */
601
+ TotalCount: number
602
+
603
+ /**
604
+ * 审计日志详情。
605
+ 注意:此字段可能返回 null,表示取不到有效值。
606
+ */
607
+ Items: Array<AuditLog>
608
+
609
+ /**
610
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
611
+ */
612
+ RequestId?: string
613
+ }
614
+
511
615
  /**
512
616
  * PauseServerless请求参数结构体
513
617
  */
@@ -523,6 +627,41 @@ export interface PauseServerlessRequest {
523
627
  ForcePause?: number
524
628
  }
525
629
 
630
+ /**
631
+ * 任务信息
632
+ */
633
+ export interface ObjectTask {
634
+ /**
635
+ * 任务自增ID
636
+ 注意:此字段可能返回 null,表示取不到有效值。
637
+ */
638
+ TaskId?: number
639
+
640
+ /**
641
+ * 任务类型
642
+ 注意:此字段可能返回 null,表示取不到有效值。
643
+ */
644
+ TaskType?: string
645
+
646
+ /**
647
+ * 任务状态
648
+ 注意:此字段可能返回 null,表示取不到有效值。
649
+ */
650
+ TaskStatus?: string
651
+
652
+ /**
653
+ * 任务ID(集群ID|实例组ID|实例ID)
654
+ 注意:此字段可能返回 null,表示取不到有效值。
655
+ */
656
+ ObjectId?: string
657
+
658
+ /**
659
+ * 任务类型
660
+ 注意:此字段可能返回 null,表示取不到有效值。
661
+ */
662
+ ObjectType?: string
663
+ }
664
+
526
665
  /**
527
666
  * RevokeAccountPrivileges返回参数结构体
528
667
  */
@@ -931,6 +1070,16 @@ export interface ModifyDBInstanceSecurityGroupsResponse {
931
1070
  RequestId?: string
932
1071
  }
933
1072
 
1073
+ /**
1074
+ * DeleteAuditLogFile返回参数结构体
1075
+ */
1076
+ export interface DeleteAuditLogFileResponse {
1077
+ /**
1078
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1079
+ */
1080
+ RequestId?: string
1081
+ }
1082
+
934
1083
  /**
935
1084
  * DescribeClusterParamLogs返回参数结构体
936
1085
  */
@@ -1008,23 +1157,44 @@ export interface CreateAccountsRequest {
1008
1157
  }
1009
1158
 
1010
1159
  /**
1011
- * IsolateInstance请求参数结构体
1160
+ * 审计日志文件
1012
1161
  */
1013
- export interface IsolateInstanceRequest {
1162
+ export interface AuditLogFile {
1014
1163
  /**
1015
- * 集群ID
1164
+ * 审计日志文件名称
1016
1165
  */
1017
- ClusterId: string
1166
+ FileName: string
1018
1167
 
1019
1168
  /**
1020
- * 实例ID数组
1169
+ * 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
1021
1170
  */
1022
- InstanceIdList: Array<string>
1171
+ CreateTime: string
1023
1172
 
1024
1173
  /**
1025
- * 该参数已废弃
1026
- */
1027
- DbType?: string
1174
+ * 文件状态值。可能返回的值为:
1175
+ "creating" - 生成中;
1176
+ "failed" - 创建失败;
1177
+ "success" - 已生成;
1178
+ */
1179
+ Status: string
1180
+
1181
+ /**
1182
+ * 文件大小,单位为 KB。
1183
+ 注意:此字段可能返回 null,表示取不到有效值。
1184
+ */
1185
+ FileSize: number
1186
+
1187
+ /**
1188
+ * 审计日志下载地址。
1189
+ 注意:此字段可能返回 null,表示取不到有效值。
1190
+ */
1191
+ DownloadUrl: string
1192
+
1193
+ /**
1194
+ * 错误信息。
1195
+ 注意:此字段可能返回 null,表示取不到有效值。
1196
+ */
1197
+ ErrMsg: string
1028
1198
  }
1029
1199
 
1030
1200
  /**
@@ -1117,6 +1287,51 @@ export interface RollBackClusterRequest {
1117
1287
  RollbackTables?: Array<RollbackTable>
1118
1288
  }
1119
1289
 
1290
+ /**
1291
+ * UpgradeInstance请求参数结构体
1292
+ */
1293
+ export interface UpgradeInstanceRequest {
1294
+ /**
1295
+ * 实例ID
1296
+ */
1297
+ InstanceId: string
1298
+
1299
+ /**
1300
+ * 数据库CPU
1301
+ */
1302
+ Cpu: number
1303
+
1304
+ /**
1305
+ * 数据库内存,单位GB
1306
+ */
1307
+ Memory: number
1308
+
1309
+ /**
1310
+ * 升级类型:upgradeImmediate,upgradeInMaintain
1311
+ */
1312
+ UpgradeType: string
1313
+
1314
+ /**
1315
+ * 该参数已废弃
1316
+ */
1317
+ StorageLimit?: number
1318
+
1319
+ /**
1320
+ * 是否自动选择代金券 1是 0否 默认为0
1321
+ */
1322
+ AutoVoucher?: number
1323
+
1324
+ /**
1325
+ * 该参数已废弃
1326
+ */
1327
+ DbType?: string
1328
+
1329
+ /**
1330
+ * 交易模式 0-下单并支付 1-下单
1331
+ */
1332
+ DealMode?: number
1333
+ }
1334
+
1120
1335
  /**
1121
1336
  * 回档数据库及表
1122
1337
  */
@@ -1187,6 +1402,21 @@ export interface RemoveClusterSlaveZoneResponse {
1187
1402
  RequestId?: string
1188
1403
  }
1189
1404
 
1405
+ /**
1406
+ * CreateAuditLogFile返回参数结构体
1407
+ */
1408
+ export interface CreateAuditLogFileResponse {
1409
+ /**
1410
+ * 审计日志文件名称。
1411
+ */
1412
+ FileName: string
1413
+
1414
+ /**
1415
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1416
+ */
1417
+ RequestId?: string
1418
+ }
1419
+
1190
1420
  /**
1191
1421
  * PauseServerless返回参数结构体
1192
1422
  */
@@ -1993,6 +2223,11 @@ export interface QueryFilter {
1993
2223
  * 搜索字段
1994
2224
  */
1995
2225
  Name?: string
2226
+
2227
+ /**
2228
+ * 操作符
2229
+ */
2230
+ Operator?: string
1996
2231
  }
1997
2232
 
1998
2233
  /**
@@ -2446,29 +2681,75 @@ export interface DescribeInstanceSlowQueriesResponse {
2446
2681
  }
2447
2682
 
2448
2683
  /**
2449
- * GrantAccountPrivileges返回参数结构体
2684
+ * DescribeInstances请求参数结构体
2450
2685
  */
2451
- export interface GrantAccountPrivilegesResponse {
2686
+ export interface DescribeInstancesRequest {
2452
2687
  /**
2453
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2688
+ * 返回数量,默认为 20,最大值为 100
2454
2689
  */
2455
- RequestId?: string
2456
- }
2690
+ Limit?: number
2457
2691
 
2458
- /**
2459
- * DescribeBackupDownloadUrl返回参数结构体
2460
- */
2461
- export interface DescribeBackupDownloadUrlResponse {
2462
2692
  /**
2463
- * 备份下载地址
2693
+ * 记录偏移量,默认值为0
2464
2694
  */
2465
- DownloadUrl: string
2695
+ Offset?: number
2466
2696
 
2467
2697
  /**
2468
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2469
- */
2470
- RequestId?: string
2471
- }
2698
+ * 排序字段,取值范围:
2699
+ <li> CREATETIME:创建时间</li>
2700
+ <li> PERIODENDTIME:过期时间</li>
2701
+ */
2702
+ OrderBy?: string
2703
+
2704
+ /**
2705
+ * 排序类型,取值范围:
2706
+ <li> ASC:升序排序 </li>
2707
+ <li> DESC:降序排序 </li>
2708
+ */
2709
+ OrderByType?: string
2710
+
2711
+ /**
2712
+ * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
2713
+ */
2714
+ Filters?: Array<QueryFilter>
2715
+
2716
+ /**
2717
+ * 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
2718
+ */
2719
+ DbType?: string
2720
+
2721
+ /**
2722
+ * 实例状态, 可选值:
2723
+ creating 创建中
2724
+ running 运行中
2725
+ isolating 隔离中
2726
+ isolated 已隔离
2727
+ activating 恢复中
2728
+ offlining 下线中
2729
+ offlined 已下线
2730
+ */
2731
+ Status?: string
2732
+
2733
+ /**
2734
+ * 实例id列表
2735
+ */
2736
+ InstanceIds?: Array<string>
2737
+ }
2738
+
2739
+ /**
2740
+ * DescribeBackupDownloadUrl返回参数结构体
2741
+ */
2742
+ export interface DescribeBackupDownloadUrlResponse {
2743
+ /**
2744
+ * 备份下载地址
2745
+ */
2746
+ DownloadUrl: string
2747
+
2748
+ /**
2749
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2750
+ */
2751
+ RequestId?: string
2752
+ }
2472
2753
 
2473
2754
  /**
2474
2755
  * ResumeServerless请求参数结构体
@@ -2997,6 +3278,26 @@ export interface InquirePriceCreateResponse {
2997
3278
  RequestId?: string
2998
3279
  }
2999
3280
 
3281
+ /**
3282
+ * IsolateInstance请求参数结构体
3283
+ */
3284
+ export interface IsolateInstanceRequest {
3285
+ /**
3286
+ * 集群ID
3287
+ */
3288
+ ClusterId: string
3289
+
3290
+ /**
3291
+ * 实例ID数组
3292
+ */
3293
+ InstanceIdList: Array<string>
3294
+
3295
+ /**
3296
+ * 该参数已废弃
3297
+ */
3298
+ DbType?: string
3299
+ }
3300
+
3000
3301
  /**
3001
3302
  * SetRenewFlag返回参数结构体
3002
3303
  */
@@ -3093,48 +3394,48 @@ export interface DescribeClusterParamLogsRequest {
3093
3394
  }
3094
3395
 
3095
3396
  /**
3096
- * UpgradeInstance请求参数结构体
3397
+ * 安全组规则
3097
3398
  */
3098
- export interface UpgradeInstanceRequest {
3399
+ export interface PolicyRule {
3099
3400
  /**
3100
- * 实例ID
3401
+ * 策略,ACCEPT或者DROP
3101
3402
  */
3102
- InstanceId: string
3403
+ Action: string
3103
3404
 
3104
3405
  /**
3105
- * 数据库CPU
3406
+ * 来源Ip或Ip段,例如192.168.0.0/16
3106
3407
  */
3107
- Cpu: number
3408
+ CidrIp: string
3108
3409
 
3109
3410
  /**
3110
- * 数据库内存,单位GB
3411
+ * 端口
3111
3412
  */
3112
- Memory: number
3413
+ PortRange: string
3113
3414
 
3114
3415
  /**
3115
- * 升级类型:upgradeImmediate,upgradeInMaintain
3416
+ * 网络协议,支持udp、tcp等
3116
3417
  */
3117
- UpgradeType: string
3418
+ IpProtocol: string
3118
3419
 
3119
3420
  /**
3120
- * 该参数已废弃
3421
+ * 协议端口ID或者协议端口组ID。
3121
3422
  */
3122
- StorageLimit?: number
3423
+ ServiceModule: string
3123
3424
 
3124
3425
  /**
3125
- * 是否自动选择代金券 1是 0否 默认为0
3426
+ * IP地址ID或者ID地址组ID。
3126
3427
  */
3127
- AutoVoucher?: number
3428
+ AddressModule: string
3128
3429
 
3129
3430
  /**
3130
- * 该参数已废弃
3431
+ * id
3131
3432
  */
3132
- DbType?: string
3433
+ Id: string
3133
3434
 
3134
3435
  /**
3135
- * 交易模式 0-下单并支付 1-下单
3436
+ * 描述
3136
3437
  */
3137
- DealMode?: number
3438
+ Desc: string
3138
3439
  }
3139
3440
 
3140
3441
  /**
@@ -3278,38 +3579,56 @@ export interface DescribeRollbackTimeValidityRequest {
3278
3579
  }
3279
3580
 
3280
3581
  /**
3281
- * IsolateCluster请求参数结构体
3582
+ * CreateAuditLogFile请求参数结构体
3282
3583
  */
3283
- export interface IsolateClusterRequest {
3584
+ export interface CreateAuditLogFileRequest {
3284
3585
  /**
3285
- * 集群ID
3586
+ * 实例ID
3286
3587
  */
3287
- ClusterId: string
3588
+ InstanceId: string
3288
3589
 
3289
3590
  /**
3290
- * 该参数已废用
3591
+ * 开始时间,格式为:"2017-07-12 10:29:20"。
3291
3592
  */
3292
- DbType?: string
3293
- }
3593
+ StartTime: string
3294
3594
 
3295
- /**
3296
- * DescribeClusterInstanceGrps返回参数结构体
3297
- */
3298
- export interface DescribeClusterInstanceGrpsResponse {
3299
3595
  /**
3300
- * 实例组个数
3596
+ * 结束时间,格式为:"2017-07-12 10:29:20"。
3301
3597
  */
3302
- TotalCount: number
3598
+ EndTime: string
3303
3599
 
3304
3600
  /**
3305
- * 实例组列表
3601
+ * 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
3306
3602
  */
3307
- InstanceGrpInfoList: Array<CynosdbInstanceGrp>
3603
+ Order?: string
3308
3604
 
3309
3605
  /**
3310
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3606
+ * 排序字段。支持值包括:
3607
+ "timestamp" - 时间戳;
3608
+ "affectRows" - 影响行数;
3609
+ "execTime" - 执行时间。
3610
+ */
3611
+ OrderBy?: string
3612
+
3613
+ /**
3614
+ * 过滤条件。可按设置的过滤条件过滤日志。
3311
3615
  */
3312
- RequestId?: string
3616
+ Filter?: AuditLogFilter
3617
+ }
3618
+
3619
+ /**
3620
+ * DeleteAuditLogFile请求参数结构体
3621
+ */
3622
+ export interface DeleteAuditLogFileRequest {
3623
+ /**
3624
+ * 实例ID
3625
+ */
3626
+ InstanceId: string
3627
+
3628
+ /**
3629
+ * 审计日志文件名称。
3630
+ */
3631
+ FileName: string
3313
3632
  }
3314
3633
 
3315
3634
  /**
@@ -3404,94 +3723,103 @@ export interface ModifyClusterSlaveZoneRequest {
3404
3723
  }
3405
3724
 
3406
3725
  /**
3407
- * DescribeInstances请求参数结构体
3726
+ * GrantAccountPrivileges返回参数结构体
3408
3727
  */
3409
- export interface DescribeInstancesRequest {
3728
+ export interface GrantAccountPrivilegesResponse {
3410
3729
  /**
3411
- * 返回数量,默认为 20,最大值为 100
3730
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3412
3731
  */
3413
- Limit?: number
3732
+ RequestId?: string
3733
+ }
3414
3734
 
3735
+ /**
3736
+ * 参数修改记录
3737
+ */
3738
+ export interface ClusterParamModifyLog {
3415
3739
  /**
3416
- * 记录偏移量,默认值为0
3740
+ * 参数名称
3417
3741
  */
3418
- Offset?: number
3419
-
3420
- /**
3421
- * 排序字段,取值范围:
3422
- <li> CREATETIME:创建时间</li>
3423
- <li> PERIODENDTIME:过期时间</li>
3424
- */
3425
- OrderBy?: string
3742
+ ParamName: string
3426
3743
 
3427
3744
  /**
3428
- * 排序类型,取值范围:
3429
- <li> ASC:升序排序 </li>
3430
- <li> DESC:降序排序 </li>
3431
- */
3432
- OrderByType?: string
3745
+ * 当前值
3746
+ */
3747
+ CurrentValue: string
3433
3748
 
3434
3749
  /**
3435
- * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
3750
+ * 修改后的值
3436
3751
  */
3437
- Filters?: Array<QueryFilter>
3752
+ UpdateValue: string
3438
3753
 
3439
3754
  /**
3440
- * 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
3755
+ * 修改状态
3441
3756
  */
3442
- DbType?: string
3757
+ Status: string
3443
3758
 
3444
3759
  /**
3445
- * 实例状态, 可选值:
3446
- creating 创建中
3447
- running 运行中
3448
- isolating 隔离中
3449
- isolated 已隔离
3450
- activating 恢复中
3451
- offlining 下线中
3452
- offlined 已下线
3453
- */
3454
- Status?: string
3760
+ * 创建时间
3761
+ */
3762
+ CreateTime: string
3455
3763
 
3456
3764
  /**
3457
- * 实例id列表
3765
+ * 更新时间
3458
3766
  */
3459
- InstanceIds?: Array<string>
3767
+ UpdateTime: string
3460
3768
  }
3461
3769
 
3462
3770
  /**
3463
- * 参数修改记录
3771
+ * DescribeInstanceSlowQueries请求参数结构体
3464
3772
  */
3465
- export interface ClusterParamModifyLog {
3773
+ export interface DescribeInstanceSlowQueriesRequest {
3466
3774
  /**
3467
- * 参数名称
3775
+ * 实例ID
3468
3776
  */
3469
- ParamName: string
3777
+ InstanceId: string
3470
3778
 
3471
3779
  /**
3472
- * 当前值
3780
+ * 事务开始最早时间
3473
3781
  */
3474
- CurrentValue: string
3782
+ StartTime?: string
3475
3783
 
3476
3784
  /**
3477
- * 修改后的值
3785
+ * 事务开始最晚时间
3478
3786
  */
3479
- UpdateValue: string
3787
+ EndTime?: string
3480
3788
 
3481
3789
  /**
3482
- * 修改状态
3790
+ * 限制条数
3483
3791
  */
3484
- Status: string
3792
+ Limit?: number
3485
3793
 
3486
3794
  /**
3487
- * 创建时间
3795
+ * 偏移量
3488
3796
  */
3489
- CreateTime: string
3797
+ Offset?: number
3490
3798
 
3491
3799
  /**
3492
- * 更新时间
3800
+ * 用户名
3493
3801
  */
3494
- UpdateTime: string
3802
+ Username?: string
3803
+
3804
+ /**
3805
+ * 客户端host
3806
+ */
3807
+ Host?: string
3808
+
3809
+ /**
3810
+ * 数据库名
3811
+ */
3812
+ Database?: string
3813
+
3814
+ /**
3815
+ * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
3816
+ */
3817
+ OrderBy?: string
3818
+
3819
+ /**
3820
+ * 排序类型,可选值:asc,desc
3821
+ */
3822
+ OrderByType?: string
3495
3823
  }
3496
3824
 
3497
3825
  /**
@@ -3860,6 +4188,16 @@ export interface ModifyBackupNameRequest {
3860
4188
  BackupName: string
3861
4189
  }
3862
4190
 
4191
+ /**
4192
+ * ModifyInstanceName返回参数结构体
4193
+ */
4194
+ export interface ModifyInstanceNameResponse {
4195
+ /**
4196
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4197
+ */
4198
+ RequestId?: string
4199
+ }
4200
+
3863
4201
  /**
3864
4202
  * DescribeBinlogSaveDays返回参数结构体
3865
4203
  */
@@ -3984,6 +4322,81 @@ export interface DescribeClusterParamsRequest {
3984
4322
  ClusterId: string
3985
4323
  }
3986
4324
 
4325
+ /**
4326
+ * 审计日志详细信息
4327
+ */
4328
+ export interface AuditLog {
4329
+ /**
4330
+ * 影响行数。
4331
+ */
4332
+ AffectRows: number
4333
+
4334
+ /**
4335
+ * 错误码。
4336
+ */
4337
+ ErrCode: number
4338
+
4339
+ /**
4340
+ * SQL类型。
4341
+ */
4342
+ SqlType: string
4343
+
4344
+ /**
4345
+ * 表名称。
4346
+ */
4347
+ TableName: string
4348
+
4349
+ /**
4350
+ * 实例名称。
4351
+ */
4352
+ InstanceName: string
4353
+
4354
+ /**
4355
+ * 审计策略名称。
4356
+ */
4357
+ PolicyName: string
4358
+
4359
+ /**
4360
+ * 数据库名称。
4361
+ */
4362
+ DBName: string
4363
+
4364
+ /**
4365
+ * SQL语句。
4366
+ */
4367
+ Sql: string
4368
+
4369
+ /**
4370
+ * 客户端地址。
4371
+ */
4372
+ Host: string
4373
+
4374
+ /**
4375
+ * 用户名。
4376
+ */
4377
+ User: string
4378
+
4379
+ /**
4380
+ * 执行时间。
4381
+ */
4382
+ ExecTime: number
4383
+
4384
+ /**
4385
+ * 时间戳。
4386
+ */
4387
+ Timestamp: string
4388
+
4389
+ /**
4390
+ * 发送行数。
4391
+ */
4392
+ SentRows: number
4393
+
4394
+ /**
4395
+ * 执行线程ID。
4396
+ */
4397
+ ThreadId: number
4398
+ }
4399
+
3987
4400
  /**
3988
4401
  * DescribeInstanceSpecs返回参数结构体
3989
4402
  */
@@ -4050,48 +4463,43 @@ export interface ParamItem {
4050
4463
  }
4051
4464
 
4052
4465
  /**
4053
- * 安全组规则
4466
+ * IsolateCluster请求参数结构体
4054
4467
  */
4055
- export interface PolicyRule {
4056
- /**
4057
- * 策略,ACCEPT或者DROP
4058
- */
4059
- Action: string
4060
-
4061
- /**
4062
- * 来源Ip或Ip段,例如192.168.0.0/16
4063
- */
4064
- CidrIp: string
4065
-
4468
+ export interface IsolateClusterRequest {
4066
4469
  /**
4067
- * 端口
4470
+ * 集群ID
4068
4471
  */
4069
- PortRange: string
4472
+ ClusterId: string
4070
4473
 
4071
4474
  /**
4072
- * 网络协议,支持udp、tcp等
4475
+ * 该参数已废用
4073
4476
  */
4074
- IpProtocol: string
4477
+ DbType?: string
4478
+ }
4075
4479
 
4480
+ /**
4481
+ * DescribeAuditLogFiles请求参数结构体
4482
+ */
4483
+ export interface DescribeAuditLogFilesRequest {
4076
4484
  /**
4077
- * 协议端口ID或者协议端口组ID。
4485
+ * 实例ID
4078
4486
  */
4079
- ServiceModule: string
4487
+ InstanceId: string
4080
4488
 
4081
4489
  /**
4082
- * IP地址ID或者ID地址组ID
4490
+ * 分页大小参数。默认值为 20,最小值为 1,最大值为 100
4083
4491
  */
4084
- AddressModule: string
4492
+ Limit?: number
4085
4493
 
4086
4494
  /**
4087
- * id
4495
+ * 分页偏移量。
4088
4496
  */
4089
- Id: string
4497
+ Offset?: number
4090
4498
 
4091
4499
  /**
4092
- * 描述
4500
+ * 审计日志文件名。
4093
4501
  */
4094
- Desc: string
4502
+ FileName?: string
4095
4503
  }
4096
4504
 
4097
4505
  /**
@@ -4110,58 +4518,23 @@ export interface DescribeClusterDetailResponse {
4110
4518
  }
4111
4519
 
4112
4520
  /**
4113
- * DescribeInstanceSlowQueries请求参数结构体
4521
+ * DescribeClusterInstanceGrps返回参数结构体
4114
4522
  */
4115
- export interface DescribeInstanceSlowQueriesRequest {
4116
- /**
4117
- * 实例ID
4118
- */
4119
- InstanceId: string
4120
-
4121
- /**
4122
- * 事务开始最早时间
4123
- */
4124
- StartTime?: string
4125
-
4126
- /**
4127
- * 事务开始最晚时间
4128
- */
4129
- EndTime?: string
4130
-
4131
- /**
4132
- * 限制条数
4133
- */
4134
- Limit?: number
4135
-
4136
- /**
4137
- * 偏移量
4138
- */
4139
- Offset?: number
4140
-
4141
- /**
4142
- * 用户名
4143
- */
4144
- Username?: string
4145
-
4146
- /**
4147
- * 客户端host
4148
- */
4149
- Host?: string
4150
-
4523
+ export interface DescribeClusterInstanceGrpsResponse {
4151
4524
  /**
4152
- * 数据库名
4525
+ * 实例组个数
4153
4526
  */
4154
- Database?: string
4527
+ TotalCount: number
4155
4528
 
4156
4529
  /**
4157
- * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
4530
+ * 实例组列表
4158
4531
  */
4159
- OrderBy?: string
4532
+ InstanceGrpInfoList: Array<CynosdbInstanceGrp>
4160
4533
 
4161
4534
  /**
4162
- * 排序类型,可选值:asc,desc
4535
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4163
4536
  */
4164
- OrderByType?: string
4537
+ RequestId?: string
4165
4538
  }
4166
4539
 
4167
4540
  /**