restorable_dropped_databases
Creates, updates, deletes, gets or lists a restorable_dropped_databases resource.
Overview
| Name | restorable_dropped_databases |
| Type | Resource |
| Id | azure.sql.restorable_dropped_databases |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_server
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
backupStorageRedundancy | string | The storage account type used to store backups for this database. Known values are: "Geo", "Local", "Zone", and "GeoZone". (Geo, Local, Zone, GeoZone) |
creationDate | string (date-time) | The creation date of the database (ISO8601 format). |
databaseName | string | The name of the database. |
deletionDate | string (date-time) | The deletion date of the database (ISO8601 format). |
earliestRestoreDate | string (date-time) | The earliest restore date of the database (ISO8601 format). |
keys | object | The resource ids of the user assigned identities to use. |
location | string | Resource location. |
maxSizeBytes | integer | The max size of the database expressed in bytes. |
sku | object | The name and tier of the SKU. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
backupStorageRedundancy | string | The storage account type used to store backups for this database. Known values are: "Geo", "Local", "Zone", and "GeoZone". (Geo, Local, Zone, GeoZone) |
creationDate | string (date-time) | The creation date of the database (ISO8601 format). |
databaseName | string | The name of the database. |
deletionDate | string (date-time) | The deletion date of the database (ISO8601 format). |
earliestRestoreDate | string (date-time) | The earliest restore date of the database (ISO8601 format). |
keys | object | The resource ids of the user assigned identities to use. |
location | string | Resource location. |
maxSizeBytes | integer | The max size of the database expressed in bytes. |
sku | object | The name and tier of the SKU. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, server_name, restorable_dropped_database_id, subscription_id | $expand, $filter | Gets a restorable dropped database. |
list_by_server | select | resource_group_name, server_name, subscription_id | Gets 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.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
restorable_dropped_database_id | string | Required. |
server_name | string | The name of the server. Required. |
subscription_id | string | |
$expand | string | The child resources to include in the response. Default value is None. |
$filter | string | An OData filter expression that filters elements in the collection. Default value is None. |
SELECT examples
- get
- list_by_server
Gets a restorable dropped database.
SELECT
id,
name,
backupStorageRedundancy,
creationDate,
databaseName,
deletionDate,
earliestRestoreDate,
keys,
location,
maxSizeBytes,
sku,
systemData,
tags,
type
FROM azure.sql.restorable_dropped_databases
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND restorable_dropped_database_id = '{{ restorable_dropped_database_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
AND $filter = '{{ $filter }}'
;
Gets a list of restorable dropped databases.
SELECT
id,
name,
backupStorageRedundancy,
creationDate,
databaseName,
deletionDate,
earliestRestoreDate,
keys,
location,
maxSizeBytes,
sku,
systemData,
tags,
type
FROM azure.sql.restorable_dropped_databases
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;