Skip to main content

restorable_dropped_managed_databases

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

Overview

Namerestorable_dropped_managed_databases
TypeResource
Idazure.sql.restorable_dropped_managed_databases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
creationDatestring (date-time)The creation date of the database (ISO8601 format).
databaseNamestringThe name of the database.
deletionDatestring (date-time)The deletion date of the database (ISO8601 format).
earliestRestoreDatestring (date-time)The earliest restore date of the database (ISO8601 format).
locationstringThe geo-location where the resource lives. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, managed_instance_name, restorable_dropped_database_id, subscription_idGets a restorable dropped managed database.
list_by_instanceselectresource_group_name, managed_instance_name, subscription_idGets a list of restorable dropped managed 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
managed_instance_namestringThe name of the managed instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
restorable_dropped_database_idstringRequired.
subscription_idstring

SELECT examples

Gets a restorable dropped managed database.

SELECT
id,
name,
creationDate,
databaseName,
deletionDate,
earliestRestoreDate,
location,
systemData,
tags,
type
FROM azure.sql.restorable_dropped_managed_databases
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND managed_instance_name = '{{ managed_instance_name }}' -- required
AND restorable_dropped_database_id = '{{ restorable_dropped_database_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;