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

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?

1 Like

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

You can use the Policy Violation REST APIs to get the policy violations gathered during the evaluation of applications. Did that solve your problem?