Get Restorable Dropped Database (classic)
THIS TOPIC APPLIES TO: SQL Server Azure SQL DatabaseAzure SQL Data Warehouse Parallel Data Warehouse
Gets the details for a specific restorable dropped Azure SQL Database.
Important
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.
Request
The Get Restorable Dropped Database request must be specified as follows:
Replace {subscriptionId} with your subscription ID.
Replace {serverName} with your server name.
Replace {databaseEntityId} with your database entity ID.
Method | Request URI | HTTP Version |
---|---|---|
GET | https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/restorabledroppeddatabases/{databaseEntityId} | HTTP/1.1 |
Executing this method submits a request. The operation will begin processing and complete processing at some later point. Use Database Operation Status (classic) to report on the status of the operation.
URI Parameters
None.
Request Headers
The following table describes the required and optional request headers:
Request Header | Description |
---|---|
x-ms-version | Required. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01. |
Request Body
The format of the request body is as follows:
<DeletionDate>"2012-11-09T22:59:43.000Z"</DeletionDate>
The following table describes the elements of the request body.
Element Name | Description |
DeletionDate | The date and time (including milliseconds) when the restorable dropped database was deleted. Important: The deletion date must include milliseconds to successfully match the time and find the desired database. Specifying a value without including milliseconds will result in the database not being found. |
Response
The response includes an HTTP status code, a set of response headers, and a response body.
Status Code
Response Headers
The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
Response Header | Description |
---|---|
x-ms-request-id | A value that uniquely identifies a request made against the database management service. This request id is used for request tracking. If a failure occurs that requires the user to contact Microsoft Support, the request id should be provided to Microsoft to assist in tracking and resolving the failure for the request. |
Response Body
The following example shows the format of the response body:
<ServiceResource xmlns="https://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>testdb2</Name>
<Type>Microsoft.SqlAzure.RestorableDroppedDatabase</Type>
<State>Deleted</State>
<SelfLink>https://management.core.windows.net/00000000-0000-0000-0001- 000000000001/services/sqlservers/servers/ol3v4b2azy/restorabledroppeddatabases/testdb2,2013-09-17T22:01:40.923</SelfLink>
<ParentLink>https://management.core.windows.net/00000000-0000-0000-0001-000000000001/services/sqlservers/servers/ol3v4b2azy</ParentLink>
<EntityId>testdb2,2013-09-17T22:01:40.923</EntityId>
<ServerName>ol3v4b2azy</ServerName>
<Edition>Web</Edition>
<MaxSizeBytes>1073741824</MaxSizeBytes>
<CreationDate>2013-08-29T21:38:54.5330000</CreationDate>
<DeletionDate>2013-09-17T22:01:40.9230000</DeletionDate>
<RecoveryPeriodStartDate>2013-09-03T00:00:00.0000000Z</RecoveryPeriodStartDate>
</ServiceResource>
The following table describes the elements of the response body:
Element Name | Description |
---|---|
Name | The name of the database. |
Type | The type of the service resource; Microsoft.SqlAzure.RestorableDroppedDatabase. |
State | The state of the service resource. |
SelfLink | The URI identifier for this resource. |
ParentLink | The URI identifier for the parent of this resource (the server). |
EntityID | The identifier for this service resource. |
ServerName | The name of the Azure SQL Database server. |
Edition | The edition of the database. |
MaxSizeBytes | The maximum size of the database in bytes. |
CreationDate | The creation date of the original database. |
DeletionDate | The deletion date of the dropped database. |
RecoveryPeriodStartDate | The starting date of the recovery period. |
Remarks
Equivalent PowerShell command: Run the Get-AzureSqlDatabase cmdlet with the –RestorableDropped parameter.
See Also
Restore a deleted Azure SQL database with REST API
Common REST API Error Codes
Azure SQL Database
Operations for Azure SQL Databases
Geo-Replication in Azure SQL Database
Azure SQL Database Cmdlets