Freigeben über


Get-AzCosmosDBMongoDBRestorableCollection

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

Syntax

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

Beschreibung

Listet alle wiederherstellbaren Azure Cosmos DB MongoDB-Auflistungen 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 Sammlungen unter einer bestimmten Datenbank entsprechen. Diese Liste ist nützlich, um den Zeitstempel der Wiederherstellung basierend auf den Änderungen in der Auflistung zu identifizieren. Wenn der Benutzer beispielsweise das Datenbankkonto auf einen Zeitstempel wiederherstellen möchte, wenn eine bestimmte Auflistung gelöscht wird, kann der Benutzer das entsprechende Löschereignis der Sammlung aus dieser Liste finden und einen Zeitstempel vor dem Löschereignis für die Wiederherstellung auswählen.

Beispiele

Beispiel 1

Get-AzCosmosDBMongoDBRestorableCollection -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceId" -DatabaseRId "DatabaseRId"

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

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

Id              : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts
                    /{DatabaseAccountInstanceId}/restorableMongoDBCollections/2afb35ba-1755-4fbc-85be-ae175dd0668f
Name            : 2afb35ba-1755-4fbc-85be-ae175dd0668f
Type            : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongoDBCollections
_rid            : lSuf5gAAAA==
OperationType   : Create
EventTimestamp  : 01/20/2021 18:42:43
OwnerId         : foo-collection1
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

Endzeit für wiederherstellbare MongoDB-Auflistungen des Ereignisfeeds.

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

-InputObject

CosmosDB Restorable MongoDB Database-Objekt

Type:PSRestorableSqlDatabaseGetResult
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

Startzeit für wiederherstellbare MongoDB-Auflistungen des Ereignisfeeds.

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

Eingaben

None

Ausgaben

PSRestorableMongodbCollectionGetResult