Edit

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
workspaceId
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.

rootFolderId
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

RestorableDeletedSQLDatabases

Request completed successfully.

429 Too Many Requests

ErrorResponse

The service rate limit was exceeded. The server returns a Retry-After header indicating, in seconds, how long the client must wait before sending additional requests.

Headers

Retry-After: integer

Other Status Codes

ErrorResponse

Common error codes:

  • ItemNotFound - The requested item was not found.

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
ErrorParameter

A structured parameter providing additional machine-readable context about an error.

ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response details.

RestorableDeletedSQLDatabase

A restorable deleted SQL database object.

RestorableDeletedSQLDatabaseProperties

The restorable deleted SQL database properties.

RestorableDeletedSQLDatabases

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 Retry-After response header to determine the delay, if available.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

parameters

ErrorParameter[]

Structured parameters providing additional machine-readable context about the error.

relatedResource

ErrorRelatedResource

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

ErrorParameter[]

Structured parameters providing additional machine-readable context about the error.

relatedResource

ErrorRelatedResource

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

RestorableDeletedSQLDatabaseProperties

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

RestorableDeletedSQLDatabase[]

Properties of a restorable deleted SQL database.