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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

/rest/{version}/scanner/blacklistWhitelist/setListMode


Descriptor

Value

HTTP Method

POST

Description

Allows user to change from current mode to new mode

Required Permission

Manage Vulnerability Types

Version Introduced2.7.9


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.


Request PUT Data Parameters

Parameter

Value

Required

Description

channelTypeIdIntegerYesThe ID of the channel type

channelTypeName

String

No*

The name of the channel type (e.g. Checkmarx, Black Duck, etc.).
*Required if channelTypeId is not used.

listMode

String

Yes

Accepted values are "blacklist" or "whitelist"


Sample Call:

curl --insecure -H 'accept: application/json' -H "Authorization: APIKEY {api_key}" -X POST --data 'channelTypeName=Checkmarx&listMode=whitelist' http://localhost:8080/threadfix/rest/scanner/blacklistWhitelist/setListMode


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": "successfully updated list mode"
}

  • No labels