Added Close-Session cmdlet
This commit is contained in:
20
functions/public/Close-Session.ps1
Normal file
20
functions/public/Close-Session.ps1
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user