Prisma Cloud REST Messages
Prisma REST messages are used to make calls to the Prisma Application Programming Interface (API) to fetch the compliance data.
The following REST messages are shipped with the base system.
Prisma Cloud integrations
All Prisma Cloud integrations use the JSON Web Token (JWT) for authentication and authorization.
| Endpoint | Description | Method | Body | API documentation link |
|---|---|---|---|---|
| /login |
Obtains the JWT token for use in all subsequent integrations. |
POST |
|
https://pan.dev/prisma-cloud/api/cspm/app-login/ |
| Endpoint | Description | Method | Body | API documentation link |
|---|---|---|---|---|
| /auth_token/extend | Automatically renews the JWT token on expiration. The default duration for token expiry is 60 minutes. | GET | NA | https://pan.dev/prisma-cloud/api/cspm/extend-session/ |
| Endpoint | Description | Method | Body | API documentation link |
|---|---|---|---|---|
| /v2/policy | Retrieves all the policy data from Prisma. | GET | NA | https://pan.dev/prisma-cloud/api/cspm/get-policies/ |
| Endpoint | Description | Method | Body | API documentation link |
|---|---|---|---|---|
| /v2/alert | Retrieves all alerts from Prisma. | POST |
|
https://pan.dev/prisma-cloud/api/cspm/post-alerts/ |
For Prisma Comprehension Alert integration, the filters in the above POST body must be replaced as follows:
"filters": [
{
"name": "alert.status",
"operator": "=",
"value": "open"
},
{
"name": "alert.status",
"operator": "=",
"value": "dismissed"
},
{
"name": "alert.status",
"operator": "=",
"value": "snoozed"
},
{
"name": "alert.status",
"operator": "=",
"value": "pending_resolution"
},
{
"name": "timeRange.type",
"operator": "=",
"value": "ALERT_UPDATED"
}
],