Skip to main content

restorable_mongodb_collections

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

Overview

Namerestorable_mongodb_collections
TypeResource
Idazure.cosmos_db.restorable_mongodb_collections

Fields

NameDatatypeDescription
idstringThe unique resource Identifier of the ARM resource.
namestringThe name of the ARM resource.
propertiesobjectThe properties of an Azure Cosmos DB MongoDB collection event
typestringThe type of Azure resource.

Methods

NameAccessible byRequired ParamsDescription
listSELECTinstanceId, location, subscriptionIdShow the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission

SELECT examples

Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission

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