REST API - How to get list of policy violations for an application id?

integrations

#1

Currently we have an integration where we would like to pull security violations and policy violations for an application id. We were successful is retrieving security violation using Reports /api/v2/applications/[applicationPublicId]/reports/[reportId] API but i am unable to figure out how to get policy violations in the same way. At the best i could figure out that we could use this API /api/v2/evaluation/applications/{applicationInternalId}/results/{resultId} to pull policy violation, but then how to get resultid for an application id?


#2

Anyone who have a clue how to get around this problem?