Public/cmdb/system/vdom.ps1
# # Copyright 2019, Alexis La Goutte <alexis dot lagoutte at gmail dot com> # # SPDX-License-Identifier: Apache-2.0 # function Get-FGTSystemVdom { <# .SYNOPSIS Get list of all vdom .DESCRIPTION Get list of all vdom (name, shortname, cluster-id ) .EXAMPLE Get-FGTSystemVdom Get list of all vdom settings .EXAMPLE Get-FGTSystemVdom -skip Get list of all vdom (but only relevant attributes) .EXAMPLE Get-FGTSystemVdom -vdom vdomX Get list of all vdom 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 ) } $reponse = Invoke-FGTRestMethod -uri 'api/v2/cmdb/system/vdom' -method 'GET' -connection $connection @invokeParams $reponse.results } End { } } |