Change New-ZertoApiFilter to Get-ZertoApiFilter

This commit is contained in:
Wes Carroll
2019-02-19 16:36:27 -05:00
parent 90857e8768
commit a6e7805dc0
11 changed files with 13 additions and 13 deletions
+18
View File
@@ -0,0 +1,18 @@
function Get-ZertoApiFilter {
[cmdletbinding()]
param(
[Parameter( Mandatory = $true )]
[hashtable]$filterTable
)
[string]$returnString = "?"
foreach ( $key in $filterTable.Keys ) {
if ($returnString.Length -gt 1) {
$returnString = "{0}&{1}={2}" -f $returnString, $key, $filterTable[$key]
} else {
$returnString = "{0}{1}={2}" -f $returnString, $key, $filterTable[$key]
}
}
return $returnString
}