Files
ps.ipam/functions/public/Close-Session.ps1
2022-12-17 01:51:55 +03:00

20 lines
371 B
PowerShell

function Close-Session {
<#
.SYNOPSIS
Removes (revokes) token.
#>
[CmdletBinding()]
param()
process {
$_params = @{
Controller = [PS.IPAM.controllers]::user
Method = "DELETE"
}
Invoke-Request @_params
$script:psipamSession = $null
}
}
Export-ModuleMember Close-Session