From c0957376f5f41858e461fc8ce04756171166aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Mon, 16 Sep 2024 11:48:25 +0200 Subject: [PATCH] add vdom parameter --- PowerFGT/Public/monitor/system/interface/dhcp-status.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) 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