@alicloud/polardb20170801 8.2.3 → 8.2.5
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/dist/client.d.ts +12 -12
- package/dist/client.js +24 -12
- package/dist/client.js.map +1 -1
- package/dist/models/CreateApplicationRequest.d.ts +177 -24
- package/dist/models/CreateApplicationRequest.js +73 -1
- package/dist/models/CreateApplicationRequest.js.map +1 -1
- package/dist/models/CreateApplicationResponseBody.d.ts +1 -1
- package/dist/models/CreateApplicationShrinkRequest.d.ts +32 -15
- package/dist/models/CreateApplicationShrinkRequest.js +4 -0
- package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
- package/dist/models/DescribeBackupPolicyRequest.d.ts +1 -1
- package/dist/models/DescribeBackupPolicyResponseBody.d.ts +85 -125
- package/dist/models/DescribeBackupPolicyResponseBody.js +4 -0
- package/dist/models/DescribeBackupPolicyResponseBody.js.map +1 -1
- package/dist/models/DescribeDetachedBackupsRequest.d.ts +15 -18
- package/dist/models/DescribeDetachedBackupsRequest.js.map +1 -1
- package/dist/models/DescribeDetachedBackupsResponseBody.d.ts +3 -3
- package/dist/models/ModifyBackupPolicyRequest.d.ts +117 -185
- package/dist/models/ModifyBackupPolicyRequest.js.map +1 -1
- package/dist/models/ModifyBackupPolicyResponseBody.d.ts +1 -1
- package/dist/models/ModifyBackupPolicyShrinkRequest.d.ts +83 -134
- package/dist/models/ModifyBackupPolicyShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +51 -47
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +28 -12
- package/src/models/CreateApplicationRequest.ts +231 -24
- package/src/models/CreateApplicationResponseBody.ts +1 -1
- package/src/models/CreateApplicationShrinkRequest.ts +36 -15
- package/src/models/DescribeBackupPolicyRequest.ts +1 -1
- package/src/models/DescribeBackupPolicyResponseBody.ts +89 -125
- package/src/models/DescribeDetachedBackupsRequest.ts +17 -20
- package/src/models/DescribeDetachedBackupsResponseBody.ts +3 -3
- package/src/models/ModifyBackupPolicyRequest.ts +120 -188
- package/src/models/ModifyBackupPolicyResponseBody.ts +1 -1
- package/src/models/ModifyBackupPolicyShrinkRequest.ts +86 -137
- package/src/models/model.ts +2 -0
|
@@ -7,11 +7,9 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* The action type. Valid values:
|
|
9
9
|
*
|
|
10
|
-
* - **CREATE**:
|
|
11
|
-
*
|
|
12
|
-
* - **
|
|
13
|
-
*
|
|
14
|
-
* - **DELETE**: Delete
|
|
10
|
+
* - **CREATE**: create
|
|
11
|
+
* - **UPDATE**: update
|
|
12
|
+
* - **DELETE**: delete
|
|
15
13
|
*
|
|
16
14
|
* @example
|
|
17
15
|
* CREATE
|
|
@@ -21,7 +19,7 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
21
19
|
* @remarks
|
|
22
20
|
* Indicates whether the backup policy is automatically generated by the system.
|
|
23
21
|
*
|
|
24
|
-
* > This value is automatically generated. You do not need to specify
|
|
22
|
+
* > This parameter value is automatically generated. You do not need to specify it.
|
|
25
23
|
*
|
|
26
24
|
* @example
|
|
27
25
|
* false
|
|
@@ -31,9 +29,8 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
31
29
|
* @remarks
|
|
32
30
|
* The backup type. Valid values:
|
|
33
31
|
*
|
|
34
|
-
* - **F**: full backup
|
|
35
|
-
*
|
|
36
|
-
* > This parameter cannot be modified and is fixed to `F`.
|
|
32
|
+
* - **F**: full backup.
|
|
33
|
+
* > This parameter cannot be modified and is fixed to F.
|
|
37
34
|
*
|
|
38
35
|
* @example
|
|
39
36
|
* F
|
|
@@ -41,7 +38,7 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
41
38
|
bakType?: string;
|
|
42
39
|
/**
|
|
43
40
|
* @remarks
|
|
44
|
-
* The destination region
|
|
41
|
+
* The destination region of the backup policy.
|
|
45
42
|
*
|
|
46
43
|
* @example
|
|
47
44
|
* cn-beijing
|
|
@@ -49,13 +46,11 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
49
46
|
destRegion?: string;
|
|
50
47
|
/**
|
|
51
48
|
* @remarks
|
|
52
|
-
* The destination type
|
|
49
|
+
* The destination type of the backup policy. Valid values:
|
|
53
50
|
*
|
|
54
51
|
* - **level1**: level-1 backup
|
|
55
|
-
*
|
|
56
52
|
* - **level2**: level-2 backup
|
|
57
|
-
*
|
|
58
|
-
* - **level2Cross**: cross-region level-2 backup
|
|
53
|
+
* - **level2Cross**: level-2 cross-region backup
|
|
59
54
|
*
|
|
60
55
|
* @example
|
|
61
56
|
* level2
|
|
@@ -63,9 +58,9 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
63
58
|
destType?: string;
|
|
64
59
|
/**
|
|
65
60
|
* @remarks
|
|
66
|
-
* The method
|
|
61
|
+
* The method for converting level-1 backups to level-2 backups. Valid values:
|
|
67
62
|
*
|
|
68
|
-
* - **copy**:
|
|
63
|
+
* - **copy**: copy
|
|
69
64
|
*
|
|
70
65
|
* @example
|
|
71
66
|
* copy
|
|
@@ -75,15 +70,12 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
75
70
|
* @remarks
|
|
76
71
|
* The scheduling type. Valid values:
|
|
77
72
|
*
|
|
78
|
-
* - **dayOfWeek**:
|
|
79
|
-
*
|
|
80
|
-
* - **
|
|
81
|
-
*
|
|
82
|
-
* - **dayOfYear**: Yearly schedule
|
|
73
|
+
* - **dayOfWeek**: scheduled by week
|
|
74
|
+
* - **dayOfMonth**: scheduled by month
|
|
75
|
+
* - **dayOfYear**: scheduled by year
|
|
76
|
+
* - **backupInterval**: scheduled at fixed intervals
|
|
83
77
|
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* > This parameter is required only if `FilterType` is set to **crontab**.
|
|
78
|
+
* > This parameter is required only when FilterType is set to **crontab**.
|
|
87
79
|
*
|
|
88
80
|
* @example
|
|
89
81
|
* dayOfWeek
|
|
@@ -91,11 +83,10 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
91
83
|
filterKey?: string;
|
|
92
84
|
/**
|
|
93
85
|
* @remarks
|
|
94
|
-
* The filter type
|
|
95
|
-
*
|
|
96
|
-
* - **crontab**: Recurring schedule
|
|
86
|
+
* The filter type of the advanced policy. Valid values:
|
|
97
87
|
*
|
|
98
|
-
* - **
|
|
88
|
+
* - **crontab**: periodic scheduling
|
|
89
|
+
* - **event**: event-based scheduling
|
|
99
90
|
*
|
|
100
91
|
* @example
|
|
101
92
|
* crontab
|
|
@@ -111,11 +102,9 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
111
102
|
filterValue?: string;
|
|
112
103
|
/**
|
|
113
104
|
* @remarks
|
|
114
|
-
* The
|
|
115
|
-
*
|
|
116
|
-
* - **
|
|
117
|
-
*
|
|
118
|
-
* - **false**: Retains all backups.
|
|
105
|
+
* The 24-hour backup data retention policy. Valid values:
|
|
106
|
+
* - **true**: Only the first backup set of the day is retained for backups older than 24 hours.
|
|
107
|
+
* - **false**: All backup sets are retained.
|
|
119
108
|
*
|
|
120
109
|
* @example
|
|
121
110
|
* true
|
|
@@ -123,13 +112,11 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
123
112
|
onlyPreserveOneEachDay?: boolean;
|
|
124
113
|
/**
|
|
125
114
|
* @remarks
|
|
126
|
-
* The
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* - **false**: Retains all backup sets.
|
|
115
|
+
* The hourly backup data retention policy. Valid values:
|
|
116
|
+
* * **true**: Only the earliest backup set within each hour is retained for backups older than 1 hour.
|
|
117
|
+
* * **false**: All backup sets are retained.
|
|
131
118
|
*
|
|
132
|
-
* > This parameter cannot be modified and is fixed to
|
|
119
|
+
* > This parameter cannot be modified and is fixed to true.
|
|
133
120
|
*
|
|
134
121
|
* @example
|
|
135
122
|
* true
|
|
@@ -137,7 +124,7 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
137
124
|
onlyPreserveOneEachHour?: boolean;
|
|
138
125
|
/**
|
|
139
126
|
* @remarks
|
|
140
|
-
* The
|
|
127
|
+
* The backup policy ID. You can call the [DescribeBackupPolicy](https://help.aliyun.com/document_detail/2319231.html) operation to query the backup policy ID.
|
|
141
128
|
*
|
|
142
129
|
* @example
|
|
143
130
|
* 71930ac2e9f15e41615e10627c******
|
|
@@ -145,11 +132,10 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
145
132
|
policyId?: string;
|
|
146
133
|
/**
|
|
147
134
|
* @remarks
|
|
148
|
-
* The retention type
|
|
135
|
+
* The retention type of backup sets. Valid values:
|
|
149
136
|
*
|
|
150
|
-
* - **never**:
|
|
151
|
-
*
|
|
152
|
-
* - **delay**: Expires after a specified number of days.
|
|
137
|
+
* - **never**: never expires
|
|
138
|
+
* - **delay**: expires after a fixed number of days
|
|
153
139
|
*
|
|
154
140
|
* @example
|
|
155
141
|
* delay
|
|
@@ -157,7 +143,7 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
157
143
|
retentionType?: string;
|
|
158
144
|
/**
|
|
159
145
|
* @remarks
|
|
160
|
-
* The number of days to retain
|
|
146
|
+
* The number of days to retain backups.
|
|
161
147
|
*
|
|
162
148
|
* @example
|
|
163
149
|
* 7
|
|
@@ -165,7 +151,7 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
165
151
|
retentionValue?: string;
|
|
166
152
|
/**
|
|
167
153
|
* @remarks
|
|
168
|
-
* The source region
|
|
154
|
+
* The source region of the backup policy.
|
|
169
155
|
*
|
|
170
156
|
* @example
|
|
171
157
|
* cn-shanghai
|
|
@@ -173,15 +159,12 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
173
159
|
srcRegion?: string;
|
|
174
160
|
/**
|
|
175
161
|
* @remarks
|
|
176
|
-
* The source type
|
|
162
|
+
* The source type of the backup policy. Valid values:
|
|
177
163
|
*
|
|
178
164
|
* - **db**: database cluster
|
|
179
|
-
*
|
|
180
165
|
* - **level1**: level-1 backup
|
|
181
|
-
*
|
|
182
166
|
* - **level2**: level-2 backup
|
|
183
|
-
*
|
|
184
|
-
* - **level2Cross**: cross-region level-2 backup
|
|
167
|
+
* - **level2Cross**: level-2 cross-region backup
|
|
185
168
|
*
|
|
186
169
|
* @example
|
|
187
170
|
* level1
|
|
@@ -244,32 +227,24 @@ export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
|
244
227
|
export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
245
228
|
/**
|
|
246
229
|
* @remarks
|
|
247
|
-
* The advanced backup
|
|
248
|
-
*
|
|
249
|
-
* >
|
|
250
|
-
* >
|
|
251
|
-
* > - - This parameter is supported only for clusters for which `BackupPolicyLevel` is set to `Advanced`.
|
|
230
|
+
* The advanced backup policy.
|
|
231
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
232
|
+
* > * * Only clusters with BackupPolicyLevel set to Advanced support this parameter.
|
|
252
233
|
*/
|
|
253
234
|
advancedDataPolicies?: ModifyBackupPolicyRequestAdvancedDataPolicies[];
|
|
254
235
|
/**
|
|
255
236
|
* @remarks
|
|
256
237
|
* The backup frequency. Valid values:
|
|
257
238
|
*
|
|
258
|
-
* - **Normal** (default):
|
|
259
|
-
*
|
|
260
|
-
* - **
|
|
261
|
-
*
|
|
262
|
-
* - **3/24H**: high-frequency backup. The cluster is backed up every 3 hours.
|
|
239
|
+
* - **Normal** (default): regular backup. Automatic backup is performed once a day at a scheduled time.
|
|
240
|
+
* - **2/24H**: high-frequency backup. Backup is performed every 2 hours.
|
|
241
|
+
* - **3/24H**: high-frequency backup. Backup is performed every 3 hours.
|
|
242
|
+
* - **4/24H**: high-frequency backup. Backup is performed every 4 hours.
|
|
263
243
|
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* > * * If
|
|
267
|
-
* >
|
|
268
|
-
* > * - If you enable high-frequency backup, the **PreferredBackupPeriod** parameter is automatically set to all days of the week (from Monday to Sunday).
|
|
269
|
-
* >
|
|
270
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
271
|
-
* >
|
|
272
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
244
|
+
* > * * After high-frequency backup is enabled, all backups completed within 24 hours are retained. For backups older than 24 hours, only the first backup completed after 00:00 each day is retained, and all others are deleted.
|
|
245
|
+
* > * * After high-frequency backup is enabled, the backup cycle parameter PreferredBackupPeriod defaults to all days of the week (Monday through Sunday).
|
|
246
|
+
* > * * If the region of your PolarDB for MySQL cluster supports the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
247
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
273
248
|
*
|
|
274
249
|
* @example
|
|
275
250
|
* Normal
|
|
@@ -277,17 +252,12 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
277
252
|
backupFrequency?: string;
|
|
278
253
|
/**
|
|
279
254
|
* @remarks
|
|
280
|
-
* The
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* > * * This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
287
|
-
* >
|
|
288
|
-
* > * - Check the `AdvancedPolicyOption` parameter in the response of the [DescribeBackupPolicy](https://help.aliyun.com/document_detail/2319231.html) operation to determine whether the cluster supports advanced backup. If the cluster supports advanced backup, you can request this feature in [Advanced backup settings](~611727~~).
|
|
289
|
-
* >
|
|
290
|
-
* > * - After you enable advanced backup, you **cannot** switch back to standard backup.
|
|
255
|
+
* The backup policy level. Valid values:
|
|
256
|
+
* * **Normal**: regular backup.
|
|
257
|
+
* * **Advanced**: advanced backup.
|
|
258
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
259
|
+
* > * * You can check the AdvancedPolicyOption response parameter of the [DescribeBackupPolicy](https://help.aliyun.com/document_detail/2319231.html) operation to determine whether the cluster supports advanced backup. If the cluster supports advanced backup, you can apply to use this feature through [Advanced backup settings](~611727~~).
|
|
260
|
+
* > * * After advanced backup is enabled, rollback to regular backup is **not supported**.
|
|
291
261
|
*
|
|
292
262
|
* @example
|
|
293
263
|
* Normal
|
|
@@ -295,15 +265,15 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
295
265
|
backupPolicyLevel?: string;
|
|
296
266
|
/**
|
|
297
267
|
* @remarks
|
|
298
|
-
* Specifies whether to retain backups when
|
|
268
|
+
* Specifies whether to retain backups when the cluster is deleted. Valid values:
|
|
299
269
|
*
|
|
300
|
-
* - **ALL**:
|
|
270
|
+
* - **ALL**: Long-term retention (LTR) of all backups.
|
|
301
271
|
*
|
|
302
|
-
* - **LATEST**:
|
|
272
|
+
* - **LATEST**: Long-term retention (LTR) of only the last backup.
|
|
303
273
|
*
|
|
304
|
-
* - **NONE**: Does not retain
|
|
274
|
+
* - **NONE**: Does not retain any backups.
|
|
305
275
|
*
|
|
306
|
-
* >
|
|
276
|
+
* > Default value: NONE.
|
|
307
277
|
*
|
|
308
278
|
* @example
|
|
309
279
|
* NONE
|
|
@@ -313,7 +283,7 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
313
283
|
* @remarks
|
|
314
284
|
* The cluster ID.
|
|
315
285
|
*
|
|
316
|
-
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/98094.html) operation to query
|
|
286
|
+
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/98094.html) operation to query information about all clusters in a specific region, including cluster IDs.
|
|
317
287
|
*
|
|
318
288
|
* This parameter is required.
|
|
319
289
|
*
|
|
@@ -325,19 +295,14 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
325
295
|
* @remarks
|
|
326
296
|
* The backup frequency. Valid values:
|
|
327
297
|
*
|
|
328
|
-
* - **Normal** (default):
|
|
329
|
-
*
|
|
330
|
-
* - **
|
|
331
|
-
*
|
|
332
|
-
* - **3/24H**: high-frequency backup. The cluster is backed up every 3 hours.
|
|
298
|
+
* - **Normal** (default): regular backup. Automatic backup is performed once a day at a scheduled time.
|
|
299
|
+
* - **2/24H**: high-frequency backup. Backup is performed every 2 hours.
|
|
300
|
+
* - **3/24H**: high-frequency backup. Backup is performed every 3 hours.
|
|
301
|
+
* - **4/24H**: high-frequency backup. Backup is performed every 4 hours.
|
|
333
302
|
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
* > * *
|
|
337
|
-
* >
|
|
338
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
339
|
-
* >
|
|
340
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
303
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
304
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
305
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
341
306
|
*
|
|
342
307
|
* @example
|
|
343
308
|
* Normal
|
|
@@ -345,29 +310,19 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
345
310
|
dataLevel1BackupFrequency?: string;
|
|
346
311
|
/**
|
|
347
312
|
* @remarks
|
|
348
|
-
* The level-1 backup cycle. Valid values:
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* - **Sunday**
|
|
363
|
-
*
|
|
364
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
365
|
-
* >
|
|
366
|
-
* > * - This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
367
|
-
* >
|
|
368
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
369
|
-
* >
|
|
370
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
313
|
+
* The level-1 backup cycle. Valid values:
|
|
314
|
+
* * **Monday**
|
|
315
|
+
* * **Tuesday**
|
|
316
|
+
* * **Wednesday**
|
|
317
|
+
* * **Thursday**
|
|
318
|
+
* * **Friday**
|
|
319
|
+
* * **Saturday**
|
|
320
|
+
* * **Sunday**
|
|
321
|
+
*
|
|
322
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
323
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
324
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
325
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
371
326
|
*
|
|
372
327
|
* @example
|
|
373
328
|
* Monday,Tuesday
|
|
@@ -375,9 +330,9 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
375
330
|
dataLevel1BackupPeriod?: string;
|
|
376
331
|
/**
|
|
377
332
|
* @remarks
|
|
378
|
-
* The retention period
|
|
333
|
+
* The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
|
|
379
334
|
*
|
|
380
|
-
* >
|
|
335
|
+
* > * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
381
336
|
*
|
|
382
337
|
* @example
|
|
383
338
|
* 3
|
|
@@ -385,11 +340,10 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
385
340
|
dataLevel1BackupRetentionPeriod?: string;
|
|
386
341
|
/**
|
|
387
342
|
* @remarks
|
|
388
|
-
* The time
|
|
343
|
+
* The time period during which automatic backup is performed. Specify the time period in the `hh:mmZ-hh:mmZ` format in UTC. The values must be on the hour with an interval of 1 hour, such as `14:00Z-15:00Z`.
|
|
389
344
|
*
|
|
390
|
-
* >
|
|
391
|
-
* >
|
|
392
|
-
* > - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
345
|
+
* > * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
346
|
+
* > * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
393
347
|
*
|
|
394
348
|
* @example
|
|
395
349
|
* 15:00Z-16:00Z
|
|
@@ -397,9 +351,8 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
397
351
|
dataLevel1BackupTime?: string;
|
|
398
352
|
/**
|
|
399
353
|
* @remarks
|
|
400
|
-
* The destination region for
|
|
401
|
-
*
|
|
402
|
-
* > - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
354
|
+
* The destination region for cross-region level-2 backups. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
355
|
+
* > * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
403
356
|
*
|
|
404
357
|
* @example
|
|
405
358
|
* cn-hangzhou
|
|
@@ -407,17 +360,16 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
407
360
|
dataLevel2BackupAnotherRegionRegion?: string;
|
|
408
361
|
/**
|
|
409
362
|
* @remarks
|
|
410
|
-
* The retention period of cross-region level-2 backups. Valid values:
|
|
363
|
+
* The retention period of cross-region backups for level-2 backups. Valid values:
|
|
411
364
|
*
|
|
412
|
-
* - **0**: Disables the cross-region
|
|
365
|
+
* - **0**: Disables the level-2 cross-region backup feature.
|
|
413
366
|
*
|
|
414
|
-
* - **30 to 7300**: The retention period of
|
|
367
|
+
* - **30 to 7300**: The retention period of level-2 backups. Unit: days.
|
|
415
368
|
*
|
|
416
|
-
* - **-1**:
|
|
369
|
+
* - **-1**: Long-term retention (LTR) of level-2 backups.
|
|
417
370
|
*
|
|
418
|
-
*
|
|
419
|
-
* >
|
|
420
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
371
|
+
* > * * When a cluster is created, the default value is **0**, which means the level-2 cross-region backup feature is disabled.
|
|
372
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
421
373
|
*
|
|
422
374
|
* @example
|
|
423
375
|
* 30
|
|
@@ -425,29 +377,19 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
425
377
|
dataLevel2BackupAnotherRegionRetentionPeriod?: string;
|
|
426
378
|
/**
|
|
427
379
|
* @remarks
|
|
428
|
-
* The level-2 backup cycle. Valid values:
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
* - **Sunday**
|
|
443
|
-
*
|
|
444
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
445
|
-
* >
|
|
446
|
-
* > * - This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
447
|
-
* >
|
|
448
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
449
|
-
* >
|
|
450
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
380
|
+
* The level-2 backup cycle. Valid values:
|
|
381
|
+
* * **Monday**
|
|
382
|
+
* * **Tuesday**
|
|
383
|
+
* * **Wednesday**
|
|
384
|
+
* * **Thursday**
|
|
385
|
+
* * **Friday**
|
|
386
|
+
* * **Saturday**
|
|
387
|
+
* * **Sunday**
|
|
388
|
+
*
|
|
389
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
390
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
391
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
392
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
451
393
|
*
|
|
452
394
|
* @example
|
|
453
395
|
* Monday,Tuesday
|
|
@@ -459,13 +401,12 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
459
401
|
*
|
|
460
402
|
* - **0**: Disables the level-2 backup feature.
|
|
461
403
|
*
|
|
462
|
-
* - **30 to 7300**: The retention period of level-2 backups
|
|
404
|
+
* - **30 to 7300**: The retention period of level-2 backups. Unit: days.
|
|
463
405
|
*
|
|
464
|
-
* - **-1**:
|
|
406
|
+
* - **-1**: Long-term retention (LTR) of level-2 backups.
|
|
465
407
|
*
|
|
466
|
-
*
|
|
467
|
-
* >
|
|
468
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
408
|
+
* > * * When a cluster is created, the default value is **0**, which means the level-2 backup feature is disabled.
|
|
409
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
469
410
|
*
|
|
470
411
|
* @example
|
|
471
412
|
* 0
|
|
@@ -475,27 +416,18 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
475
416
|
ownerId?: number;
|
|
476
417
|
/**
|
|
477
418
|
* @remarks
|
|
478
|
-
* The backup cycle. Valid values:
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
488
|
-
* -
|
|
489
|
-
*
|
|
490
|
-
* - **Saturday**
|
|
491
|
-
*
|
|
492
|
-
* - **Sunday**
|
|
493
|
-
*
|
|
494
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
495
|
-
* >
|
|
496
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
497
|
-
* >
|
|
498
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
419
|
+
* The backup cycle. Valid values:
|
|
420
|
+
* * **Monday**
|
|
421
|
+
* * **Tuesday**
|
|
422
|
+
* * **Wednesday**
|
|
423
|
+
* * **Thursday**
|
|
424
|
+
* * **Friday**
|
|
425
|
+
* * **Saturday**
|
|
426
|
+
* * **Sunday**
|
|
427
|
+
*
|
|
428
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
429
|
+
* > * * If the region of your PolarDB for MySQL cluster supports the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
430
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
499
431
|
*
|
|
500
432
|
* @example
|
|
501
433
|
* Monday,Tuesday
|
|
@@ -503,7 +435,7 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
503
435
|
preferredBackupPeriod?: string;
|
|
504
436
|
/**
|
|
505
437
|
* @remarks
|
|
506
|
-
* The time
|
|
438
|
+
* The time period during which automatic backup is performed. Specify the time period in the `hh:mmZ-hh:mmZ` format in UTC. The values must be on the hour with an interval of 1 hour, such as `14:00Z-15:00Z`.
|
|
507
439
|
*
|
|
508
440
|
* @example
|
|
509
441
|
* 15:00Z-16:00Z
|