< Back
Get-FortiGateConfig
Post
NAME Get-FortiGateConfig
SYNOPSIS
Gets the FortiGate device config.
SYNTAX
Get-FortiGateConfig [-HostAddress] <String> [[-HostPort] <Int32>] [-Credential] <PSCredential> [-Full
<SwitchParameter>] [-AcceptKey <SwitchParameter>] [<CommonParameters>]
DESCRIPTION
Gets the FortiGate device config.
PARAMETERS
-HostAddress <String>
The SSH host address of the FortiGate device.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HostPort [<Int32>]
The SSH host port of the FortiGate device.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The SSH credentials to use.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Full [<SwitchParameter>]
Full configuration with default values.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AcceptKey [<SwitchParameter>]
Automatically accept SSH key.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -Credential (Get-Credential)
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -HostPort 22 -Credential (Get-Credential) -Full
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -HostPort 22 -Credential (Get-Credential) -AcceptKey
RELATED LINKS
SYNOPSIS
Gets the FortiGate device config.
SYNTAX
Get-FortiGateConfig [-HostAddress] <String> [[-HostPort] <Int32>] [-Credential] <PSCredential> [-Full
<SwitchParameter>] [-AcceptKey <SwitchParameter>] [<CommonParameters>]
DESCRIPTION
Gets the FortiGate device config.
PARAMETERS
-HostAddress <String>
The SSH host address of the FortiGate device.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HostPort [<Int32>]
The SSH host port of the FortiGate device.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The SSH credentials to use.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Full [<SwitchParameter>]
Full configuration with default values.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AcceptKey [<SwitchParameter>]
Automatically accept SSH key.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -Credential (Get-Credential)
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -HostPort 22 -Credential (Get-Credential) -Full
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-FortiGateConfig -HostAddress "192.168.1.99" -HostPort 22 -Credential (Get-Credential) -AcceptKey
RELATED LINKS