Skip to content

Add Single Whitelist Rule

Request

Creates a new whitelist rule for an organization, defining which libraries to match along, their vulnerability scores and the actions to take. Whitelisted libraries have been pre-approved by your organization so no policy alerts will be created for them during scans, and they will be ignored by all organizational policies.

Security
bearer-key
Path
orgTokenstringrequired

org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).

Bodyapplication/jsonrequired
regexstring(White List Regex Rule)required
Example:"*aa*"
descriptionstring(White List Description)
Example:"description for white list"
POST
/api/v2.0/orgs/{orgToken}/settings/whiteList
{ "regex": "*aa*", "description": "description for white list" }

Responses

OK

Bodyapplication/json
supportTokenstring(Support Token)
Example:"1171c60d"
retValobject(WhiteListRuleDTO)
Response
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "regexType": "BY_NAME", "regex": "*aa*", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "description": "Sample description" } }