Functions/Authentication/Clear-PASPrivateSSHKey.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# .ExternalHelp psPAS-help.xml function Clear-PASPrivateSSHKey { [CmdletBinding()] param( ) BEGIN { Assert-VersionRequirement -RequiredVersion 12.1 }#begin PROCESS { $URI = "$Script:BaseURI/api/Users/Secret/SSHKeys/ClearCache" #send request to webservice Invoke-PASRestMethod -Uri $URI -Method DELETE -WebSession $Script:WebSession }#process END { }#end } |