Fixed Mandatory params and updated fixed incorrect var
This commit is contained in:
@@ -72,12 +72,12 @@ function Get-ZertoVirtualizationSite {
|
|||||||
[switch]$devices,
|
[switch]$devices,
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "devices",
|
ParameterSetName = "devices",
|
||||||
andatory = $false,
|
Mandatory = $false,
|
||||||
HelpMessage = "The identifier of the host for which to return all devices."
|
HelpMessage = "The identifier of the host for which to return all devices."
|
||||||
)]
|
)]
|
||||||
[Parameter(
|
[Parameter(
|
||||||
ParameterSetName = "hosts",
|
ParameterSetName = "hosts",
|
||||||
andatory = $false,
|
Mandatory = $false,
|
||||||
HelpMessage = "The identifier of the host at the selected site to return information for only one host."
|
HelpMessage = "The identifier of the host at the selected site to return information for only one host."
|
||||||
)]
|
)]
|
||||||
[string]$hostIdentifier,
|
[string]$hostIdentifier,
|
||||||
@@ -158,7 +158,7 @@ function Get-ZertoVirtualizationSite {
|
|||||||
|
|
||||||
# If siteIdentifier is specified, return information for that site.
|
# If siteIdentifier is specified, return information for that site.
|
||||||
"siteIdentifier" {
|
"siteIdentifier" {
|
||||||
$uri = "{0}/{1}" -f $baseUri, $id
|
$uri = "{0}/{1}" -f $baseUri, $siteIdentifier
|
||||||
$returnObject = Invoke-ZertoRestRequest -uri $uri
|
$returnObject = Invoke-ZertoRestRequest -uri $uri
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user