Skip to main content

restorable_database_accounts

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

Overview

Namerestorable_database_accounts
TypeResource
Idazure.cosmos_db.restorable_database_accounts

Fields

NameDatatypeDescription
idtextThe unique resource identifier of the ARM resource.
nametextThe name of the ARM resource.
account_nametextfield from the properties object
api_typetextfield from the properties object
creation_timetextfield from the properties object
deletion_timetextfield from the properties object
instanceIdtextfield from the properties object
locationtextThe location of the resource group to which the resource belongs.
oldest_restorable_timetextfield from the properties object
restorable_locationstextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of Azure resource.

Methods

NameAccessible byRequired ParamsDescription
get_by_locationSELECTinstanceId, location, subscriptionIdRetrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
listSELECTsubscriptionIdLists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
list_by_locationSELECTlocation, subscriptionIdLists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

SELECT examples

Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

SELECT
id,
name,
account_name,
api_type,
creation_time,
deletion_time,
instanceId,
location,
oldest_restorable_time,
restorable_locations,
subscriptionId,
type
FROM azure.cosmos_db.vw_restorable_database_accounts
WHERE subscriptionId = '{{ subscriptionId }}';