Get Image Vulnerability Policy
GET/api/v31.02/policies/vulnerability/images
x-prisma-cloud-target-env: {"permission":"policyContainers","saas":true,"self-hosted":true}
x-public: true
Retrieves the vulnerability policy for deployed container images. A policy consists of ordered rules.
This endpoint maps to the policy table in Defend > Vulnerabilities > Images > Deployed in the Console UI.
cURL Request
The following cURL command retrieves all rules in the policy.
$ curl -k \
-u <USER> \
-X GET \
"https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/images?project=<PROJECT_NAME>"
A successful response contains a list of vulnerability rules in the policy.
Responses
- 200
- default
Policy represents a policy that should be enforced by the Auditor