Delen via


Get-AzCosmosDBMongoDBRestorableCollection

Een lijst met alle beschikbare Azure Cosmos DB MongoDB-verzamelingen voor een specifieke database.

Syntaxis

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

Description

Een lijst met alle beschikbare Azure Cosmos DB MongoDB-verzamelingen voor een specifieke database. De lijst bevat vermeldingen die overeenkomen met het maken, vervangen en verwijderen van gebeurtenissen van alle live- en verwijderde verzamelingen onder een specifieke database. Deze lijst is handig om de hersteltijdstempel te identificeren op basis van de wijzigingen in de verzameling. Als de gebruiker bijvoorbeeld het databaseaccount wil herstellen naar een tijdstempel wanneer een specifieke verzameling wordt verwijderd, kan de gebruiker de bijbehorende gebeurtenis voor het verwijderen van verzamelingen uit deze lijst vinden en een tijdstempel kiezen voordat de verwijderingsbeurtenis moet worden hersteld.

Voorbeelden

Voorbeeld 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=

Het resourceobject bevat de eigenschappen van de verzamelingsresource

Parameters

-DatabaseAccountInstanceId

De exemplaar-id van het CosmosDB-databaseaccount. (Dit wordt geretourneerd als onderdeel van de eigenschappen van het databaseaccount).

Type:String
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-DatabaseRId

ResourceId van de database.

Type:String
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliassen:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-EndTime

Restorable MongoDB-verzamelingen gebeurtenisfeed eindtijd.

Type:String
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-InputObject

CosmosDB Restorable MongoDB Database-object

Type:PSRestorableSqlDatabaseGetResult
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:True
Jokertekens accepteren:False

-Location

Naam van de locatie in tekenreeks.

Type:String
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-StartTime

Restorable MongoDB collections event feed start time.

Type:String
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

Invoerwaarden

None

Uitvoerwaarden

PSRestorableMongodbCollectionGetResult