Skip to main content

Get Code Repository Vulnerability Policy

GET 

/api/v31.02/policies/vulnerability/coderepos

x-prisma-cloud-target-env: {"permission":"policyCodeRepos","saas":true,"self-hosted":true}
x-public: true

Retrieves the vulnerability policy for code repositories. A policy consists of ordered rules.

This endpoint maps to Defend > Vulnerabilities > Code repositories in the Console UI.

cURL Request

Refer to the following example cURL command:

$ curl -k \
-u <USER> \
-X GET \
'https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/coderepos'

A successful response returns a list of vulnerability rules in the policy.

Responses

Policy represents a policy that should be enforced by the Auditor