Fix variable Typo

This commit is contained in:
Wes Carroll
2019-06-06 11:31:44 -04:00
parent 8581c037d7
commit 5990d57285
+4 -4
View File
@@ -16,10 +16,10 @@ function Get-ZAAlert {
[int]$limitTo,
[Parameter(
HelpMessage = "The VPG Idnetifier",
ParameterSetName = "vpgId"
ParameterSetName = "alertId"
)]
[ValidateNotNullOrEmpty()]
[string]$vpgIdentifier
[string]$alertIdentifier
)
$uri = "monitoring/alerts"
switch ($PSCmdlet.ParameterSetName) {
@@ -30,8 +30,8 @@ function Get-ZAAlert {
}
}
vpgId {
$uri = "{0}/{1}" -f $uri, $vpgIdentifier
alertId {
$uri = "{0}/{1}" -f $uri, $alertIdentifier
}
}
Invoke-ZARestRequest -uri $uri