Skip to main content

restorable_gremlin_resources

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

Overview

Namerestorable_gremlin_resources
TypeResource
Idazure.cosmos_db.restorable_gremlin_resources

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.
databaseNamestringThe name of the gremlin database available for restore.
graphNamesarrayThe names of the graphs available for restore.
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, location, instanceIdrestoreLocation, restoreTimestampInUtcReturn a list of gremlin database and graphs 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.

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.
restoreLocationstringThe location where the restorable resources are located.
restoreTimestampInUtcstringThe timestamp when the restorable resources existed.

SELECT examples

Return a list of gremlin database and graphs 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,
databaseName,
graphNames,
type
FROM azure.cosmos_db.restorable_gremlin_resources
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND instanceId = '{{ instanceId }}' -- required
AND restoreLocation = '{{ restoreLocation }}'
AND restoreTimestampInUtc = '{{ restoreTimestampInUtc }}'
;