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.
@@ -51,34 +51,44 @@ export interface InquirePriceRenewRequest {
51
51
  TimeUnit: string;
52
52
  }
53
53
  /**
54
- * 任务信息
54
+ * DescribeAuditLogs请求参数结构体
55
55
  */
56
- export interface ObjectTask {
56
+ export interface DescribeAuditLogsRequest {
57
57
  /**
58
- * 任务自增ID
59
- 注意:此字段可能返回 null,表示取不到有效值。
60
- */
61
- TaskId?: number;
58
+ * 实例ID
59
+ */
60
+ InstanceId: string;
62
61
  /**
63
- * 任务类型
64
- 注意:此字段可能返回 null,表示取不到有效值。
65
- */
66
- TaskType?: string;
62
+ * 开始时间,格式为:"2017-07-12 10:29:20"。
63
+ */
64
+ StartTime: string;
67
65
  /**
68
- * 任务状态
69
- 注意:此字段可能返回 null,表示取不到有效值。
70
- */
71
- TaskStatus?: string;
66
+ * 结束时间,格式为:"2017-07-12 10:29:20"。
67
+ */
68
+ EndTime: string;
72
69
  /**
73
- * 任务ID(集群ID|实例组ID|实例ID)
74
- 注意:此字段可能返回 null,表示取不到有效值。
75
- */
76
- ObjectId?: string;
70
+ * 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
71
+ */
72
+ Order?: string;
77
73
  /**
78
- * 任务类型
79
- 注意:此字段可能返回 null,表示取不到有效值。
74
+ * 排序字段。支持值包括:
75
+ "timestamp" - 时间戳;
76
+ "affectRows" - 影响行数;
77
+ "execTime" - 执行时间。
80
78
  */
81
- ObjectType?: string;
79
+ OrderBy?: string;
80
+ /**
81
+ * 过滤条件。可按设置的过滤条件过滤日志。
82
+ */
83
+ Filter?: AuditLogFilter;
84
+ /**
85
+ * 分页参数,单次返回的数据条数。默认值为100,最大值为100。
86
+ */
87
+ Limit?: number;
88
+ /**
89
+ * 分页偏移量。
90
+ */
91
+ Offset?: number;
82
92
  }
83
93
  /**
84
94
  * DescribeBackupConfig请求参数结构体
@@ -179,6 +189,23 @@ export interface ModifyClusterStorageRequest {
179
189
  */
180
190
  DealMode?: number;
181
191
  }
192
+ /**
193
+ * DescribeAuditLogFiles返回参数结构体
194
+ */
195
+ export interface DescribeAuditLogFilesResponse {
196
+ /**
197
+ * 符合条件的审计日志文件个数。
198
+ */
199
+ TotalCount: number;
200
+ /**
201
+ * 审计日志文件详情。
202
+ */
203
+ Items: Array<AuditLogFile>;
204
+ /**
205
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
206
+ */
207
+ RequestId?: string;
208
+ }
182
209
  /**
183
210
  * SwitchClusterZone返回参数结构体
184
211
  */
@@ -409,18 +436,76 @@ export interface IsolateInstanceResponse {
409
436
  RequestId?: string;
410
437
  }
411
438
  /**
412
- * ModifyInstanceName返回参数结构体
439
+ * 审计日志过滤条件。查询审计日志时,用户过滤返回的审计日志。
413
440
  */
