Update suppression by policy id and suppression id
Prisma Cloud Code 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 Code 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.
Path Parameters
- policyId string required
- suppressionId string required
- application/json
Request Body required
- anyOf
- ResourcesSuppressionCreate
- PolicySuppressionCreate
- AccountsSuppressionCreate
- TagsSuppressionCreate
- LicenseSuppressionCreate
- PackageSuppressionCreate
comment string requiredexpirationTime doubleorigin string requiredresources object[] required
Array [accountId string requiredid string required]suppressionType string requiredPossible values: [
Resources
]comment string requiredexpirationTime doubleorigin string requiredsuppressionType string requiredPossible values: [
Policy
]accountIds string[] requiredcomment string requiredexpirationTime doubleorigin string requiredsuppressionType string requiredPossible values: [
Accounts
]comment string requiredexpirationTime doubleorigin string requiredsuppressionType string requiredPossible values: [
Tags
]tags object[] required
Array [key string requiredvalue string required]comment string requiredexpirationTime doublelicenseTypes string[] requiredorigin string requiredsuppressionType string requiredPossible values: [
LicenseType
]comment string requiredexpirationTime doubleorigin string requiredpackages object[] required
Array [language PackageLang requiredPossible values: [
nodejs
,ruby
,python
,jar
,dotNet
,go
,os
]packageName string requiredversion string required]suppressionType string requiredPossible values: [
PackageLicense
]
- 200
- 400
- 401
- 422
- 500
Suppression ID
- application/json
- Schema
Schema
- string
Update suppression failed due to bad request
Unauthorized to update suppression
Request arguments validation error
Failed to update suppression do to internal server error