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

NameDatatypeDescription
backup_storage_redundancytextfield from the properties object
creation_datetextfield from the properties object
database_nametextfield from the properties object
deletion_datetextfield from the properties object
earliest_restore_datetextfield from the properties object
keystextfield from the properties object
locationtextResource location.
max_size_bytestextfield from the properties object
resourceGroupNametextfield from the properties object
restorableDroppedDatabaseIdtextfield from the properties object
serverNametextfield from the properties object
skutextAn ARM Resource SKU.
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, restorableDroppedDatabaseId, serverName, subscriptionIdGets a restorable dropped database.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of restorable dropped databases.

SELECT examples

Gets a list of restorable dropped databases.

SELECT
backup_storage_redundancy,
creation_date,
database_name,
deletion_date,
earliest_restore_date,
keys,
location,
max_size_bytes,
resourceGroupName,
restorableDroppedDatabaseId,
serverName,
sku,
subscriptionId,
tags
FROM azure.sql.vw_restorable_dropped_databases
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';