Skip to content

Commit

Permalink
Add Search Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Jun 10, 2018
1 parent 5f3abe1 commit 752ee70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Private/Invoke-OPNsenseOpenApiPath.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Function Invoke-OPNsenseOpenApiPath {

# [parameter(Mandatory = $false)][HashTable]$AddProperty,
[parameter(Mandatory = $false)][String]$Uuid,
[parameter(Mandatory = $false)][String]$Filter,
[parameter(Mandatory = $false)][Switch]$Enabled
)

Expand Down Expand Up @@ -84,6 +85,9 @@ Function Invoke-OPNsenseOpenApiPath {

if ($Action -eq 'search') {
$splat.Property = 'rows'
if ($Filter) {
$splat.Form = @{ 'searchPhrase' = $Filter}
}
}

if ($Body) {
Expand Down

0 comments on commit 752ee70

Please sign in to comment.