You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to `02:00-06:00`. The following value can be supported: `02:00-06:00`, `06:00-10:00`, `10:00-14:00`, `14:00-18:00`, `18:00-22:00`, and `22:00-02:00`.",
110
113
},
111
114
112
-
// Computed values
113
115
"binlog_period": {
114
116
Type: schema.TypeInt,
117
+
Optional: true,
115
118
Computed: true,
116
-
Description: "Retention period for binlog in days.",
119
+
Description: "Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.",
120
+
},
121
+
122
+
"enable_binlog_standby": {
123
+
Type: schema.TypeString,
124
+
Optional: true,
125
+
Default: "off",
126
+
Description: "Whether to enable the log backup standard storage policy, `off` - close, `on` - open, the default is off.",
127
+
},
128
+
129
+
"binlog_standby_days": {
130
+
Type: schema.TypeInt,
131
+
Optional: true,
132
+
Computed: true,
133
+
Description: "The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.",
117
134
},
118
135
},
119
136
}
@@ -159,6 +176,15 @@ func resourceTencentCloudMysqlBackupPolicyRead(d *schema.ResourceData, meta inte
*`backup_time` - (Optional, String) Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to `02:00-06:00`. The following value can be supported: `02:00-06:00`, `06:00-10:00`, `10:00-14:00`, `14:00-18:00`, `18:00-22:00`, and `22:00-02:00`.
82
-
*`retention_period` - (Optional, Int) Instance backup retention days. Valid value ranges: [7~730]. And default value is `7`.
85
+
*`binlog_period` - (Optional, Int) Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
86
+
*`binlog_standby_days` - (Optional, Int) The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
87
+
*`enable_binlog_standby` - (Optional, String) Whether to enable the log backup standard storage policy, `off` - close, `on` - open, the default is off.
88
+
*`retention_period` - (Optional, Int) The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is `7`.
83
89
84
90
## Attributes Reference
85
91
86
92
In addition to all arguments above, the following attributes are exported:
87
93
88
94
*`id` - ID of the resource.
89
-
*`binlog_period` - Retention period for binlog in days.
0 commit comments