tencentcloud-sdk-nodejs-mongodb 4.1.155 → 4.1.157
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.
package/package.json
CHANGED
|
@@ -204,7 +204,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
204
204
|
*/
|
|
205
205
|
InquirePriceCreateDBInstances(req: InquirePriceCreateDBInstancesRequest, cb?: (error: string, rep: InquirePriceCreateDBInstancesResponse) => void): Promise<InquirePriceCreateDBInstancesResponse>;
|
|
206
206
|
/**
|
|
207
|
-
*
|
|
207
|
+
* 本接口(SetBackupRules)用于设置 MongoDB 云数据库的自动备份规则。
|
|
208
208
|
*/
|
|
209
209
|
SetBackupRules(req: SetBackupRulesRequest, cb?: (error: string, rep: SetBackupRulesResponse) => void): Promise<SetBackupRulesResponse>;
|
|
210
210
|
/**
|
|
@@ -322,7 +322,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
322
322
|
return this.request("InquirePriceCreateDBInstances", req, cb);
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
*
|
|
325
|
+
* 本接口(SetBackupRules)用于设置 MongoDB 云数据库的自动备份规则。
|
|
326
326
|
*/
|
|
327
327
|
async SetBackupRules(req, cb) {
|
|
328
328
|
return this.request("SetBackupRules", req, cb);
|
|
@@ -3516,7 +3516,7 @@ export interface EnableTransparentDataEncryptionResponse {
|
|
|
3516
3516
|
*/
|
|
3517
3517
|
export interface SetBackupRulesRequest {
|
|
3518
3518
|
/**
|
|
3519
|
-
* 实例
|
|
3519
|
+
* 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
|
3520
3520
|
*/
|
|
3521
3521
|
InstanceId: string;
|
|
3522
3522
|
/**
|
|
@@ -3534,7 +3534,9 @@ export interface SetBackupRulesRequest {
|
|
|
3534
3534
|
*/
|
|
3535
3535
|
BackupTime?: number;
|
|
3536
3536
|
/**
|
|
3537
|
-
*
|
|
3537
|
+
* 指定每日自动备份频率。
|
|
3538
|
+
- 12: 每日备份2次,间隔约12小时。
|
|
3539
|
+
- 24: 每日备份1次(默认),间隔约24小时。
|
|
3538
3540
|
*/
|
|
3539
3541
|
BackupFrequency?: number;
|
|
3540
3542
|
/**
|
|
@@ -3544,35 +3546,53 @@ export interface SetBackupRulesRequest {
|
|
|
3544
3546
|
*/
|
|
3545
3547
|
Notify?: boolean;
|
|
3546
3548
|
/**
|
|
3547
|
-
*
|
|
3549
|
+
* 指定备份数据保留时长。
|
|
3550
|
+
- 单位:天,默认为 7 天。
|
|
3551
|
+
- 取值范围:[7,365]。
|
|
3548
3552
|
*/
|
|
3549
3553
|
BackupRetentionPeriod?: number;
|
|
3550
3554
|
/**
|
|
3551
|
-
*
|
|
3555
|
+
* 指定每周内执行自动备份的具体日期。
|
|
3556
|
+
- 格式:请输入 0-6 之间的数字代表周日至周六(例如:1 代表周一),多个日期请用英文逗号 , 分隔。
|
|
3557
|
+
- 示例:输入 1,3,5 表示系统将在每周的周一、周三、周五执行备份。
|
|
3558
|
+
- 默认值:不设置,则默认为全周期 (0,1,2,3,4,5,6),即每日执行备份。
|
|
3552
3559
|
*/
|
|
3553
3560
|
ActiveWeekdays?: string;
|
|
3554
3561
|
/**
|
|
3555
|
-
*
|
|
3562
|
+
* 长期保留周期。支持按周或按月选择特定日期的备份(例如,每月1日、15日的备份数据),将其保留更长周期。
|
|
3563
|
+
- 不开启(默认):不启用长期保留功能。
|
|
3564
|
+
- 按周保留: 指定为 weekly。
|
|
3565
|
+
- 按月保留: 指定为 monthly。
|
|
3556
3566
|
*/
|
|
3557
3567
|
LongTermUnit?: string;
|
|
3558
3568
|
/**
|
|
3559
|
-
*
|
|
3569
|
+
* 指定用于长期保留的具体备份日期。此设置仅在 **LongTermUnit** 被设为**weekly** 或 **monthly** 时生效。
|
|
3570
|
+
- 按周(weekly)保留:请输入 0-6 之间的数字来代表周日至周六。多个日期请用英文逗号分隔。
|
|
3571
|
+
- 按月(monthly)保留:请输入 1-31 之间的数字来代表月份中的具体日期。多个日期请用英文逗号分隔。
|
|
3560
3572
|
*/
|
|
3561
3573
|
LongTermActiveDays?: string;
|
|
3562
3574
|
/**
|
|
3563
|
-
*
|
|
3575
|
+
* 长期备份保留时长。取值范围[30,1075]。
|
|
3564
3576
|
*/
|
|
3565
3577
|
LongTermExpiredDays?: number;
|
|
3566
3578
|
/**
|
|
3567
|
-
*
|
|
3579
|
+
* 增量备份保留时长。
|
|
3580
|
+
- 单位:天。
|
|
3581
|
+
- 默认值:7天。
|
|
3582
|
+
- 取值范围:[7,365]。
|
|
3568
3583
|
*/
|
|
3569
3584
|
OplogExpiredDays?: number;
|
|
3570
3585
|
/**
|
|
3571
|
-
*
|
|
3586
|
+
* 指定备份版本。
|
|
3587
|
+
- 旧版本备份:0。
|
|
3588
|
+
- 开启高级备份:1。
|
|
3572
3589
|
*/
|
|
3573
3590
|
BackupVersion?: number;
|
|
3574
3591
|
/**
|
|
3575
|
-
*
|
|
3592
|
+
* 设置备份数据集存储空间使用率的告警阈值。
|
|
3593
|
+
- 单位:%。
|
|
3594
|
+
- 默认值:100。
|
|
3595
|
+
- 取值范围:[50,300]。
|
|
3576
3596
|
*/
|
|
3577
3597
|
AlarmWaterLevel?: number;
|
|
3578
3598
|
}
|
|
@@ -4497,7 +4517,7 @@ export interface DescribeSlowLogPatternsRequest {
|
|
|
4497
4517
|
export interface Filters {
|
|
4498
4518
|
/**
|
|
4499
4519
|
* 搜索字段,目前支持:
|
|
4500
|
-
"InstanceId":实例Id,例如:cmgo
|
|
4520
|
+
"InstanceId":实例Id,例如:cmgo-****
|
|
4501
4521
|
"InstanceName":实例名称
|
|
4502
4522
|
"ClusterId":实例组Id,例如:cmgo-****
|
|
4503
4523
|
*/
|