SQL Monitor 13

Get-SqlMonitorSshPrivateKey

Gets all SSH private keys on selected Base Monitor.

Syntax

Get-SqlMonitorSshPrivateKey [[-BaseMonitor] <BaseMonitor>] [[-Name] <string>] [<CommonParameters>]

Description

The Get-SqlMonitorSshPrivateKey cmdlet gets details of the SSH Private key from the SQL Monitor Server (Does not return the private key value, only the information displayed on Manage SSH Keys page).

Connect-SqlMonitor must be called before this cmdlet.

Parameters

-BaseMonitor <BaseMonitor>

The Base Monitor name to get SSH key from if not provided all SSH keys are returned.

Aliases None
Required? false
Position? 1
Default Value None
Accept Pipeline Input True (ByValue)
Accept Wildcard Characters false

-Name <String>

{{ Fill Name Description }}

Aliases None
Required? false
Position? 2
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.

  • None.
    You cannot pipe input to this cmdlet.

Return values

The output type is the type of the objects that the cmdlet emits.

Examples

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

Get-SqlMonitorSshPrivateKey -BaseMonitor $BaseMonitor

This command will get all SSH private keys on the specified base monitor.

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

Get-SqlMonitorSshPrivateKey -Name "SSHKey"

This command will get the SSH private key with the name "SSHKey" from all base monitors.

-------------------------- EXAMPLE 3 --------------------------

Get-SqlMonitorSshPrivateKey -BaseMonitor $BaseMonitor -Name "SSHKey"

This command will get the SSH private key with the name "SSHKey" on the specified base monitor.


Do you have any feedback on this documentation?

Let us know at sqlmonitorfeedback@red-gate.com


Didn't find what you were looking for?