restorable_gremlin_graphs
Creates, updates, deletes, gets or lists a restorable_gremlin_graphs resource.
Overview
| Name | restorable_gremlin_graphs |
| Type | Resource |
| Id | azure.cosmosdb.restorable_gremlin_graphs |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The unique resource Identifier of the ARM resource. |
name | string | The name of the ARM resource. |
resource | object | The resource of an Azure Cosmos DB Gremlin graph 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 | location, instance_id, subscription_id | restorableGremlinDatabaseRid, startTime, endTime | Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs 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 |
|---|---|---|
instance_id | string | The instanceId GUID of a restorable database account. Required. |
location | string | Cosmos DB region, with spaces between words and each word capitalized. Required. |
subscription_id | string | |
endTime | string | Restorable Gremlin graphs event feed end time. Default value is None. |
restorableGremlinDatabaseRid | string | The resource ID of the Gremlin database. Default value is None. |
startTime | string | Restorable Gremlin graphs event feed start time. Default value is None. |
SELECT examples
- list
Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs 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,
resource,
type
FROM azure.cosmosdb.restorable_gremlin_graphs
WHERE location = '{{ location }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND restorableGremlinDatabaseRid = '{{ restorableGremlinDatabaseRid }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
;