|
62 | 62 | } |
63 | 63 | }, |
64 | 64 | "default": { |
65 | | - "description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." |
| 65 | + "description": "*** Error Responses: ***\n\n * 400 InvalidBackupRetentionDays - The retention days of {0} is not a valid configuration. Valid backup retention must be in 7-day increments (7, 14, 21, etc.)\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." |
66 | 66 | } |
67 | 67 | }, |
68 | 68 | "x-ms-examples": { |
|
125 | 125 | } |
126 | 126 | }, |
127 | 127 | "default": { |
128 | | - "description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\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 * 403 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\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 InvalidBackupRetentionDays - The retention days of {0} is not a valid configuration. Valid backup retention must be in 7-day increments (7, 14, 21, etc.)\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 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\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." |
129 | 129 | }, |
130 | 130 | "202": { |
131 | 131 | "description": "Accepted" |
|
192 | 192 | } |
193 | 193 | }, |
194 | 194 | "default": { |
195 | | - "description": "*** Error Responses: ***\n\n * 400 InvalidRestorableDroppedDatabaseDeletionDate - The restorable dropped database deletion date given is invalid\n\n * 400 InvalidRestorableDroppedDatabaseId - Invalid restorable dropped database identifier\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 * 403 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\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 InvalidBackupRetentionDays - The retention days of {0} is not a valid configuration. Valid backup retention must be in 7-day increments (7, 14, 21, etc.)\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 UpdateShortTermRetentionFeatureNotSupportedForEdition - This feature is not available for the selected database's edition {0}.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\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." |
196 | 196 | }, |
197 | 197 | "202": { |
198 | 198 | "description": "Accepted" |
|
205 | 205 | } |
206 | 206 | } |
207 | 207 | } |
| 208 | + }, |
| 209 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies": { |
| 210 | + "get": { |
| 211 | + "tags": [ |
| 212 | + "BackupShortTermRetentionPolicies" |
| 213 | + ], |
| 214 | + "description": "Gets a database's short term retention policy.", |
| 215 | + "operationId": "BackupShortTermRetentionPolicies_ListByDatabase", |
| 216 | + "parameters": [ |
| 217 | + { |
| 218 | + "$ref": "#/parameters/ResourceGroupParameter" |
| 219 | + }, |
| 220 | + { |
| 221 | + "$ref": "#/parameters/ServerNameParameter" |
| 222 | + }, |
| 223 | + { |
| 224 | + "$ref": "#/parameters/DatabaseNameParameter" |
| 225 | + }, |
| 226 | + { |
| 227 | + "$ref": "#/parameters/SubscriptionIdParameter" |
| 228 | + }, |
| 229 | + { |
| 230 | + "$ref": "#/parameters/ApiVersionParameter" |
| 231 | + } |
| 232 | + ], |
| 233 | + "responses": { |
| 234 | + "200": { |
| 235 | + "description": "Successfully retrieved the policy.", |
| 236 | + "schema": { |
| 237 | + "$ref": "#/definitions/BackupShortTermRetentionPolicyListResult" |
| 238 | + } |
| 239 | + }, |
| 240 | + "default": { |
| 241 | + "description": "*** Error Responses: ***\n\n * 400 InvalidBackupRetentionDays - The retention days of {0} is not a valid configuration. Valid backup retention must be in 7-day increments (7, 14, 21, etc.)\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ResourceNotFound - The requested resource was not found." |
| 242 | + } |
| 243 | + }, |
| 244 | + "x-ms-pageable": { |
| 245 | + "nextLinkName": "nextLink" |
| 246 | + }, |
| 247 | + "x-ms-examples": { |
| 248 | + "Get the short term retention policy for the database.": { |
| 249 | + "$ref": "./examples/ListShortTermRetentionPoliciesByDatabase.json" |
| 250 | + } |
| 251 | + } |
| 252 | + } |
208 | 253 | } |
209 | 254 | }, |
210 | 255 | "definitions": { |
|
234 | 279 | "x-ms-client-flatten": true |
235 | 280 | } |
236 | 281 | } |
| 282 | + }, |
| 283 | + "BackupShortTermRetentionPolicyListResult": { |
| 284 | + "description": "A list of short term retention policies.", |
| 285 | + "type": "object", |
| 286 | + "properties": { |
| 287 | + "value": { |
| 288 | + "description": "Array of results.", |
| 289 | + "type": "array", |
| 290 | + "items": { |
| 291 | + "$ref": "#/definitions/BackupShortTermRetentionPolicy" |
| 292 | + }, |
| 293 | + "readOnly": true |
| 294 | + }, |
| 295 | + "nextLink": { |
| 296 | + "description": "Link to retrieve next page of results.", |
| 297 | + "type": "string", |
| 298 | + "readOnly": true |
| 299 | + } |
| 300 | + } |
237 | 301 | } |
238 | 302 | }, |
239 | 303 | "parameters": { |
|
0 commit comments