Mend's enhanced SCA API enables automation of workflows in a REST compliant format. The API features:
If you have a dedicated instance of Mend, contact your Mend representative to access this API on your instance.
org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/{uuid}
{ "regex": "*aa*", "description": "description for white list" }
{ "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" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/{uuid}
No request payload
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/rules
[ { "uuid": "123e4567-e89b-12d3-a456-426655440000", "regex": "*aa*", "description": "description for white list" } ]
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
Creates multiple new whitelist rules for an organization, defining which libraries to match, 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.
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/rules
{ "rules": [ { … } ] }
{ "supportToken": "1171c60d", "retVal": [ { … } ] }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/rules
[ { "uuid": "123e4567-e89b-12d3-a456-426655440000" } ]
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList/apply
No request payload
{ "supportToken": "1171c60d", "retVal": { "message": "Success!" } }
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList
No request payload
OK
{ "additionalData": { "totalItems": "422", "isLastPage": "true" }, "supportToken": "1171c60d", "retVal": [ { … } ] }
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.
https://api-saas.mend.io/api/v2.0/orgs/{orgToken}/settings/whiteList
{ "regex": "*aa*", "description": "description for white list" }
{ "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" } }