Managed Database Restore Details - Get
Gets managed database restore details.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/restoreDetails/Default?api-version=2023-08-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
The name of the database. |
managed
|
path | True |
string |
The name of the managed instance. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
restore
|
path | True |
The name of the restore details to retrieve. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved restore details. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Managed database restore details.
Sample request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/databases/testdb/restoreDetails/Default?api-version=2023-08-01
Sample response
{
"properties": {
"type": "LRSRestore",
"status": "Restoring",
"lastUploadedFileName": "RestoreDetailsFullBlownExampleLog11.bak",
"lastUploadedFileTime": "2022-03-01T07:54:21Z",
"lastRestoredFileName": "RestoreDetailsFullBlownExampleLog9_1.bak",
"lastRestoredFileTime": "2022-05-09T12:27:20.4936305Z",
"percentCompleted": 53,
"currentRestoredSizeMB": 25,
"currentRestorePlanSizeMB": 47,
"currentBackupType": "Log",
"currentRestoringFileName": "RestoreDetailsFullBlownExampleLog10.bak",
"numberOfFilesDetected": 25,
"numberOfFilesQueued": 1,
"numberOfFilesSkipped": 8,
"numberOfFilesRestoring": 1,
"numberOfFilesRestored": 14,
"numberOfFilesUnrestorable": 1,
"fullBackupSets": [
{
"status": "Skipped",
"firstStripeName": "RestoreDetailsFullBlownExampleFull2.bak",
"numberOfStripes": 1,
"backupSizeMB": 2
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleFull3_1.bak",
"numberOfStripes": 3,
"backupSizeMB": 3,
"restoreStartedTimestampUtc": "2022-05-09T12:15:40.3143263Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:18:41.3785089Z"
}
],
"diffBackupSets": [
{
"status": "Skipped",
"firstStripeName": "RestoreDetailsFullBlownExampleDiff2.bak",
"numberOfStripes": 1,
"backupSizeMB": 0
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleDiff3_1.bak",
"numberOfStripes": 3,
"backupSizeMB": 1,
"restoreStartedTimestampUtc": "2022-05-09T12:19:40.5455092Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:20:21.3667454Z"
}
],
"logBackupSets": [
{
"status": "Skipped",
"firstStripeName": "RestoreDetailsFullBlownExampleLog2.bak",
"numberOfStripes": 1,
"backupSizeMB": 0
},
{
"status": "Skipped",
"firstStripeName": "RestoreDetailsFullBlownExampleLog3.bak",
"numberOfStripes": 1,
"backupSizeMB": 8
},
{
"status": "Skipped",
"firstStripeName": "RestoreDetailsFullBlownExampleLog4.bak",
"numberOfStripes": 1,
"backupSizeMB": 11
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleLog5.bak",
"numberOfStripes": 1,
"backupSizeMB": 7,
"restoreStartedTimestampUtc": "2022-05-09T12:21:01.7717453Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:21:54.7557851Z"
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleLog6.bak",
"numberOfStripes": 1,
"backupSizeMB": 3,
"restoreStartedTimestampUtc": "2022-05-09T12:22:41.8784062Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:23:03.709407Z"
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleLog7.bak",
"numberOfStripes": 1,
"backupSizeMB": 4,
"restoreStartedTimestampUtc": "2022-05-09T12:23:36.6264066Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:23:52.9274047Z"
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleLog8.bak",
"numberOfStripes": 1,
"backupSizeMB": 3,
"restoreStartedTimestampUtc": "2022-05-09T12:24:25.899407Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:24:37.9954063Z"
},
{
"status": "Restored",
"firstStripeName": "RestoreDetailsFullBlownExampleLog9_1.bak",
"numberOfStripes": 4,
"backupSizeMB": 4,
"restoreStartedTimestampUtc": "2022-05-09T12:25:10.8804065Z",
"restoreFinishedTimestampUtc": "2022-05-09T12:25:27.808409Z"
},
{
"status": "Restoring",
"firstStripeName": "RestoreDetailsFullBlownExampleLog10.bak",
"numberOfStripes": 1,
"backupSizeMB": 15,
"restoreStartedTimestampUtc": "2022-05-09T12:26:00.7813103Z"
},
{
"status": "Queued",
"firstStripeName": "RestoreDetailsFullBlownExampleLog11.bak",
"numberOfStripes": 1,
"backupSizeMB": 7
}
],
"unrestorableFiles": [
{
"name": "ImageFile.JPG"
}
]
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/databases/testdb/restoreDetails/current",
"name": "current",
"type": "Microsoft.Sql/managedInstances/databases/restoreDetails"
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Managed |
The managed database's restore details backup set properties. |
Managed |
A managed database restore details. |
Managed |
The managed database's restore details unrestorable file properties. |
Restore |
The name of the restore details to retrieve. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ManagedDatabaseRestoreDetailsBackupSetProperties
The managed database's restore details backup set properties.
Name | Type | Description |
---|---|---|
backupSizeMB |
integer (int32) |
Backup size. |
firstStripeName |
string |
First stripe name. |
numberOfStripes |
integer (int32) |
Number of stripes. |
restoreFinishedTimestampUtc |
string (date-time) |
Last restored file time. |
restoreStartedTimestampUtc |
string (date-time) |
Last restored file time. |
status |
string |
Backup set status. |
ManagedDatabaseRestoreDetailsResult
A managed database restore details.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.blockReason |
string |
The reason why restore is in Blocked state. |
properties.currentBackupType |
string |
Current backup type. |
properties.currentRestorePlanSizeMB |
integer (int32) |
Current restore plan size MB. |
properties.currentRestoredSizeMB |
integer (int32) |
Current restored size MB. |
properties.currentRestoringFileName |
string |
Current restoring file name. |
properties.diffBackupSets |
Diff backup sets. |
|
properties.fullBackupSets |
Full backup sets. |
|
properties.lastRestoredFileName |
string |
Last restored file name. |
properties.lastRestoredFileTime |
string (date-time) |
Last restored file time. |
properties.lastUploadedFileName |
string |
Last uploaded file name. |
properties.lastUploadedFileTime |
string (date-time) |
Last uploaded file time. |
properties.logBackupSets |
Log backup sets. |
|
properties.numberOfFilesDetected |
integer (int32) |
Number of files detected. |
properties.numberOfFilesQueued |
integer (int32) |
Number of files queued. |
properties.numberOfFilesRestored |
integer (int32) |
Number of files restored. |
properties.numberOfFilesRestoring |
integer (int32) |
Number of files restoring. |
properties.numberOfFilesSkipped |
integer (int32) |
Number of files skipped. |
properties.numberOfFilesUnrestorable |
integer (int32) |
Number of files unrestorable. |
properties.percentCompleted |
integer (int32) |
Percent completed. |
properties.status |
string |
Restore status. |
properties.type |
string |
Restore type. |
properties.unrestorableFiles |
Unrestorable files. |
|
type |
string |
Resource type. |
ManagedDatabaseRestoreDetailsUnrestorableFileProperties
The managed database's restore details unrestorable file properties.
Name | Type | Description |
---|---|---|
name |
string |
File name. |
RestoreDetailsName
The name of the restore details to retrieve.
Value | Description |
---|---|
Default |