Get-VBRMongoDBComputer

Short Description

Returns a list of all computers within specified replica sets.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VBRMongoDBComputer [-Name <String[]>] -Deployment <VBRMongoDBDeployment> [<CommonParameters>]

Detailed Description

This cmdlet returns a list of individual computers included in MongoDB replica sets.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Deployment

Specifies the replica set.

Accepts the VBRMongoDBDeployment object. To get this object, run the New-VBRMongoDBDeploymentConnects to and adds MongoDB replica sets to protection groups. cmdlet.

VBRMongoDBDeployment

True

Named

True (ByPropertyName)

Name

Specifies the name of the computer included in a specific replica set.

String[]

False

Named

True (ByPropertyName)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VBRMongoDBComputer object.

Examples

Loading a List of All Computers Within Multiple Replica Sets

This example shows how to load a list of all computers in two separate replica sets $replicaSet1 and $replicaSet2.

$rs1Computers = Get-VBRMongoDBComputer -Deployment $replicaSet1

$rs2Computers = Get-VBRMongoDBComputer -Deployment $replicaSet2

Perform the following steps:

  1. Run the Get-VBRMongoDBComputer cmdlet. Specify the Deployment parameter value with the name of a specific replica set $replicaSet1. Save the result to the $rs1Computers variable.
  2. Run the Get-VBRMongoDBComputer cmdlet. Specify the Deployment parameter value with the name of a specific replica set $replicaSet2. Save the result to the $rs2Computers variable.

New-VBRMongoDBDeploymentConnects to and adds MongoDB replica sets to protection groups.

Page updated 2026-09-02

Page content applies to build 13.1.1.18