Bridgecrew 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.Visit Bridgecrew documentation for more information here (https://docs.bridgecrew.io/docs/suppress).
To use the API request, add your token to the header.
Use this API function to create a new Bridgecrew 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”