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

The following fields are returned by SELECT queries:

Successfully retrieved the specified recoverable database.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, databaseName, subscriptionId$expand, $filterGets a recoverable database.
list_by_serverselectresourceGroupName, serverName, subscriptionIdGets a list of recoverable 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
databaseNamestringThe name of the database.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
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 recoverable database.

SELECT
properties
FROM azure.sql.recoverable_databases
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
AND $filter = '{{ $filter }}'
;