Create New Suppression by Policy ID
POST/code/api/v1/suppressions/:policyId
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,
To use the API request, add your token to the header. Use this API function to create a new Prisma Cloud Application Security Suppression rule that will be associated with the policyId included in the request. The input includes comment (Justification), 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 response - 200 , suppressionId
- error response - 400, “Couldn't save suppression”
Request
Path Parameters
- application/json
Body
required
- ResourcesSuppressionCreate
- PolicySuppressionCreate
- AccountsSuppressionCreate
- TagsSuppressionCreate
- LicenseSuppressionCreate
- PackageSuppressionCreate
- Array [
- ]
- Array [
- ]
- Array [
- ]
resources object[]required
Possible values: [Resources
]
Possible values: [Policy
]
Possible values: [Accounts
]
Possible values: [Tags
]
tags object[]required
Possible values: [LicenseType
]
packages object[]required
Possible values: [nodejs
, ruby
, python
, jar
, dotNet
, go
, os
]
Possible values: [PackageLicense
]
Responses
- 200
- 422
Suppression ID
- application/json
- Schema
Schema
string
Request arguments validation error