restorable_mongodb_resources
Creates, updates, deletes, gets or lists a restorable_mongodb_resources
resource.
Overview
Name | restorable_mongodb_resources |
Type | Resource |
Id | azure.cosmos_db.restorable_mongodb_resources |
Fields
The following fields are returned by SELECT
queries:
- list
The operation completed successfully.
Name | Datatype | Description |
---|---|---|
id | string | The unique resource identifier of the ARM resource. |
name | string | The name of the ARM resource. |
collectionNames | array | The names of the collections available for restore. |
databaseName | string | The name of the database available for restore. |
type | string | The type of Azure resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , location , instanceId | restoreLocation , restoreTimestampInUtc | Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API 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.
Name | Datatype | Description |
---|---|---|
instanceId | string | The instanceId GUID of a restorable database account. |
location | string | Cosmos DB region, with spaces between words and each word capitalized. |
subscriptionId | string | The ID of the target subscription. |
restoreLocation | string | The location where the restorable resources are located. |
restoreTimestampInUtc | string | The timestamp when the restorable resources existed. |
SELECT
examples
- list
Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.
SELECT
id,
name,
collectionNames,
databaseName,
type
FROM azure.cosmos_db.restorable_mongodb_resources
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND instanceId = '{{ instanceId }}' -- required
AND restoreLocation = '{{ restoreLocation }}'
AND restoreTimestampInUtc = '{{ restoreTimestampInUtc }}'
;