Get Impacted Image Vulnerability Policy
GET/api/v33.02/policies/vulnerability/images/impacted
x-prisma-cloud-target-env: {"permission":"policyContainers"}
Lists the images caught by your policy on a per-rule basis.
To see where Console invokes this endpoint:
- In Console, go to Defend > Vulnerabilities > Images > Deployed.
- In the policy table, 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 images caught by <RULE_NAME>
.
$ curl -k \
-u <USER> \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/images/impacted?project=<PROJECT_NAME>&ruleName=<RULE_NAME>"
A successful response contains a list of entities caught by a rule within the context of the policy.
Request
Responses
- 200
- default