diff --git a/PowerFGT/Public/monitor/system/interface/dhcp-status.ps1 b/PowerFGT/Public/monitor/system/interface/dhcp-status.ps1 index 3be83a51..8b893cca 100644 --- a/PowerFGT/Public/monitor/system/interface/dhcp-status.ps1 +++ b/PowerFGT/Public/monitor/system/interface/dhcp-status.ps1 @@ -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 ) @@ -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