Skip to main content

restorable_gremlin_graphs

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

Overview

Namerestorable_gremlin_graphs
TypeResource
Idazure.cosmos_db.restorable_gremlin_graphs

Fields

The following fields are returned by SELECT queries:

The operation completed successfully.

NameDatatypeDescription
idstringThe unique resource Identifier of the ARM resource.
namestringThe name of the ARM resource.
propertiesobjectThe properties of a Gremlin graph event.
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, location, instanceIdrestorableGremlinDatabaseRid, startTime, endTimeShow 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.

NameDatatypeDescription
instanceIdstringThe instanceId GUID of a restorable database account.
locationstringCosmos DB region, with spaces between words and each word capitalized.
subscriptionIdstringThe ID of the target subscription.
endTimestringRestorable Gremlin graphs event feed end time.
restorableGremlinDatabaseRidstringThe resource ID of the Gremlin database.
startTimestringRestorable Gremlin graphs event feed start time.

SELECT examples

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,
properties,
type
FROM azure.cosmos_db.restorable_gremlin_graphs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND instanceId = '{{ instanceId }}' -- required
AND restorableGremlinDatabaseRid = '{{ restorableGremlinDatabaseRid }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
;