Provides a resource to create mongodb instance backup rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MongodbInstanceBackupRule("example", {
instanceId: "cmgo-rnht8d3d",
backupMethod: 0,
backupTime: 10,
backupRetentionPeriod: 7,
backupVersion: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MongodbInstanceBackupRule("example",
instance_id="cmgo-rnht8d3d",
backup_method=0,
backup_time=10,
backup_retention_period=7,
backup_version=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMongodbInstanceBackupRule(ctx, "example", &tencentcloud.MongodbInstanceBackupRuleArgs{
InstanceId: pulumi.String("cmgo-rnht8d3d"),
BackupMethod: pulumi.Float64(0),
BackupTime: pulumi.Float64(10),
BackupRetentionPeriod: pulumi.Float64(7),
BackupVersion: pulumi.Float64(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MongodbInstanceBackupRule("example", new()
{
InstanceId = "cmgo-rnht8d3d",
BackupMethod = 0,
BackupTime = 10,
BackupRetentionPeriod = 7,
BackupVersion = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MongodbInstanceBackupRule;
import com.pulumi.tencentcloud.MongodbInstanceBackupRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MongodbInstanceBackupRule("example", MongodbInstanceBackupRuleArgs.builder()
.instanceId("cmgo-rnht8d3d")
.backupMethod(0.0)
.backupTime(10.0)
.backupRetentionPeriod(7.0)
.backupVersion(1.0)
.build());
}
}
resources:
example:
type: tencentcloud:MongodbInstanceBackupRule
properties:
instanceId: cmgo-rnht8d3d
backupMethod: 0
backupTime: 10
backupRetentionPeriod: 7
backupVersion: 1
Create MongodbInstanceBackupRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MongodbInstanceBackupRule(name: string, args: MongodbInstanceBackupRuleArgs, opts?: CustomResourceOptions);@overload
def MongodbInstanceBackupRule(resource_name: str,
args: MongodbInstanceBackupRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MongodbInstanceBackupRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_method: Optional[float] = None,
instance_id: Optional[str] = None,
backup_time: Optional[float] = None,
backup_version: Optional[float] = None,
backup_retention_period: Optional[float] = None,
backup_frequency: Optional[float] = None,
active_weekdays: Optional[str] = None,
alarm_water_level: Optional[float] = None,
long_term_active_days: Optional[str] = None,
long_term_expired_days: Optional[float] = None,
long_term_unit: Optional[str] = None,
mongodb_instance_backup_rule_id: Optional[str] = None,
notify: Optional[bool] = None,
oplog_expired_days: Optional[float] = None)func NewMongodbInstanceBackupRule(ctx *Context, name string, args MongodbInstanceBackupRuleArgs, opts ...ResourceOption) (*MongodbInstanceBackupRule, error)public MongodbInstanceBackupRule(string name, MongodbInstanceBackupRuleArgs args, CustomResourceOptions? opts = null)
public MongodbInstanceBackupRule(String name, MongodbInstanceBackupRuleArgs args)
public MongodbInstanceBackupRule(String name, MongodbInstanceBackupRuleArgs args, CustomResourceOptions options)
type: tencentcloud:MongodbInstanceBackupRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MongodbInstanceBackupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MongodbInstanceBackupRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MongodbInstanceBackupRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MongodbInstanceBackupRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MongodbInstanceBackupRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MongodbInstanceBackupRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MongodbInstanceBackupRule resource accepts the following input properties:
- Backup
Method double - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- Backup
Time double - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- Instance
Id string - Instance ID.
- Active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- Alarm
Water doubleLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- Backup
Frequency double - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- Backup
Retention doublePeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- Backup
Version double - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- Long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- Long
Term doubleExpired Days - Long-term backup retention period. Value range [30, 1075].
- Long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - Mongodb
Instance stringBackup Rule Id - ID of the resource.
- Notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- Oplog
Expired doubleDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- Backup
Method float64 - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- Backup
Time float64 - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- Instance
Id string - Instance ID.
- Active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- Alarm
Water float64Level - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- Backup
Frequency float64 - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- Backup
Retention float64Period - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- Backup
Version float64 - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- Long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- Long
Term float64Expired Days - Long-term backup retention period. Value range [30, 1075].
- Long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - Mongodb
Instance stringBackup Rule Id - ID of the resource.
- Notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- Oplog
Expired float64Days - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- backup
Method Double - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Time Double - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- instance
Id String - Instance ID.
- active
Weekdays String - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water DoubleLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency Double - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Retention DoublePeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Version Double - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- long
Term StringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term DoubleExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term StringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance StringBackup Rule Id - ID of the resource.
- notify_ Boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired DoubleDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- backup
Method number - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Time number - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- instance
Id string - Instance ID.
- active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water numberLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency number - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Retention numberPeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Version number - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term numberExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance stringBackup Rule Id - ID of the resource.
- notify boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired numberDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- backup_
method float - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup_
time float - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- instance_
id str - Instance ID.
- active_
weekdays str - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm_
water_ floatlevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup_
frequency float - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup_
retention_ floatperiod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup_
version float - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- long_
term_ stractive_ days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long_
term_ floatexpired_ days - Long-term backup retention period. Value range [30, 1075].
- long_
term_ strunit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb_
instance_ strbackup_ rule_ id - ID of the resource.
- notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog_
expired_ floatdays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- backup
Method Number - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Time Number - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- instance
Id String - Instance ID.
- active
Weekdays String - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water NumberLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency Number - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Retention NumberPeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Version Number - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- long
Term StringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term NumberExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term StringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance StringBackup Rule Id - ID of the resource.
- notify Boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired NumberDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
Outputs
All input properties are implicitly available as output properties. Additionally, the MongodbInstanceBackupRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MongodbInstanceBackupRule Resource
Get an existing MongodbInstanceBackupRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MongodbInstanceBackupRuleState, opts?: CustomResourceOptions): MongodbInstanceBackupRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_weekdays: Optional[str] = None,
alarm_water_level: Optional[float] = None,
backup_frequency: Optional[float] = None,
backup_method: Optional[float] = None,
backup_retention_period: Optional[float] = None,
backup_time: Optional[float] = None,
backup_version: Optional[float] = None,
instance_id: Optional[str] = None,
long_term_active_days: Optional[str] = None,
long_term_expired_days: Optional[float] = None,
long_term_unit: Optional[str] = None,
mongodb_instance_backup_rule_id: Optional[str] = None,
notify: Optional[bool] = None,
oplog_expired_days: Optional[float] = None) -> MongodbInstanceBackupRulefunc GetMongodbInstanceBackupRule(ctx *Context, name string, id IDInput, state *MongodbInstanceBackupRuleState, opts ...ResourceOption) (*MongodbInstanceBackupRule, error)public static MongodbInstanceBackupRule Get(string name, Input<string> id, MongodbInstanceBackupRuleState? state, CustomResourceOptions? opts = null)public static MongodbInstanceBackupRule get(String name, Output<String> id, MongodbInstanceBackupRuleState state, CustomResourceOptions options)resources: _: type: tencentcloud:MongodbInstanceBackupRule get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- Alarm
Water doubleLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- Backup
Frequency double - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- Backup
Method double - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- Backup
Retention doublePeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- Backup
Time double - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- Backup
Version double - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- Instance
Id string - Instance ID.
- Long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- Long
Term doubleExpired Days - Long-term backup retention period. Value range [30, 1075].
- Long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - Mongodb
Instance stringBackup Rule Id - ID of the resource.
- Notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- Oplog
Expired doubleDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- Active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- Alarm
Water float64Level - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- Backup
Frequency float64 - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- Backup
Method float64 - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- Backup
Retention float64Period - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- Backup
Time float64 - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- Backup
Version float64 - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- Instance
Id string - Instance ID.
- Long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- Long
Term float64Expired Days - Long-term backup retention period. Value range [30, 1075].
- Long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - Mongodb
Instance stringBackup Rule Id - ID of the resource.
- Notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- Oplog
Expired float64Days - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- active
Weekdays String - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water DoubleLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency Double - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Method Double - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Retention DoublePeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Time Double - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- backup
Version Double - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- instance
Id String - Instance ID.
- long
Term StringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term DoubleExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term StringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance StringBackup Rule Id - ID of the resource.
- notify_ Boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired DoubleDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- active
Weekdays string - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water numberLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency number - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Method number - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Retention numberPeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Time number - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- backup
Version number - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- instance
Id string - Instance ID.
- long
Term stringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term numberExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term stringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance stringBackup Rule Id - ID of the resource.
- notify boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired numberDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- active_
weekdays str - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm_
water_ floatlevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup_
frequency float - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup_
method float - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup_
retention_ floatperiod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup_
time float - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- backup_
version float - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- instance_
id str - Instance ID.
- long_
term_ stractive_ days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long_
term_ floatexpired_ days - Long-term backup retention period. Value range [30, 1075].
- long_
term_ strunit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb_
instance_ strbackup_ rule_ id - ID of the resource.
- notify bool
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog_
expired_ floatdays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
- active
Weekdays String - Specify the specific dates for automatic backups to be performed each week. Format: Enter a number between 0 and 6 to represent Sunday through Saturday (e.g., 1 represents Monday). Separate multiple dates with commas (,). Example: Entering 1,3,5 means the system will perform backups on Mondays, Wednesdays, and Fridays every week. Default: If not set, the default is a full cycle (0,1,2,3,4,5,6), meaning backups will be performed daily.
- alarm
Water NumberLevel - Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
- backup
Frequency Number - Specify the daily automatic backup frequency. 12: Back up twice a day, approximately 12 hours apart; 24: Back up once a day (default), approximately 24 hours apart.
- backup
Method Number - Set automatic backup method. Valid values:
- 0: Logical backup;
- 1: Physical backup;
- 3: Snapshot backup (supported only in cloud disk version).
- backup
Retention NumberPeriod - Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
- backup
Time Number - Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
- backup
Version Number - Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
- instance
Id String - Instance ID.
- long
Term StringActive Days - Specify the specific backup dates to be retained long-term. This setting only takes effect when LongTermUnit is set to weekly or monthly. Weekly Retention: Enter a number between 0 and 6 to represent Sunday through Saturday. Separate multiple dates with commas. Monthly Retention: Enter a number between 1 and 31 to represent specific dates within the month. Separate multiple dates with commas.
- long
Term NumberExpired Days - Long-term backup retention period. Value range [30, 1075].
- long
Term StringUnit - Long-term retention period. Supports selecting specific dates for backups on a weekly or monthly basis (e.g., backup data for the 1st and 15th of each month) to retain for a longer period. Disabled (default): Long-term retention is disabled. Weekly retention: Specify
weekly. Monthly retention: Specifymonthly. - mongodb
Instance StringBackup Rule Id - ID of the resource.
- notify Boolean
- Set whether to send failure alerts when automatic backup errors occur.
- true: Send.
- false: Do not send.
- oplog
Expired NumberDays - Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
Import
mongodb instance backup rule can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mongodbInstanceBackupRule:MongodbInstanceBackupRule example cmgo-rnht8d3d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
