Skip to content

Commit 08faf32

Browse files
lululilliancodingLillian Liu
andauthored
Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification (#14671)
* Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification * Prettier check fix * comment Co-authored-by: Lillian Liu <[email protected]>
1 parent 944d195 commit 08faf32

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/BackupShortTermRetentionPolicies.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
}
126126
},
127127
"default": {
128-
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
128+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidDiffBackupIntervalHours - The differential backup interval hours of {0} is not a valid configuration. Valid differential backup interval must be {1} hours.\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
129129
},
130130
"202": {
131131
"description": "Accepted"
@@ -192,7 +192,7 @@
192192
}
193193
},
194194
"default": {
195-
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
195+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidDiffBackupIntervalHours - The differential backup interval hours of {0} is not a valid configuration. Valid differential backup interval must be {1} hours.\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
196196
},
197197
"202": {
198198
"description": "Accepted"
@@ -261,6 +261,19 @@
261261
"format": "int32",
262262
"description": "The backup retention period in days. This is how many days Point-in-Time Restore will be supported.",
263263
"type": "integer"
264+
},
265+
"diffBackupIntervalInHours": {
266+
"format": "int32",
267+
"description": "The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.",
268+
"enum": [
269+
"12",
270+
"24"
271+
],
272+
"type": "integer",
273+
"x-ms-enum": {
274+
"name": "DiffBackupIntervalInHours",
275+
"modelAsString": true
276+
}
264277
}
265278
}
266279
},

specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/GetShortTermRetentionPolicy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"name": "default",
1515
"type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies",
1616
"properties": {
17-
"retentionDays": 14
17+
"retentionDays": 7,
18+
"diffBackupIntervalInHours": 24
1819
}
1920
}
2021
}

specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/ListShortTermRetentionPoliciesByDatabase.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"name": "default",
1717
"type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies",
1818
"properties": {
19-
"retentionDays": 14
19+
"retentionDays": 7,
20+
"diffBackupIntervalInHours": 24
2021
}
2122
}
2223
]

specification/sql/resource-manager/Microsoft.Sql/preview/2021-02-01-preview/examples/UpdateShortTermRetentionPolicy.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"api-version": "2021-02-01-preview",
99
"parameters": {
1010
"properties": {
11-
"retentionDays": 14
11+
"retentionDays": 7,
12+
"diffBackupIntervalInHours": 24
1213
}
1314
}
1415
},
@@ -19,7 +20,8 @@
1920
"name": "default",
2021
"type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies",
2122
"properties": {
22-
"retentionDays": 14
23+
"retentionDays": 7,
24+
"diffBackupIntervalInHours": 24
2325
}
2426
}
2527
},

specification/sql/resource-manager/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ input-file:
5252
- Microsoft.Sql/stable/2014-04-01/serviceObjectives.json
5353
- Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json
5454
- Microsoft.Sql/stable/2014-04-01/usages_legacy.json
55-
- ./Microsoft.Sql/preview/2020-11-01-preview/BackupShortTermRetentionPolicies.json
5655
- ./Microsoft.Sql/preview/2020-11-01-preview/BlobAuditing.json
5756
- ./Microsoft.Sql/preview/2020-11-01-preview/DatabaseAdvisors.json
5857
- ./Microsoft.Sql/preview/2020-11-01-preview/DatabaseAutomaticTuning.json
@@ -145,6 +144,7 @@ input-file:
145144
- ./Microsoft.Sql/preview/2020-11-01-preview/VirtualNetworkRules.json
146145
- ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadClassifiers.json
147146
- ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadGroups.json
147+
- ./Microsoft.Sql/preview/2021-02-01-preview/BackupShortTermRetentionPolicies.json
148148
- ./Microsoft.Sql/preview/2021-02-01-preview/Databases.json
149149
- ./Microsoft.Sql/preview/2021-02-01-preview/DatabaseExtensions.json
150150
- ./Microsoft.Sql/preview/2021-02-01-preview/DatabaseOperations.json

0 commit comments

Comments
 (0)