Create stop vpg clone operation.

This commit is contained in:
Wes Carroll
2019-02-26 13:05:46 -05:00
parent 65d89031f3
commit 6f3f9e0f49
@@ -0,0 +1,24 @@
function Stop-ZertoCloneVpg {
param(
[Parameter(
HelpMessage = "Name of the VPG to stop cloning",
Mandatory = $true
)]
[string]$vpgName
)
begin {
$baseUri = "vpgs"
$vpgIdentifier = $(Get-ZertoVpg -name $vpgName).vpgIdentifier
}
process {
$uri = "{0}/{1}/CloneAbort" -f $baseUri, $vpgIdentifier
invoke-ZertoRestRequest -uri $uri -method "POST"
}
end {
# Nothing to do
}
}