Functions/EventSecurity/Get-PASPTARiskSummary.ps1
# .ExternalHelp psPAS-help.xml Function Get-PASPTARiskSummary { [CmdletBinding()] param( ) BEGIN { Assert-VersionRequirement -SelfHosted Assert-VersionRequirement -RequiredVersion 13.2 }#begin PROCESS { #Create request URL $URI = "$($psPASSession.BaseURI)/API/pta/API/Risks/Summary/" #Send request to web service $result = Invoke-PASRestMethod -Uri $URI -Method GET If ($null -ne $result) { #Return Results $result | Add-ObjectDetail -typename psPAS.CyberArk.Vault.PTA.Event.Risk.Summary } }#process END { }#end } |