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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- Alarm
Water doubleLevel - Alert threshold. Range: 50-300.
- Backup
Frequency double - Automatic backup frequency, for internal display, default value is 24h.
- Backup
Retention doublePeriod - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- Long
Term doubleExpired Days - How many days to retain long-term backups.
- Long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- 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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- Alarm
Water float64Level - Alert threshold. Range: 50-300.
- Backup
Frequency float64 - Automatic backup frequency, for internal display, default value is 24h.
- Backup
Retention float64Period - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- Long
Term float64Expired Days - How many days to retain long-term backups.
- Long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- 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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water DoubleLevel - Alert threshold. Range: 50-300.
- backup
Frequency Double - Automatic backup frequency, for internal display, default value is 24h.
- backup
Retention DoublePeriod - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term DoubleExpired Days - How many days to retain long-term backups.
- long
Term StringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- 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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water numberLevel - Alert threshold. Range: 50-300.
- backup
Frequency number - Automatic backup frequency, for internal display, default value is 24h.
- backup
Retention numberPeriod - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term numberExpired Days - How many days to retain long-term backups.
- long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- 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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm_
water_ floatlevel - Alert threshold. Range: 50-300.
- backup_
frequency float - Automatic backup frequency, for internal display, default value is 24h.
- backup_
retention_ floatperiod - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long_
term_ floatexpired_ days - How many days to retain long-term backups.
- long_
term_ strunit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- 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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water NumberLevel - Alert threshold. Range: 50-300.
- backup
Frequency Number - Automatic backup frequency, for internal display, default value is 24h.
- backup
Retention NumberPeriod - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term NumberExpired Days - How many days to retain long-term backups.
- long
Term StringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
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 - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- Alarm
Water doubleLevel - Alert threshold. Range: 50-300.
- Backup
Frequency double - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- Long
Term doubleExpired Days - How many days to retain long-term backups.
- Long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- Active
Weekdays string - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- Alarm
Water float64Level - Alert threshold. Range: 50-300.
- Backup
Frequency float64 - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- Long
Term float64Expired Days - How many days to retain long-term backups.
- Long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- active
Weekdays String - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water DoubleLevel - Alert threshold. Range: 50-300.
- backup
Frequency Double - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term DoubleExpired Days - How many days to retain long-term backups.
- long
Term StringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- active
Weekdays string - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water numberLevel - Alert threshold. Range: 50-300.
- backup
Frequency number - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term numberExpired Days - How many days to retain long-term backups.
- long
Term stringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- active_
weekdays str - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm_
water_ floatlevel - Alert threshold. Range: 50-300.
- backup_
frequency float - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long_
term_ floatexpired_ days - How many days to retain long-term backups.
- long_
term_ strunit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
- active
Weekdays String - Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
- alarm
Water NumberLevel - Alert threshold. Range: 50-300.
- backup
Frequency Number - Automatic backup frequency, for internal display, default value is 24h.
- 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 - Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 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 - Which days to retain long-term, week 0-6, month 1-31, comma separated.
- long
Term NumberExpired Days - How many days to retain long-term backups.
- long
Term StringUnit - Long-term retention cycle, weekly, monthly, empty means not enabled.
- 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 - How many days to retain incremental backups.
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.
