Skip to main content

recoverable_databases

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

Overview

Namerecoverable_databases
TypeResource
Idazure.sql.recoverable_databases

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
editiontextfield from the properties object
elastic_pool_nametextfield from the properties object
keystextfield from the properties object
last_available_backup_datetextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
service_level_objectivetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdGets a recoverable database.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets a list of recoverable databases.

SELECT examples

Gets a list of recoverable databases.

SELECT
databaseName,
edition,
elastic_pool_name,
keys,
last_available_backup_date,
resourceGroupName,
serverName,
service_level_objective,
subscriptionId
FROM azure.sql.vw_recoverable_databases
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';