Skip to content

Commit

Permalink
add vdom parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 16, 2024
1 parent b1949e2 commit c095737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PowerFGT/Public/monitor/system/interface/dhcp-status.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function Get-FGTMonitorSystemInterfaceDHCPStatus {
[Parameter (Mandatory = $true, Position = 1)]
[string]$interface,
[Parameter(Mandatory = $false)]
[String[]]$vdom,
[Parameter(Mandatory = $false)]
[psobject]$connection = $DefaultFGTConnection
)

Expand All @@ -31,6 +33,10 @@ function Get-FGTMonitorSystemInterfaceDHCPStatus {

Process {

if ( $PsBoundParameters.ContainsKey('vdom') ) {
$invokeParams.add( 'vdom', $vdom )
}

$uri = "api/v2/monitor/system/interface/dhcp-status?mkey=$($interface)"
$response = Invoke-FGTRestMethod -uri $uri -method 'GET' -connection $connection
$response.results
Expand Down

0 comments on commit c095737

Please sign in to comment.