Create New-ZertoPairingToken.ps1

This commit is contained in:
Wes Carroll
2019-10-07 11:23:10 -04:00
parent 9d34086e40
commit 0a90d51735
@@ -0,0 +1,23 @@
<# .ExternalHelp ./en-us/ZertoApiWrapper-help.xml #>
function New-ZertoPairingToken {
[CmdletBinding(SupportsShouldProcess = $true)]
param (
)
begin {
}
process {
$uri = "peersites/generatetoken"
$body = @{ }
if ($PSCmdlet.ShouldProcess("Obtaining Pairing token from $script:zvmServer")) {
Invoke-ZertoRestRequest -uri $uri -method "POST" -body $($body | ConvertTo-Json)
}
}
end {
}
}