Skip to main content

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

    policyId stringrequired

Body

required
    anyOf
    comment stringrequired
    expirationTime double
    origin stringrequired
    resources object[]required
  • Array [
  • accountId stringrequired
    id stringrequired
  • ]
  • suppressionType stringrequired

    Possible values: [Resources]

Responses

Suppression ID

Schema

    string

Loading...