Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
04c2e19
update swagger to accomodate for new managed db create mode (ltr)
xaliciayang Jan 30, 2020
2bbd498
Adding example file for create managed db from ltr restore
xaliciayang Jan 30, 2020
3e56859
remove unused example
xaliciayang Jan 30, 2020
1ad2466
undoing removal of completeRestore
xaliciayang Jan 30, 2020
7360250
adding back complete managed restore example
xaliciayang Jan 30, 2020
982155e
add examplee and swagger files for ltr backup/policies
xaliciayang Jan 31, 2020
36102a9
update readme; add in 2018 manage databases diffs
xaliciayang Feb 1, 2020
4b5d205
remove create example from 2018
xaliciayang Feb 1, 2020
7cb9973
add -preview to swagger files added to readme
xaliciayang Feb 3, 2020
1dbc0ec
removing empty body from delete backup examples
xaliciayang Feb 3, 2020
f9b4226
fix parameter name in exmple file
xaliciayang Feb 3, 2020
1f16841
add 2018 example. fix version in 2017 example
xaliciayang Feb 3, 2020
94aae20
../../2018-06-01-preview/managedDatabases.json
xaliciayang Feb 3, 2020
b39e7c0
removing example from 2018
xaliciayang Feb 3, 2020
f1d482e
ran prettier on some example files
xaliciayang Feb 4, 2020
3c4b923
adding other files called out by prettier
xaliciayang Feb 4, 2020
db6d146
update readme to include swagger files in v3/v2/v1
xaliciayang Feb 4, 2020
2d9f788
Revert "update readme to include swagger files in v3/v2/v1"
xaliciayang Feb 5, 2020
3cbc518
reverted all unrelated files
xaliciayang Feb 5, 2020
52d348b
update swagger after introducing new error handler
xaliciayang Feb 5, 2020
dba6dd0
removing old versions of manageDatabase.json swagger from readme.md p…
xaliciayang Feb 6, 2020
1c4abe4
Adding updated swagger files for:
xaliciayang Feb 10, 2020
d7b5b90
add files after running prettier-fix; removing LTR backups/policies A…
xaliciayang Feb 10, 2020
b0cddb3
updated readme to use 2019 version of managedDatabases.json
xaliciayang Feb 11, 2020
5ac6075
adding files fixed by prettier
xaliciayang Feb 19, 2020
9b85bb0
prettierfix.diff on LTR MI example
xaliciayang Feb 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
undoing removal of completeRestore
  • Loading branch information
xaliciayang committed Jan 30, 2020
commit 1ad246628ab30e1547b38aa954532241f70e465a
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,64 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/managedDatabaseRestoreAzureAsyncOperation/{operationId}/completeRestore": {
"post": {
"tags": [
"ManagedDatabases"
],
"description": "Completes the restore operation on a managed database.",
"operationId": "ManagedDatabases_CompleteRestore",
"parameters": [
{
"name": "locationName",
"in": "path",
"description": "The name of the region where the resource is located.",
"required": true,
"type": "string"
},
{
"name": "operationId",
"in": "path",
"description": "Management operation id that this request tries to complete.",
"required": true,
"type": "string",
"format": "uuid"
},
{
"name": "parameters",
"in": "body",
"description": "The definition for completing the restore of this managed database.",
"required": true,
"schema": {
"$ref": "#/definitions/CompleteDatabaseRestoreDefinition"
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successfully issued complete restore request."
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 InvalidDatabaseCompleteRestoreRequest - The complete database restore request is invalid\n\n * 400 InvalidDatabaseCompleteRestoreRequestLastBackupName - The last backup name is invalid\n\n * 400 InvalidIdentifier - The identifier contains NULL or an invalid unicode character.\n\n * 400 SourceDatabaseNotFound - The source database does not exist.\n\n * 400 TokenTooLong - The provided token is too long.\n\n * 400 UnsupportedServiceName - The specified name is an invalid name because it contains one or more unsupported unicode characters.\n\n * 400 RequiredBackupIsNotLastRestored - Migration cannot be completed because provided backup file name is not the name of the last backup file that is restored.\n\n * 400 IncompatiblePhysicalLayoutTooFewDataFiles - Database backup contains incompatible physical layout. No data files are found in the backup.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineDataFilesExist - Database backup contains incompatible physical layout. Non-online data files exist.\n\n * 400 IncompatiblePhysicalLayoutWrongNumberOfLogFiles - Database backup contains incompatible physical layout. Multiple log files are not supported.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineLogFilesExist - Database backup contains incompatible physical layout. Non-online log files exist.\n\n * 400 IncompatiblePhysicalLayoutTooManyNonDataLogFiles - Database backup contains incompatible physical layout. Too many non-data/log files.\n\n * 400 BackupSetNotFound - \"No backups were found to restore the database. Please contact support to restore the database.\n\n * 400 FullBackupNotFound - Full backup can not be found.\n\n * 400 RestoreFromStripedBackupsNotEnabled - Restoring from striped backups is not supported.\n\n * 400 BrokenRestorePlanNoFullBackup - The restore plan is broken because there is no full backup.\n\n * 400 BrokenRestorePlanWrongLogBackupLSN - The restore plan is broken because firstLsn of current log backup is not <= lastLsn of next log backup.\n\n * 400 BrokenRestorePlanWrongDiffBackupLSN - The restore plan is broken because firstLsn of diff backup is not >= firstLsn of full backup.\n\n * 400 BrokenRestorePlanGapInLogBackups - The restore plan is broken because firstLsn of current log backup is not equal to lastLsn of prev log backup.\n\n * 400 ManagedInstanceStorageLimitHit - The managed instance has reached its storage limit."
},
"202": {
"description": "Completing migration is in progress."
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Completes a managed database restore": {
"$ref": "./examples/CompleteManagedRestore.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases": {
"get": {
"tags": [
Expand Down Expand Up @@ -276,6 +334,19 @@
}
},
"definitions": {
"CompleteDatabaseRestoreDefinition": {
"description": "Contains the information necessary to perform a complete database restore operation.",
"required": [
"lastBackupName"
],
"type": "object",
"properties": {
"lastBackupName": {
"description": "The last backup name to apply",
"type": "string"
}
}
},
"ManagedDatabaseListResult": {
"description": "A list of managed databases.",
"type": "object",
Expand Down