Create stop vpg clone operation.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user