Correct Param to match API Spec
This commit is contained in:
@@ -10,15 +10,15 @@ function Invoke-ZertoFailoverCommit {
|
|||||||
[Parameter(
|
[Parameter(
|
||||||
HelpMessage = "Use this switch to reverse protect the VPG(s) to the source site."
|
HelpMessage = "Use this switch to reverse protect the VPG(s) to the source site."
|
||||||
)]
|
)]
|
||||||
[switch]$reverseProtect
|
[switch]$reverseProtection
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
$baseUri = "vpgs"
|
$baseUri = "vpgs"
|
||||||
if ( $reverseProtect ) {
|
if ( $reverseProtection ) {
|
||||||
$body = @{"IsReverseProtect" = $true}
|
$body = @{"IsReverseProtection" = $true}
|
||||||
} else {
|
} else {
|
||||||
$body = @{"IsReverseProtect" = $false}
|
$body = @{"IsReverseProtection" = $false}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user