Skip to content

Commit 33c351f

Browse files
committed
add
1 parent 175163d commit 33c351f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

tencentcloud/services/mongodb/resource_tc_mongodb_instance_backup_rule.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func ResourceTencentCloudMongodbInstanceBackupRule() *schema.Resource {
4747
"backup_frequency": {
4848
Type: schema.TypeInt,
4949
Optional: true,
50-
Description: "Automatic backup frequency, for internal display, default value is 24h.",
50+
Description: "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.",
5151
},
5252

5353
"notify": {
@@ -60,37 +60,37 @@ func ResourceTencentCloudMongodbInstanceBackupRule() *schema.Resource {
6060
Optional: true,
6161
Computed: true,
6262
Type: schema.TypeInt,
63-
Description: "Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 365.",
63+
Description: "Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].",
6464
},
6565

6666
"active_weekdays": {
6767
Type: schema.TypeString,
6868
Optional: true,
69-
Description: "Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.",
69+
Description: "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.",
7070
},
7171

7272
"long_term_unit": {
7373
Type: schema.TypeString,
7474
Optional: true,
75-
Description: "Long-term retention cycle, weekly, monthly, empty means not enabled.",
75+
Description: "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: Specify `monthly`.",
7676
},
7777

7878
"long_term_active_days": {
7979
Type: schema.TypeString,
8080
Optional: true,
81-
Description: "Which days to retain long-term, week 0-6, month 1-31, comma separated.",
81+
Description: "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.",
8282
},
8383

8484
"long_term_expired_days": {
8585
Type: schema.TypeInt,
8686
Optional: true,
87-
Description: "How many days to retain long-term backups.",
87+
Description: "Long-term backup retention period. Value range [30, 1075].",
8888
},
8989

9090
"oplog_expired_days": {
9191
Type: schema.TypeInt,
9292
Optional: true,
93-
Description: "How many days to retain incremental backups.",
93+
Description: "Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].",
9494
},
9595

9696
"backup_version": {
@@ -102,7 +102,7 @@ func ResourceTencentCloudMongodbInstanceBackupRule() *schema.Resource {
102102
"alarm_water_level": {
103103
Type: schema.TypeInt,
104104
Optional: true,
105-
Description: "Alert threshold. Range: 50-300.",
105+
Description: "Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].",
106106
},
107107
},
108108
}

website/docs/r/mongodb_instance_backup_rule.html.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ The following arguments are supported:
3333
- 3: Snapshot backup (supported only in cloud disk version).
3434
* `backup_time` - (Required, Int) 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.
3535
* `instance_id` - (Required, String, ForceNew) Instance ID.
36-
* `active_weekdays` - (Optional, String) Which days of the week to backup, 0-6, comma separated. Only effective for advanced backup.
37-
* `alarm_water_level` - (Optional, Int) Alert threshold. Range: 50-300.
38-
* `backup_frequency` - (Optional, Int) Automatic backup frequency, for internal display, default value is 24h.
39-
* `backup_retention_period` - (Optional, Int) Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 365.
36+
* `active_weekdays` - (Optional, 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.
37+
* `alarm_water_level` - (Optional, Int) Sets the alarm threshold for backup dataset storage space usage. Unit: %. Default value: 100. Value range: [50, 300].
38+
* `backup_frequency` - (Optional, Int) 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.
39+
* `backup_retention_period` - (Optional, Int) Specifies the retention period for backup data. Unit: days, default is 7 days. Value range: [7, 365].
4040
* `backup_version` - (Optional, Int) Backup version. Old version backup is 0, advanced backup is 1. Set this value to 1 when enabling advanced backup.
41-
* `long_term_active_days` - (Optional, String) Which days to retain long-term, week 0-6, month 1-31, comma separated.
42-
* `long_term_expired_days` - (Optional, Int) How many days to retain long-term backups.
43-
* `long_term_unit` - (Optional, String) Long-term retention cycle, weekly, monthly, empty means not enabled.
41+
* `long_term_active_days` - (Optional, String) 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.
42+
* `long_term_expired_days` - (Optional, Int) Long-term backup retention period. Value range [30, 1075].
43+
* `long_term_unit` - (Optional, String) 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: Specify `monthly`.
4444
* `notify` - (Optional, Bool) Set whether to send failure alerts when automatic backup errors occur.
4545
- true: Send.
4646
- false: Do not send.
47-
* `oplog_expired_days` - (Optional, Int) How many days to retain incremental backups.
47+
* `oplog_expired_days` - (Optional, Int) Incremental backup retention period. Unit: days. Default value: 7 days. Value range: [7,365].
4848

4949
## Attributes Reference
5050

0 commit comments

Comments
 (0)