Get-VEMDBPublishedCollection
Short Description
Returns published MongoDB collections.
Applies to
Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Get published collections from the published database.
|
Get-VEMDBPublishedCollection [[-Database] <VEMDBPublishedDatabase>] [-Name <String[]>] [<CommonParameters>] |
- Get published collections using the names of the published instances.
|
Get-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-VEMDBCollectionRestoreOptions 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 VEMDBPublishedDatabase object. To get this object, run the Get-VEMDBPublishedDatabase cmdlet. |
False |
0 |
True (ByValue) |
|
Instance |
Specifies an array of names of published MongoDB instances, in the <server>:<port> format (for example, mongodb01:27017). The cmdlet will return an array of collections that belong to published instances with those names. This parameter accepts wildcard characters. |
String[] |
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. |
String[] |
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 Docs.
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:
The cmdlet will return an array of published databases. Note the ordinal number of the necessary published database. In this example, it is the first database in the array.
|
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