Skip to main content

restorable_database_accounts

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

Overview

Namerestorable_database_accounts
TypeResource
Idazure.cosmosdb.restorable_database_accounts

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.
accountNamestringThe name of the global database account.
apiTypestringThe API type of the restorable database account. Known values are: "MongoDB", "Gremlin", "Cassandra", "Table", "Sql", and "GremlinV2". (MongoDB, Gremlin, Cassandra, Table, Sql, GremlinV2)
creationTimestring (date-time)The creation time of the restorable database account (ISO-8601 format).
deletionTimestring (date-time)The time at which the restorable database account has been deleted (ISO-8601 format).
locationstringThe location of the resource group to which the resource belongs.
oldestRestorableTimestring (date-time)The least recent time at which the database account can be restored to (ISO-8601 format).
restorableLocationsarrayList of regions where the of the database account can be restored from.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
get_by_locationselectlocation, instance_id, subscription_idRetrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission.
list_by_locationselectlocation, subscription_idLists 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.
listselectsubscription_idLists 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
instance_idstringThe instanceId GUID of a restorable database account. Required.
locationstringCosmos DB region, with spaces between words and each word capitalized. Required.
subscription_idstring

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,
accountName,
apiType,
creationTime,
deletionTime,
location,
oldestRestorableTime,
restorableLocations,
systemData,
type
FROM azure.cosmosdb.restorable_database_accounts
WHERE location = '{{ location }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;