Items - List Restorable Deleted Databases
Gets the list of restorable deleted databases in the workspace.
Note
PITR from deleted databases is currently in Preview (learn more).
Permissions
The caller must have a viewer workspace role.
The caller must have read and write permissions for the SQL database.
Required Delegated Scopes
SQLDatabase.ReadWrite.All or Item.ReadWrite.All
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
| Identity | Support |
|---|---|
| User | Yes |
| Service principal and Managed identities | Yes |
Interface
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/sqlDatabases/restorableDeletedDatabases
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/sqlDatabases/restorableDeletedDatabases?recursive={recursive}&rootFolderId={rootFolderId}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
workspace
|
path | True |
string (uuid) |
The workspace identifier. |
|
recursive
|
query |
boolean |
Lists items in a folder and its nested folders, or just a folder only. True - All items in the folder and its nested folders are listed, False - Only items in the folder are listed. The default value is true. |
|
|
root
|
query |
string (uuid) |
This parameter allows users to filter items based on a specific root folder. If not provided, the workspace is used as the root folder. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Request completed successfully. |
|
| 429 Too Many Requests |
The service rate limit was exceeded. The server returns a Headers Retry-After: integer |
|
| Other Status Codes |
Common error codes:
|
Examples
Get restorable deleted databases example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/f089354e-8366-4e18-aea3-4cb4a3a50b48/sqlDatabases/restorableDeletedDatabases
Sample response
{
"value": [
{
"displayName": "SQLDatabase1",
"properties": {
"restorableDeletedDatabaseName": "SQLDatabase1,134140258788170000",
"earliestRestorePoint": "2024-12-01T00:00:00.000Z",
"latestRestorePoint": "2024-12-02T00:00:00.000Z",
"deletionTimestamp": "2024-12-01T00:00:00.000Z"
}
},
{
"displayName": "SQLDatabase2",
"properties": {
"restorableDeletedDatabaseName": "SQLDatabase2,134140258788470000",
"earliestRestorePoint": "2024-12-01T00:00:00.000Z",
"latestRestorePoint": "2024-12-02T00:00:00.000Z",
"deletionTimestamp": "2024-12-01T00:00:00.000Z"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
A structured parameter providing additional machine-readable context about an error. |
|
Error |
The error related resource details object. |
|
Error |
The error response. |
|
Error |
The error response details. |
|
Restorable |
A restorable deleted SQL database object. |
|
Restorable |
The restorable deleted SQL database properties. |
|
Restorable |
A list of restorable deleted SQL databases. |
ErrorParameter
A structured parameter providing additional machine-readable context about an error.
| Name | Type | Description |
|---|---|---|
| message |
string |
A human-readable description of the parameter's meaning. |
| name |
string |
The parameter identifier. |
| value |
string |
The parameter value. |
ErrorRelatedResource
The error related resource details object.
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
The resource ID that's involved in the error. |
| resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| isRetriable |
boolean |
When true, the request can be retried. Use the |
| message |
string |
A human readable representation of the error. |
| moreDetails |
List of additional error details. |
|
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
|
| requestId |
string (uuid) |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
RestorableDeletedSQLDatabase
A restorable deleted SQL database object.
| Name | Type | Description |
|---|---|---|
| displayName |
string |
The Fabric display name of the restorable deleted SQL database. |
| properties |
The restorable deleted SQL database properties. |
RestorableDeletedSQLDatabaseProperties
The restorable deleted SQL database properties.
| Name | Type | Description |
|---|---|---|
| deletionTimestamp |
string |
ISO 8601 timestamp for the deletion of the database in UTC (e.g., '2024-12-01T00:00:00Z'). |
| earliestRestorePoint |
string |
ISO 8601 timestamp for the earliest restore point of the database in UTC (e.g., '2024-12-01T00:00:00Z'). |
| latestRestorePoint |
string |
ISO 8601 timestamp for the latest restore point of the database in UTC (e.g., '2024-12-02T00:00:00Z'). |
| restorableDeletedDatabaseName |
string |
The name of the restorable deleted SQL database. This is the name that will be used in the creation payload when restoring from this restorable deleted database. |
RestorableDeletedSQLDatabases
A list of restorable deleted SQL databases.
| Name | Type | Description |
|---|---|---|
| continuationToken |
string |
The token for the next result set batch. If there are no more records, it's removed from the response. |
| continuationUri |
string |
The URI of the next result set batch. If there are no more records, it's removed from the response. |
| value |
Properties of a restorable deleted SQL database. |