As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.
Add New Blacklist/Whitelist Entry - API
/rest/{version}/scanner/blacklistWhitelist/new
This endpoint was deprecated in version ThreadFix version 2.8.2 and replaced with Add New Deny List/Allow List Entry - API
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Creates a new blacklist or whitelist entry for a scanner |
Required Permission | Manage Vulnerability Types |
Version Introduced | 2.7.9 |
Changes in 2.8.2 | Deprecated and replaced with Add New Deny List/Allow List Entry - API |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Request POST Data Parameters
Parameter | Value | Required | Description |
---|---|---|---|
channelTypeId | Integer | Yes | The ID of the channel type. |
channelTypeName | String | No* | The name of the channel type (e.g. Checkmarx, Black Duck, etc.). |
channelVulnerabilityId | Integer | Yes | The ID of the channel vulnerability |
channelVulnerabilityName | String | No* | The name of the channel vulnerability. *Required if channelVulnerabilityId not used. |
Sample Call:
curl --insecure -H 'accept: application/json' -H "Authorization: APIKEY {api_key}" -X POST --data 'channelTypeName=Checkmarx&channelVulnerabilityId=2871' http://localhost:8080/threadfix/rest/latest/scanner/blacklistWhitelist/new
Sample Output:
For modifiedDate, values are returned as Epoch time in milliseconds.
{
"message": "",
"success": true,
"responseCode": -1,
"object": {
"id": 8,
"modifiedDate": 1575903777569,
"active": true,
"channelType": {
"id": 25,
"name": "Checkmarx",
"url": "http://www.checkmarx.com",
"version": "7.8",
"isBlacklistMode": true,
"mappingFilterName": "Checkmarx",
"customChannel": false,
"allowed": true
},
"channelVulnerability": {
"id": 2871,
"channelType": {
"id": 25,
"name": "Checkmarx",
"url": "http://www.checkmarx.com",
"version": "7.8",
"isBlacklistMode": true,
"mappingFilterName": "Checkmarx",
"customChannel": false,
"allowed": true
},
"userCreated": false,
"name": "Use_of_Two_Argument_Form_of_Open",
"code": "Use_of_Two_Argument_Form_of_Open",
"vulnerabilityMapHistories": [],
"genericVulnerability": {
"id": 398,
"name": "7PK - Code Quality",
"customText": null,
"displayId": 398,
"displayIdPrefix": "CWE-398",
"displayIdText": "398",
"CweId": 398
},
"editableMapping": false
}
}
}
www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.
This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.