Get Impacted Code Repository Vulnerability Policy
GET/api/v31.02/policies/vulnerability/coderepos/impacted
x-prisma-cloud-target-env: {"permission":"policyCodeRepos","saas":true,"self-hosted":true}
x-public: true
Lists the code repositories caught by your policy on a per-rule basis.
To see where Console invokes this endpoint:
- In Console, go to Defend > Vulnerabilities.
- In the Vulnerability rules section, click Show under the Entities in scope column for a rule.
- The endpoint is invoked when the pop-up is displayed.
cURL Request
The following cURL command returns a list of code repositories captured by <RULE_NAME>
.
$ curl -k \
-u <USER> \
-X GET 'https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/coderepos/impacted?project=<PROJECT_NAME>&ruleName=<RULE_NAME>'
A successful response contains a list of impacted repositories by a rule within the context of the policy.
Request
Responses
- 200
- default