Get CI Serverless Vulnerability Policy
GET/api/v31.02/policies/vulnerability/ci/serverless
x-prisma-cloud-target-env: {"permission":"policyServerless","saas":true,"self-hosted":true}
x-public: true
Retrieves the vulnerability policy for serverless functions scanned in your continuous integration (CI) pipeline. A policy consists of ordered rules.
This endpoint maps to the policy table in Defend > Vulnerabilities > Functions > CI in the Console UI.
cURL Request
Refer to the following example cURL command:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
'https://<CONSOLE>/api/v<VERSION>/policies/vulnerability/ci/serverless'
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