Update Suppression by Policy ID and Suppression ID
PUT/code/api/v1/suppressions/:policyId/justifications/:suppressionId
Prisma Cloud Application Security supports advanced Suppression rule settings in order to make policy management easier by dismissing or snoozing errors (using time-bounded suppression rules) that are irrelevant in your cloud and code environments. Suppression can be applied at various levels: for all cases (Disable Policy), for a specific Source, for a Specific Resource or by tag.
To use the API request, add your token to the header.
Use this API function to update an existing Prisma Cloud Application Security Suppression rule for the given policyId and suppressionId mentioned in the path. The input includes comment (Justification for such rule), SuppressionType (Resources (by default), Accounts, Policy OR Tags) and expirationTime (in Unix epoch time).
- for Resources - resources - array of { id, accountId }
- for Accounts - accountIds - array of strings
- for Policy - nothing
- for Tags - tags - array of { key, value } The output will be -
- Success - 200, suppressionId
- Error - 400, Couldn't update suppression ${suppressionId}
Use the example below as a reference for configuring the API request body for saving new suppression rules.
Request
Responses
- 200
- 400
- 401
- 422
- 500
Suppression ID
Update suppression failed due to bad request
Unauthorized to update suppression
Request arguments validation error
Failed to update suppression do to internal server error