restorable_sql_containers
Creates, updates, deletes, gets or lists a restorable_sql_containers
resource.
Overview
Name | restorable_sql_containers |
Type | Resource |
Id | azure.cosmos_db.restorable_sql_containers |
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. |
properties | object | The properties of a SQL container event. |
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 | restorableSqlDatabaseRid , startTime , endTime | Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. 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. |
endTime | string | Restorable Sql containers event feed end time. |
restorableSqlDatabaseRid | string | The resource ID of the SQL database. |
startTime | string | Restorable Sql containers event feed start time. |
SELECT
examples
- list
Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers 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_sql_containers
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND instanceId = '{{ instanceId }}' -- required
AND restorableSqlDatabaseRid = '{{ restorableSqlDatabaseRid }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
;