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

The following fields are returned by SELECT queries:

The restorable database account properties were retrieved successfully.

NameDatatypeDescription
idstringThe unique resource identifier of the ARM resource.
namestringThe name of the ARM resource.
locationstringThe location of the resource group to which the resource belongs.
propertiesobjectThe properties of a restorable database account.
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_locationselectsubscriptionId, location, instanceIdRetrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
list_by_locationselectsubscriptionId, locationLists 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.
listselectsubscriptionIdLists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.

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
instanceIdstringThe instanceId GUID of a restorable database account.
locationstringCosmos DB region, with spaces between words and each word capitalized.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.

SELECT
id,
name,
location,
properties,
type
FROM azure.cosmos_db.restorable_database_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND instanceId = '{{ instanceId }}' -- required
;