Get-VEMDBPublishedCollection
Short Description
Returns published MongoDB collections.
Product: Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
DatabaseParameterSetGet-VEMDBPublishedCollection [[-Database] <VEMDBPublishedDatabase>] [-Name <String[]>] [<CommonParameters>]
-
InstanceParameterSetGet-VEMDBPublishedCollection -Instance <String[]> [-Name <String[]>] [<CommonParameters>]
Detailed Description
This cmdlet returns an array of published MongoDB collections. Once you get the necessary MongoDB collections, you can use the New-VEMDBCollectionRestoreOptionsDefines the restore options that you can apply to a restore job. cmdlet to specify the required restore options.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Database |
Specifies a published MongoDB database. The cmdlet will return an array of collections that belong to the database.
Accepts the |
False |
0 |
True (ByValue) |
|
|
Instance |
Specifies an array of names of published MongoDB instances, in the This parameter accepts wildcard characters. |
|
True |
Named |
False |
|
Name |
Specifies an array of names of published MongoDB collections. The cmdlet will return an array of published collections with the specified names. This parameter accepts wildcard characters. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VEMDBPublishedCollection[] array that contains settings of published MongoDB collections.
Examples
Example 1. Getting All Published MongoDB Collections
|
This example shows how to get an array of all published MongoDB collections.
|
Example 2. Getting All MongoDB Collections from Published Database
|
This example shows how to get an array of published MongoDB collections from a published database.
Perform the following steps:
|
Example 3. Getting All MongoDB Collections from Published Instances
|
This example shows how to get an array of all MongoDB collections on the specified published MongoDB instances.
Perform the following steps:
|
Related Commands
Get-VEMDBPublishedDatabaseReturns published MongoDB databases.