Public/cmdb/firewall/vip.ps1
# # Copyright 2019, Alexis La Goutte <alexis dot lagoutte at gmail dot com> # Copyright 2019, Benjamin Perrier <ben dot perrier at outlook dot com> # # SPDX-License-Identifier: Apache-2.0 # function Get-FGTFirewallVip { <# .SYNOPSIS Get list of all (NAT) Virtual IP .DESCRIPTION Get list of all (NAT) Virtual IP (Ext IP, mapped IP, type...) .EXAMPLE Get-FGTFirewallVip Get list of all nat vip object .EXAMPLE Get-FGTFirewallVip -skip Get list of all nat vip object (but only relevant attributes) .EXAMPLE Get-FGTFirewallVip -vdom vdomX Get list of all nat vip object on vdomX #> Param( [Parameter(Mandatory = $false)] [switch]$skip, [Parameter(Mandatory = $false)] [String[]]$vdom, [Parameter(Mandatory = $false)] [psobject]$connection=$DefaultFGTConnection ) Begin { } Process { $invokeParams = @{ } if ( $PsBoundParameters.ContainsKey('skip') ) { $invokeParams.add( 'skip', $skip ) } if ( $PsBoundParameters.ContainsKey('vdom') ) { $invokeParams.add( 'vdom', $vdom ) } $response = Invoke-FGTRestMethod -uri 'api/v2/cmdb/firewall/vip' -method 'GET' -connection $connection @invokeParams $response.results } End { } } |