Freigeben über


Get-AzCosmosDBGremlinRestorableGraph

Listet alle wiederherstellbaren Azure Cosmos DB Gremlin-Diagramme auf, die für eine bestimmte Datenbank verfügbar sind.

Syntax

Get-AzCosmosDBGremlinRestorableGraph
   -Location <String>
   -DatabaseAccountInstanceId <String>
   -DatabaseRId <String>
   [-StartTime <String>]
   [-EndTime <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzCosmosDBGremlinRestorableGraph
   -InputObject <PSRestorableGremlinDatabaseGetResult>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Beschreibung

Listet alle wiederherstellbaren Azure Cosmos DB Gremlin-Diagramme auf, die für eine bestimmte Datenbank verfügbar sind. Die Liste enthält Einträge, die zum Erstellen, Ersetzen und Löschen von Ereignissen aller Live- und gelöschten Diagramme unter einer bestimmten Datenbank entsprechen. Diese Liste ist nützlich, um den Wiederherstellungszeitstempel basierend auf den Änderungen im Diagramm zu identifizieren. Wenn der Benutzer beispielsweise das Datenbankkonto auf einen Zeitstempel wiederherstellen möchte, wenn ein bestimmtes Diagramm gelöscht wird, kann der Benutzer das entsprechende Graph-Löschereignis aus dieser Liste finden und einen Zeitstempel vor dem Löschereignis für die Wiederherstellung auswählen.

Beispiele

Beispiel 1

Get-AzCosmosDBGremlinRestorableGraph -Location "locationName" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" -DatabaseRId "DatabaseRId"

Id              : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts
                    /{DatabaseAccountInstanceIdInstanceId}/restorableGremlinGraphs/6a0cb3e4-7d2b-4363-b585-04a3b14ada8c
Name            : 6a0cb3e4-7d2b-4363-b585-04a3b14ada8c
Type            : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinGraphs
_rid            : qsLuzwAAAA==
OperationType   : Create
EventTimestamp  : 01/20/2021 18:44:07
OwnerId         : foo-graph1
OwnerResourceId : Ts0YAPGKTvw=

Id              : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts
                    /{DatabaseAccountInstanceIdInstanceId}/restorableGremlinGraphs/ff36d1d3-f9dc-40a0-a003-60fe349abcfb
Name            : ff36d1d3-f9dc-40a0-a003-60fe349abcfb
Type            : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinGraphs
_rid            : Ngu72QAAAA==
OperationType   : Replace
EventTimestamp  : 01/20/2021 18:44:07
OwnerId         : foo-graph1
OwnerResourceId : Ts0YAP+RbG0=

Id              : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts
                    /{DatabaseAccountInstanceIdInstanceId}/restorableGremlinGraphs/2afb35ba-1755-4fbc-85be-ae175dd0668f
Name            : 2afb35ba-1755-4fbc-85be-ae175dd0668f
Type            : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinGraphs
_rid            : lSuf5gAAAA==
OperationType   : Create
EventTimestamp  : 01/20/2021 18:42:43
OwnerId         : foo-graph2
OwnerResourceId : Ts0YAP+RbG0=

Das Ressourcenobjekt enthält die Eigenschaften der Sammlungsressource.

Parameter

-DatabaseAccountInstanceId

Die Instanz-ID des CosmosDB-Datenbankkontos. (Dies wird als Teil der Datenbankkontoeigenschaften zurückgegeben).

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DatabaseRId

ResourceId der Datenbank.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EndTime

Wiederherstellbare Gremlin Graphs-Ereignisfeedzeit.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

CosmosDB Restorable Gremlin Database-Objekt.

Type:PSRestorableGremlinDatabaseGetResult
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Location

Name des Speicherorts in Zeichenfolge.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-StartTime

Wiederherstellbare Gremlin Graphs-Ereignisfeedzeit.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

PSRestorableGremlinDatabaseGetResult

Ausgaben

PSRestorableGremlinGraphGetResult