16 lines
473 B
PowerShell
16 lines
473 B
PowerShell
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
|
|
function Disconnect-ZertoServer {
|
|
[cmdletbinding()]
|
|
param()
|
|
$uri = "session"
|
|
|
|
# Delete API Authorization
|
|
$null = Invoke-ZertoRestRequest -uri $uri -method DELETE
|
|
|
|
# Remove all variables used
|
|
Remove-Variable -Name zvmServer -Scope Script
|
|
Remove-Variable -Name zvmPort -Scope Script
|
|
Remove-Variable -Name zvmLastAction -Scope Script
|
|
Remove-Variable -Name zvmHeaders -Scope Script
|
|
}
|