New-VBRMongoDBCustomCredentials
Short Description
Creates custom credentials for computers within MongoDB replica sets to be selected for backup operations.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
CredentialsNew-VBRMongoDBCustomCredentials -Computer <VBRMongoDBComputer> [-Endpoint <String>] -Credentials <CCredentials> [<CommonParameters>]
-
TempCertificatesNew-VBRMongoDBCustomCredentials -Computer <VBRMongoDBComputer> [-Endpoint <String>] [-UseTemporaryCertificate] [<CommonParameters>]
-
TempCredentialsNew-VBRMongoDBCustomCredentials -Computer <VBRMongoDBComputer> [-Endpoint <String>] [-SSHTempCredentials]
-SSHUser <String> -SSHPassword <String> [-SSHPort <UInt16>] [-SSHElevateToRoot] [-SSHFailoverToSu]
[-SSHRootPassword <String>] [<CommonParameters>]
Detailed Description
This cmdlet creates custom credentials and temporary certificates for computers included in specific MongoDB replica sets.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Computer |
Specifies the computer whose credentials or temporary certificate you want to create.
Accepts the |
True |
Named |
True (ByPropertyName) |
|
|
Credentials |
Specifies the credentials you want to set for individual computers.
Accepts the |
|
True |
Named |
True (ByPropertyName) |
|
Endpoint |
Specifies the DNS name or an IP address of the computer that is part of the MongoDB replica set. |
|
False |
Named |
True (ByPropertyName, ByValue) |
|
SSHElevateToRoot |
Defines that the cmdlet will grant the non-root users with root account privileges. |
|
False |
Named |
True (ByPropertyName) |
|
SSHFailoverToSu |
Defines that Veeam Backup & Replication will use the su command if the sudo command fails. |
|
False |
Named |
True (ByPropertyName) |
|
SSHPassword |
Specifies the password you want to use to authenticate against individual computers in a protection group. |
|
True |
Named |
True (ByPropertyName) |
|
SSHPort |
Specifies the port number over which Veeam Backup & Replication communicates with the MongoDB replica set. By default, Veeam Backup & Replication uses port 27017. |
|
False |
Named |
True (ByPropertyName) |
|
SSHRootPassword |
Specifies the root password used for authentication. |
|
False |
Named |
True (ByPropertyName) |
|
SSHTempCredentials |
Defines that the cmdlet will use single-use credentials to access Linux-based machines. |
|
True |
Named |
True (ByPropertyName) |
|
SSHUser |
Specifies the user name you want to use to authenticate against individual computers in a protection group. |
|
True |
Named |
True (ByPropertyName) |
|
UseTemporaryCertificate |
Specifies a temporary certificate you want to set for individual computers. Use this parameter to set a temporary certificate to use instead of custom credentials.
Note: This parameter is required only if you do not use the |
|
True |
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 VBRMongoDBCustomCredentials object.
Examples
Configuring Custom Credentials and Temporary Certificate for Computers within Replica Sets
This command configures two individual computers within a replica set. The first is set up with custom credentials and the second is set up with a temporary certificate instead of custom credentials.
|
$computer0CustomCredentials = New-VBRMongoDBCustomCredentials -Computer $rs1Computers[0] -Credentials $computer0OsCredentials $computer1CustomCredentials = New-VBRMongoDBCustomCredentials -Computer $rs2Computers[0] -UseTemporaryCertificate |
Perform the following steps:
- Run the
New-VBRMongoDBCustomCredentialscmdlet.- Specify the
Computerparameter value with the name of a specific computer within the replica set. - Specify the
Credentialsparameter with the custom credentials you want to use. - Save the result to the
$computer0CustomCredentialsvariable.
- Specify the
- Run the
New-VBRMongoDBCustomCredentialscmdlet.- Specify the
Computerparameter value with the name of a specific computer within the replica set. - Use the
UseTemporaryCertificateparameter to use a temporary certificate instead of custom credentials. - Save the result to the
$computer1CustomCredentialsvariable.
- Specify the