How to get the list of policies in Microsoft Cloud app security using window powershell?

Hello Team,

Below are the powershell command to get the list of policies in Microsoft Cloud app security using window powershell.

$response = Invoke-RestMethod  -Uri "https://yourorganisation.us2.portal.cloudappsecurity.com/cas/api/v1/policies/" -Headers @{Authorization = "Token 34343dQUpdTV1AXA34343dW05DA3434343343433TEBCU01NTBkfHRYbGRcdTBhJSUlMTRkXTklOHEkZSR4dFxgaFhpNSx9JHks3434343343E0232="} -Method Post  -Verbose                

                                   

           $response = $response.data

$response |
    Format-Table -Property  name,matchesCount -AutoSize



Happy Blogging!!

Leave a Reply

Your email address will not be published.