Skip to main content

restorable_dropped_databases

Creates, updates, deletes, gets or lists a restorable_dropped_databases resource.

Overview

Namerestorable_dropped_databases
TypeResource
Idazure.sql.restorable_dropped_databases

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the specified restorable dropped database.

NameDatatypeDescription
locationstringResource location.
propertiesobjectResource properties.
skuobjectAn ARM Resource SKU.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, restorableDroppedDatabaseId, subscriptionId$expand, $filterGets a restorable dropped database.
list_by_serverselectresourceGroupName, serverName, subscriptionIdGets a list of restorable dropped databases.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
restorableDroppedDatabaseIdstring
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.
$expandstringThe child resources to include in the response.
$filterstringAn OData filter expression that filters elements in the collection.

SELECT examples

Gets a restorable dropped database.

SELECT
location,
properties,
sku,
tags
FROM azure.sql.restorable_dropped_databases
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND restorableDroppedDatabaseId = '{{ restorableDroppedDatabaseId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
AND $filter = '{{ $filter }}'
;