Get Serverless Compliance Policy
GET/api/v31.02/policies/compliance/serverless
x-prisma-cloud-target-env: {"permission":"policyServerless","saas":true,"self-hosted":true}
x-public: true
Retrieves the compliance policy for serverless functions situated in your cloud provider's infrastructure. A policy consists of ordered rules.
This endpoint maps to Defend > Compliance > Functions > Functions 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/compliance/serverless'
A successful response returns a list of compliance rules in the policy.
Responses
- 200
- default
Policy represents a policy that should be enforced by the Auditor