Redgate Monitor 14

Add-RedgateMonitorSshPrivateKey

Adds a SSH private key to the specific base monitor.

Syntax

Add-RedgateMonitorSshPrivateKey [-BaseMonitor] <BaseMonitor> [-Name] <string> [-Key] <string> [[-Passphrase] <string>] [<CommonParameters>]

Description

Adds a SSH private key to base monitor which can be retrieved using Get-RedgateMonitorSshPrivateKey.

Parameters

-BaseMonitor <BaseMonitor>

{{ Fill BaseMonitor Description }}

Aliases None
Required? true
Position? 1
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

-Name <String>

{{ Fill Name Description }}

Aliases None
Required? true
Position? 2
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

-Key <String>

{{ Fill Key Description }}

Aliases None
Required? true
Position? 3
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

-Passphrase <String>

{{ Fill Passphrase Description }}

Aliases None
Required? false
Position? 4
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

-ProgressAction <ActionPreference>

{{ Fill ProgressAction Description }}

Aliases None
Required? false
Position? named
Default Value None
Accept Pipeline Input False
Accept Wildcard Characters false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • [BaseMonitor] See Get-RedgateMonitorBaseMonitor.

  • [string] Name for SSH private key

  • [string] SSH private key

  • [string] Passphrase for SSH private key (optional)

Examples

-------------------------- EXAMPLE 1 --------------------------

Add-RedgateMonitorSshPrivateKey -BaseMonitor $BaseMonitor -Name "machine-key"  -Key "secret-key"  -Passphrase "secret-passphrase"

-------------------------- EXAMPLE 2 --------------------------

Add-RedgateMonitorSshPrivateKey -BaseMonitor $BaseMonitor -Name "machine-key"  -Key "secret-key"


Didn't find what you were looking for?