How to get alerts for a specific policy in Cloud app security using Powershell

Hello Bloggers,

In this blog, we can see how to get alerts for a specific policy in Cloud app security using Powershell.

-----------------------------------------------------------------------------------------------------------------------------

$Body = @{


    "filters" = @{


    "entity.policy"=@{"eq"="5ae2481bfddeab61625fb5ef"}

   

    "resolutionStatus"=@{"eq"=0}      

 

 

    }


} | ConvertTo-Json


 

 

 

$Header = @{Authorization ="Token Your Token"}


$response = Invoke-RestMethod  -Uri "https://yourportal.us2.portal.cloudappsecurity.com/cas/api/v1/alerts/" -Headers $Header -Method POST -body $body -Verbose


$response.data

Leave a Reply

Your email address will not be published.