414
- export interface ModifyInstanceNameResponse {
441
+ export interface AuditLogFilter {
415
442
  /**
416
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
443
+ * 客户端地址。
417
444
  */
418
- RequestId?: string;
445
+ Host?: Array<string>;
446
+ /**
447
+ * 用户名。
448
+ */
449
+ User?: Array<string>;
450
+ /**
451
+ * 数据库名称。
452
+ */
453
+ DBName?: Array<string>;
454
+ /**
455
+ * 表名称。
456
+ */
457
+ TableName?: Array<string>;
458
+ /**
459
+ * 审计策略名称。
460
+ */
461
+ PolicyName?: Array<string>;
462
+ /**
463
+ * SQL 语句。支持模糊匹配。
464
+ */
465
+ Sql?: string;
466
+ /**
467
+ * SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
468
+ */
469
+ SqlType?: string;
470
+ /**
471
+ * 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
472
+ */
473
+ ExecTime?: number;
474
+ /**
475
+ * 影响行数。表示筛选影响行数大于该值的审计日志。
476
+ */
477
+ AffectRows?: number;
478
+ /**
479
+ * SQL 类型。支持多个类型同时查询。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
480
+ */
481
+ SqlTypes?: Array<string>;
482
+ /**
483
+ * SQL 语句。支持传递多个sql语句。
484
+ */
485
+ Sqls?: Array<string>;
419
486
  }
420
487
  /**
421
488
  * DescribeParamTemplates请求参数结构体
422
489
  */
423
490
  export declare type DescribeParamTemplatesRequest = null;
491
+ /**
492
+ * DescribeAuditLogs返回参数结构体
493
+ */
494
+ export interface DescribeAuditLogsResponse {
495
+ /**
496
+ * 符合条件的审计日志条数。
497
+ */
498
+ TotalCount: number;
499
+ /**
500
+ * 审计日志详情。
501
+ 注意:此字段可能返回 null,表示取不到有效值。
502
+ */
503
+ Items: Array<AuditLog>;
504
+ /**
505
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
506
+ */
507
+ RequestId?: string;
508
+ }
424
509
  /**
425
510
  * PauseServerless请求参数结构体
426
511
  */
@@ -434,6 +519,36 @@ export interface PauseServerlessRequest {
434
519
  */
435
520
  ForcePause?: number;
436
521
  }
522
+ /**
523
+ * 任务信息
524
+ */
525
+ export interface ObjectTask {
526
+ /**
527
+ * 任务自增ID
528
+ 注意:此字段可能返回 null,表示取不到有效值。
529
+ */
530
+ TaskId?: number;
531
+ /**
532
+ * 任务类型
533
+ 注意:此字段可能返回 null,表示取不到有效值。
534
+ */
535
+ TaskType?: string;
536
+ /**
537
+ * 任务状态
538
+ 注意:此字段可能返回 null,表示取不到有效值。
539
+ */
540
+ TaskStatus?: string;
541
+ /**
542
+ * 任务ID(集群ID|实例组ID|实例ID)
543
+ 注意:此字段可能返回 null,表示取不到有效值。
544
+ */
545
+ ObjectId?: string;
546
+ /**
547
+ * 任务类型
548
+ 注意:此字段可能返回 null,表示取不到有效值。
549
+ */
550
+ ObjectType?: string;
551
+ }
437
552
  /**
438
553
  * RevokeAccountPrivileges返回参数结构体
439
554
  */
@@ -779,6 +894,15 @@ export interface ModifyDBInstanceSecurityGroupsResponse {
779
894
  */
780
895
  RequestId?: string;
781
896
  }
897
+ /**
898
+ * DeleteAuditLogFile返回参数结构体
899
+ */
900
+ export interface DeleteAuditLogFileResponse {
901
+ /**
902
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
903
+ */
904
+ RequestId?: string;
905
+ }
782
906
  /**
783
907
  * DescribeClusterParamLogs返回参数结构体
784
908
  */
@@ -846,21 +970,39 @@ export interface CreateAccountsRequest {
846
970
  Accounts: Array<NewAccount>;
847
971
  }
848
972
  /**
849
- * IsolateInstance请求参数结构体
973
+ * 审计日志文件
850
974
  */
851
- export interface IsolateInstanceRequest {
975
+ export interface AuditLogFile {
852
976
  /**
853
- * 集群ID
977
+ * 审计日志文件名称
854
978
  */
855
- ClusterId: string;
979
+ FileName: string;
856
980
  /**
857
- * 实例ID数组
981
+ * 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
858
982
  */
859
- InstanceIdList: Array<string>;
983
+ CreateTime: string;
860
984
  /**
861
- * 该参数已废弃
862
- */
863
- DbType?: string;
985
+ * 文件状态值。可能返回的值为:
986
+ "creating" - 生成中;
987
+ "failed" - 创建失败;
988
+ "success" - 已生成;
989
+ */
990
+ Status: string;
991
+ /**
992
+ * 文件大小,单位为 KB。
993
+ 注意:此字段可能返回 null,表示取不到有效值。
994
+ */
995
+ FileSize: number;
996
+ /**
997
+ * 审计日志下载地址。
998
+ 注意:此字段可能返回 null,表示取不到有效值。
999
+ */
1000
+ DownloadUrl: string;
1001
+ /**
1002
+ * 错误信息。
1003
+ 注意:此字段可能返回 null,表示取不到有效值。
1004
+ */
1005
+ ErrMsg: string;
864
1006
  }
865
1007
  /**
866
1008
  * ExportInstanceSlowQueries返回参数结构体
@@ -938,6 +1080,43 @@ export interface RollBackClusterRequest {
938
1080
  */
939
1081
  RollbackTables?: Array<RollbackTable>;
940
1082
  }
1083
+ /**
1084
+ * UpgradeInstance请求参数结构体
1085
+ */
1086
+ export interface UpgradeInstanceRequest {
1087
+ /**
1088
+ * 实例ID
1089
+ */
1090
+ InstanceId: string;
1091
+ /**
1092
+ * 数据库CPU
1093
+ */
1094
+ Cpu: number;
1095
+ /**
1096
+ * 数据库内存,单位GB
1097
+ */
1098
+ Memory: number;
1099
+ /**
1100
+ * 升级类型:upgradeImmediate,upgradeInMaintain
1101
+ */
1102
+ UpgradeType: string;
1103
+ /**
1104
+ * 该参数已废弃
1105
+ */
1106
+ StorageLimit?: number;
1107
+ /**
1108
+ * 是否自动选择代金券 1是 0否 默认为0
1109
+ */
1110
+ AutoVoucher?: number;
1111
+ /**
1112
+ * 该参数已废弃
1113
+ */
1114
+ DbType?: string;
1115
+ /**
1116
+ * 交易模式 0-下单并支付 1-下单
1117
+ */
1118
+ DealMode?: number;
1119
+ }
941
1120
  /**
942
1121
  * 回档数据库及表
943
1122
  */
@@ -999,6 +1178,19 @@ export interface RemoveClusterSlaveZoneResponse {
999
1178
  */
1000
1179
  RequestId?: string;
1001
1180
  }
1181
+ /**
1182
+ * CreateAuditLogFile返回参数结构体
1183
+ */
1184
+ export interface CreateAuditLogFileResponse {
1185
+ /**
1186
+ * 审计日志文件名称。
1187
+ */
1188
+ FileName: string;
1189
+ /**
1190
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1191
+ */
1192
+ RequestId?: string;
1193
+ }
1002
1194
  /**
1003
1195
  * PauseServerless返回参数结构体
1004
1196
  */
@@ -1666,6 +1858,10 @@ export interface QueryFilter {
1666
1858
  * 搜索字段
1667
1859
  */
1668
1860
  Name?: string;
1861
+ /**
1862
+ * 操作符
1863
+ */
1864
+ Operator?: string;
1669
1865
  }
1670
1866
  /**
1671
1867
  * DescribeBackupConfig返回参数结构体
@@ -2049,13 +2245,52 @@ export interface DescribeInstanceSlowQueriesResponse {
2049
2245
  RequestId?: string;
2050
2246
  }
2051
2247
  /**
2052
- * GrantAccountPrivileges返回参数结构体
2248
+ * DescribeInstances请求参数结构体
2053
2249
  */
2054
- export interface GrantAccountPrivilegesResponse {
2250
+ export interface DescribeInstancesRequest {
2055
2251
  /**
2056
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2252
+ * 返回数量,默认为 20,最大值为 100
2057
2253
  */
2058
- RequestId?: string;
2254
+ Limit?: number;
2255
+ /**
2256
+ * 记录偏移量,默认值为0
2257
+ */
2258
+ Offset?: number;
2259
+ /**
2260
+ * 排序字段,取值范围:
2261
+ <li> CREATETIME:创建时间</li>
2262
+ <li> PERIODENDTIME:过期时间</li>
2263
+ */
2264
+ OrderBy?: string;
2265
+ /**
2266
+ * 排序类型,取值范围:
2267
+ <li> ASC:升序排序 </li>
2268
+ <li> DESC:降序排序 </li>
2269
+ */
2270
+ OrderByType?: string;
2271
+ /**
2272
+ * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
2273
+ */
2274
+ Filters?: Array<QueryFilter>;
2275
+ /**
2276
+ * 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
2277
+ */
2278
+ DbType?: string;
2279
+ /**
2280
+ * 实例状态, 可选值:
2281
+ creating 创建中
2282
+ running 运行中
2283
+ isolating 隔离中
2284
+ isolated 已隔离
2285
+ activating 恢复中
2286
+ offlining 下线中
2287
+ offlined 已下线
2288
+ */
2289
+ Status?: string;
2290
+ /**
2291
+ * 实例id列表
2292
+ */
2293
+ InstanceIds?: Array<string>;
2059
2294
  }
2060
2295
  /**
2061
2296
  * DescribeBackupDownloadUrl返回参数结构体
@@ -2510,19 +2745,36 @@ export interface InquirePriceCreateResponse {
2510
2745
  RequestId?: string;
2511
2746
  }
2512
2747
  /**
2513
- * SetRenewFlag返回参数结构体
2748
+ * IsolateInstance请求参数结构体
2514
2749
  */
2515
- export interface SetRenewFlagResponse {
2750
+ export interface IsolateInstanceRequest {
2516
2751
  /**
2517
- * 操作成功实例数
2752
+ * 集群ID
2518
2753
  */
2519
- Count: number;
2754
+ ClusterId: string;
2520
2755
  /**
2521
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2756
+ * 实例ID数组
2522
2757
  */
2523
- RequestId?: string;
2524
- }
2525
- /**
2758
+ InstanceIdList: Array<string>;
2759
+ /**
2760
+ * 该参数已废弃
2761
+ */
2762
+ DbType?: string;
2763
+ }
2764
+ /**
2765
+ * SetRenewFlag返回参数结构体
2766
+ */
2767
+ export interface SetRenewFlagResponse {
2768
+ /**
2769
+ * 操作成功实例数
2770
+ */
2771
+ Count: number;
2772
+ /**
2773
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2774
+ */
2775
+ RequestId?: string;
2776
+ }
2777
+ /**
2526
2778
  * 数据库账号信息
2527
2779
  */
2528
2780
  export interface Account {
@@ -2590,41 +2842,41 @@ export interface DescribeClusterParamLogsRequest {
2590
2842
  Offset?: number;
2591
2843
  }
2592
2844
  /**
2593
- * UpgradeInstance请求参数结构体
2845
+ * 安全组规则
2594
2846
  */
2595
- export interface UpgradeInstanceRequest {
2847
+ export interface PolicyRule {
2596
2848
  /**
2597
- * 实例ID
2849
+ * 策略,ACCEPT或者DROP
2598
2850
  */
2599
- InstanceId: string;
2851
+ Action: string;
2600
2852
  /**
2601
- * 数据库CPU
2853
+ * 来源Ip或Ip段,例如192.168.0.0/16
2602
2854
  */
2603
- Cpu: number;
2855
+ CidrIp: string;
2604
2856
  /**
2605
- * 数据库内存,单位GB
2857
+ * 端口
2606
2858
  */
2607
- Memory: number;
2859
+ PortRange: string;
2608
2860
  /**
2609
- * 升级类型:upgradeImmediate,upgradeInMaintain
2861
+ * 网络协议,支持udp、tcp等
2610
2862
  */
2611
- UpgradeType: string;
2863
+ IpProtocol: string;
2612
2864
  /**
2613
- * 该参数已废弃
2865
+ * 协议端口ID或者协议端口组ID。
2614
2866
  */
2615
- StorageLimit?: number;
2867
+ ServiceModule: string;
2616
2868
  /**
2617
- * 是否自动选择代金券 1是 0否 默认为0
2869
+ * IP地址ID或者ID地址组ID。
2618
2870
  */
2619
- AutoVoucher?: number;
2871
+ AddressModule: string;
2620
2872
  /**
2621
- * 该参数已废弃
2873
+ * id
2622
2874
  */
2623
- DbType?: string;
2875
+ Id: string;
2624
2876
  /**
2625
- * 交易模式 0-下单并支付 1-下单
2877
+ * 描述
2626
2878
  */
2627
- DealMode?: number;
2879
+ Desc: string;
2628
2880
  }
2629
2881
  /**
2630
2882
  * DescribeMaintainPeriod返回参数结构体
@@ -2746,34 +2998,49 @@ export interface DescribeRollbackTimeValidityRequest {
2746
2998
  ExpectTimeThresh: number;
2747
2999
  }
2748
3000
  /**
2749
- * IsolateCluster请求参数结构体
3001
+ * CreateAuditLogFile请求参数结构体
2750
3002
  */
2751
- export interface IsolateClusterRequest {
3003
+ export interface CreateAuditLogFileRequest {
2752
3004
  /**
2753
- * 集群ID
3005
+ * 实例ID
2754
3006
  */
2755
- ClusterId: string;
3007
+ InstanceId: string;
2756
3008
  /**
2757
- * 该参数已废用
3009
+ * 开始时间,格式为:"2017-07-12 10:29:20"。
2758
3010
  */
2759
- DbType?: string;
3011
+ StartTime: string;
3012
+ /**
3013
+ * 结束时间,格式为:"2017-07-12 10:29:20"。
3014
+ */
3015
+ EndTime: string;
3016
+ /**
3017
+ * 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
3018
+ */
3019
+ Order?: string;
3020
+ /**
3021
+ * 排序字段。支持值包括:
3022
+ "timestamp" - 时间戳;
3023
+ "affectRows" - 影响行数;
3024
+ "execTime" - 执行时间。
3025
+ */
3026
+ OrderBy?: string;
3027
+ /**
3028
+ * 过滤条件。可按设置的过滤条件过滤日志。
3029
+ */
3030
+ Filter?: AuditLogFilter;
2760
3031
  }
2761
3032
  /**
2762
- * DescribeClusterInstanceGrps返回参数结构体
3033
+ * DeleteAuditLogFile请求参数结构体
2763
3034
  */
2764
- export interface DescribeClusterInstanceGrpsResponse {
3035
+ export interface DeleteAuditLogFileRequest {
2765
3036
  /**
2766
- * 实例组个数
2767
- */
2768
- TotalCount: number;
2769
- /**
2770
- * 实例组列表
3037
+ * 实例ID
2771
3038
  */
2772
- InstanceGrpInfoList: Array<CynosdbInstanceGrp>;
3039
+ InstanceId: string;
2773
3040
  /**
2774
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3041
+ * 审计日志文件名称。
2775
3042
  */
2776
- RequestId?: string;
3043
+ FileName: string;
2777
3044
  }
2778
3045
  /**
2779
3046
  * AddInstances请求参数结构体
@@ -2851,52 +3118,13 @@ export interface ModifyClusterSlaveZoneRequest {
2851
3118
  NewSlaveZone: string;
2852
3119
  }
2853
3120
  /**
2854
- * DescribeInstances请求参数结构体
3121
+ * GrantAccountPrivileges返回参数结构体
2855
3122
  */
2856
- export interface DescribeInstancesRequest {
2857
- /**
2858
- * 返回数量,默认为 20,最大值为 100
2859
- */
2860
- Limit?: number;
2861
- /**
2862
- * 记录偏移量,默认值为0
2863
- */
2864
- Offset?: number;
2865
- /**
2866
- * 排序字段,取值范围:
2867
- <li> CREATETIME:创建时间</li>
2868
- <li> PERIODENDTIME:过期时间</li>
2869
- */
2870
- OrderBy?: string;
2871
- /**
2872
- * 排序类型,取值范围:
2873
- <li> ASC:升序排序 </li>
2874
- <li> DESC:降序排序 </li>
2875
- */
2876
- OrderByType?: string;
2877
- /**
2878
- * 搜索条件,若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
2879
- */
2880
- Filters?: Array<QueryFilter>;
2881
- /**
2882
- * 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
2883
- */
2884
- DbType?: string;
2885
- /**
2886
- * 实例状态, 可选值:
2887
- creating 创建中
2888
- running 运行中
2889
- isolating 隔离中
2890
- isolated 已隔离
2891
- activating 恢复中
2892
- offlining 下线中
2893
- offlined 已下线
2894
- */
2895
- Status?: string;
3123
+ export interface GrantAccountPrivilegesResponse {
2896
3124
  /**
2897
- * 实例id列表
3125
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2898
3126
  */
2899
- InstanceIds?: Array<string>;
3127
+ RequestId?: string;
2900
3128
  }
2901
3129
  /**
2902
3130
  * 参数修改记录
@@ -2927,6 +3155,51 @@ export interface ClusterParamModifyLog {
2927
3155
  */
2928
3156
  UpdateTime: string;
2929
3157
  }
3158
+ /**
3159
+ * DescribeInstanceSlowQueries请求参数结构体
3160
+ */
3161
+ export interface DescribeInstanceSlowQueriesRequest {
3162
+ /**
3163
+ * 实例ID
3164
+ */
3165
+ InstanceId: string;
3166
+ /**
3167
+ * 事务开始最早时间
3168
+ */
3169
+ StartTime?: string;
3170
+ /**
3171
+ * 事务开始最晚时间
3172
+ */
3173
+ EndTime?: string;
3174
+ /**
3175
+ * 限制条数
3176
+ */
3177
+ Limit?: number;
3178
+ /**
3179
+ * 偏移量
3180
+ */
3181
+ Offset?: number;
3182
+ /**
3183
+ * 用户名
3184
+ */
3185
+ Username?: string;
3186
+ /**
3187
+ * 客户端host
3188
+ */
3189
+ Host?: string;
3190
+ /**
3191
+ * 数据库名
3192
+ */
3193
+ Database?: string;
3194
+ /**
3195
+ * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
3196
+ */
3197
+ OrderBy?: string;
3198
+ /**
3199
+ * 排序类型,可选值:asc,desc
3200
+ */
3201
+ OrderByType?: string;
3202
+ }
2930
3203
  /**
2931
3204
  * 实例详情
2932
3205
  */
@@ -3227,6 +3500,15 @@ export interface ModifyBackupNameRequest {
3227
3500
  */
3228
3501
  BackupName: string;
3229
3502
  }
3503
+ /**
3504
+ * ModifyInstanceName返回参数结构体
3505
+ */
3506
+ export interface ModifyInstanceNameResponse {
3507
+ /**
3508
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3509
+ */
3510
+ RequestId?: string;
3511
+ }
3230
3512
  /**
3231
3513
  * DescribeBinlogSaveDays返回参数结构体
3232
3514
  */
@@ -3334,6 +3616,67 @@ export interface DescribeClusterParamsRequest {
3334
3616
  */
3335
3617
  ClusterId: string;
3336
3618
  }
3619
+ /**
3620
+ * 审计日志详细信息
3621
+ */
3622
+ export interface AuditLog {
3623
+ /**
3624
+ * 影响行数。
3625
+ */
3626
+ AffectRows: number;
3627
+ /**
3628
+ * 错误码。
3629
+ */
3630
+ ErrCode: number;
3631
+ /**
3632
+ * SQL类型。
3633
+ */
3634
+ SqlType: string;
3635
+ /**
3636
+ * 表名称。
3637
+ */
3638
+ TableName: string;
3639
+ /**
3640
+ * 实例名称。
3641
+ */
3642
+ InstanceName: string;
3643
+ /**
3644
+ * 审计策略名称。
3645
+ */
3646
+ PolicyName: string;
3647
+ /**
3648
+ * 数据库名称。
3649
+ */
3650
+ DBName: string;
3651
+ /**
3652
+ * SQL语句。
3653
+ */
3654
+ Sql: string;
3655
+ /**
3656
+ * 客户端地址。
3657
+ */
3658
+ Host: string;
3659
+ /**
3660
+ * 用户名。
3661
+ */
3662
+ User: string;
3663
+ /**
3664
+ * 执行时间。
3665
+ */
3666
+ ExecTime: number;
3667
+ /**
3668
+ * 时间戳。
3669
+ */
3670
+ Timestamp: string;
3671
+ /**
3672
+ * 发送行数。
3673
+ */
3674
+ SentRows: number;
3675
+ /**
3676
+ * 执行线程ID。
3677
+ */
3678
+ ThreadId: number;
3679
+ }
3337
3680
  /**
3338
3681
  * DescribeInstanceSpecs返回参数结构体
3339
3682
  */
@@ -3391,41 +3734,38 @@ export interface ParamItem {
3391
3734
  OldValue: string;
3392
3735
  }
3393
3736
  /**
3394
- * 安全组规则
3737
+ * IsolateCluster请求参数结构体
3395
3738
  */
3396
- export interface PolicyRule {
3397
- /**
3398
- * 策略,ACCEPT或者DROP
3399
- */
3400
- Action: string;
3401
- /**
3402
- * 来源Ip或Ip段,例如192.168.0.0/16
3403
- */
3404
- CidrIp: string;
3739
+ export interface IsolateClusterRequest {
3405
3740
  /**
3406
- * 端口
3741
+ * 集群ID
3407
3742
  */
3408
- PortRange: string;
3743
+ ClusterId: string;
3409
3744
  /**
3410
- * 网络协议,支持udp、tcp等
3745
+ * 该参数已废用
3411
3746
  */
3412
- IpProtocol: string;
3747
+ DbType?: string;
3748
+ }
3749
+ /**
3750
+ * DescribeAuditLogFiles请求参数结构体
3751
+ */
3752
+ export interface DescribeAuditLogFilesRequest {
3413
3753
  /**
3414
- * 协议端口ID或者协议端口组ID。
3754
+ * 实例ID
3415
3755
  */
3416
- ServiceModule: string;
3756
+ InstanceId: string;
3417
3757
  /**
3418
- * IP地址ID或者ID地址组ID
3758
+ * 分页大小参数。默认值为 20,最小值为 1,最大值为 100
3419
3759
  */
3420
- AddressModule: string;
3760
+ Limit?: number;
3421
3761
  /**
3422
- * id
3762
+ * 分页偏移量。
3423
3763
  */
3424
- Id: string;
3764
+ Offset?: number;
3425
3765
  /**
3426
- * 描述
3766
+ * 审计日志文件名。
3427
3767
  */
3428
- Desc: string;
3768
+ FileName?: string;
3429
3769
  }
3430
3770
  /**
3431
3771
  * DescribeClusterDetail返回参数结构体
@@ -3441,49 +3781,21 @@ export interface DescribeClusterDetailResponse {
3441
3781
  RequestId?: string;
3442
3782
  }
3443
3783
  /**
3444
- * DescribeInstanceSlowQueries请求参数结构体
3784
+ * DescribeClusterInstanceGrps返回参数结构体
3445
3785
  */
3446
- export interface DescribeInstanceSlowQueriesRequest {
3447
- /**
3448
- * 实例ID
3449
- */
3450
- InstanceId: string;
3451
- /**
3452
- * 事务开始最早时间
3453
- */
3454
- StartTime?: string;
3455
- /**
3456
- * 事务开始最晚时间
3457
- */
3458
- EndTime?: string;
3459
- /**
3460
- * 限制条数
3461
- */
3462
- Limit?: number;
3463
- /**
3464
- * 偏移量
3465
- */
3466
- Offset?: number;
3467
- /**
3468
- * 用户名
3469
- */
3470
- Username?: string;
3471
- /**
3472
- * 客户端host
3473
- */
3474
- Host?: string;
3786
+ export interface DescribeClusterInstanceGrpsResponse {
3475
3787
  /**
3476
- * 数据库名
3788
+ * 实例组个数
3477
3789
  */
3478
- Database?: string;
3790
+ TotalCount: number;
3479
3791
  /**
3480
- * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
3792
+ * 实例组列表
3481
3793
  */
3482
- OrderBy?: string;
3794
+ InstanceGrpInfoList: Array<CynosdbInstanceGrp>;
3483
3795
  /**
3484
- * 排序类型,可选值:asc,desc
3796
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3485
3797
  */
3486
- OrderByType?: string;
3798
+ RequestId?: string;
3487
3799
  }
3488
3800
  /**
3489
3801
  * DescribeBinlogs请求参数结构体