Get Recoverable Database (classic)


THIS TOPIC APPLIES TO: noSQL Server yesAzure SQL DatabaseyesAzure SQL Data Warehouse noParallel Data Warehouse

Returns the details for a recoverable Azure SQL Database.


The recommended REST commands to work with SQL Database are the Resource Manager based Azure SQL Database REST API. While there is no change to SQL Database, be aware that the classic deployment model command in this article is scheduled for deprecation on December 1, 2019. For a table providing links to the specific new commands you should use, see Operations for Azure SQL Databases.


The Get Recoverable Database request must be specified as follows:

  • Replace {subscriptionId} with your subscription ID.

  • Replace {serverName} with the server name that contains the databases you want to list.

  • Replace {databaseName} with the name of the database you want to list.

Method Request URI HTTP Version
GET{subscriptionId}/services/sqlservers/servers/{serverName}/recoverabledatabases/{databaseName} HTTP/1.1

URI Parameters


Request Headers

The following table describes the required and optional request headers:

Request Header Description
x-ms-client-request-id Optional. Provides a client-generated, opaque value with a 1 KB character limit. Using this header is highly recommended for correlating client-side activities with requests received by the server.

Request Body



The response includes an HTTP status code, and a response body.

Status Code

Response status code 200 indicates the request succeeded.

Response Body

The following is an example response body:

        <d:Id m:type="Edm.Int32">{database-id}</d:Id>  
        <d:LastAvailableBackupDate m:type="Edm.DateTime">{value}</d:LastAvailableBackupDate>  
<?xml version="1.0" encoding="utf-8" standalone="yes"?>  
<feed xml:base="'abcd1234')/" xmlns:d="" xmlns:m="" xmlns="">  
  <title type="text">DroppedDatabases</title>  
  <link rel="self" title="Databases" href="recoverabledatabases" />  
    <title type="text"></title>  
      <name />  
    <link rel="edit" title="Database" href="recoverabledatabases(1)" />  
    <link rel="" type="application/atom+xml;type=entry" title="Server" href="recoverabledatabases(1)/Server" />  
    <link rel="" type="application/atom+xml;type=entry" title="DatabaseMetrics" href="recoverabledatabases(1)/DatabaseMetrics" />  
    <category term="Microsoft.SqlServer.Management.Server.Domain.RecoverableDatabase" scheme="" />  
    <content type="application/xml">  
        <d:Id m:type="Edm.Int32">1</d:Id>  
        <d:MaxSizeGB m:type="Edm.Int32">5</d:MaxSizeGB>  
        <d:CreationDate m:type="Edm.DateTime">{value}</d:CreationDate>  
        <d:LastAvailableBackupDate m:type="Edm.DateTime">{value}</d:LastAvailableBackupDate>  

The following table describes the elements in the response body:

Element Name Description
Id The identifier for this database.
Name The name of the database.
Edition The edition of the database.
MaxSizeGB The maximum size of the database in GB.
CreationDate The original creation date of the database.
LastAvailableBackupDate The date of the last available backup for this database.


For a complete list of databases that can be recovered, see List Recoverable Databases (classic). To recover a recoverable database, see Create Database Recovery Request (classic).

See Also

Recover an Azure SQL database using Geo-Restore with REST API
Common REST API Error Codes
Azure SQL Database
Operations for Azure SQL Databases
Copying Databases in Azure SQL Database
Geo-Replication in Azure SQL Database
Azure SQL Database Cmdlets