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 Remote Provider Application Mapping - API
- Kyle Pippin (Unlicensed)
- Nicholas Christiny (Unlicensed)
- David Harrison (Unlicensed)
/rest/{version}/remoteprovider/remoteProviderApplication/{remoteProviderApplicationId}/addMapping
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Maps a ThreadFix application to the Remote Provider application. |
Required Permission | Manage Remote Providers |
Version Introduced | 2.5.0 |
Changes in 2.7.5 | Added "policyStatuses" to the REST call response. |
Changes in 2.7.5 | Added "testEnvironment", "releaseFrequency", and "isInternal" to the REST call response. |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Request Parameters
Parameter | Value | Required | Description |
---|---|---|---|
applicationId | Integer | Yes | ID for the ThreadFix application to map to the Remote Provider application. |
reportUrl | URL | No | The version URL to use for Black Duck remote provider applications. Refer to the Get Remote Provider Application Versions API call to obtain the reportUrl value for the version that you need to map. |
Sample Calls:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apikey}" -X POST --data "applicationId={appid}&reportUrl=https://{hostname}.blackducksoftware.com/api/projects/{projectid}/versions/{versionid}/vulnerable-bom-components" http://localhost:8080/threadfix/rest/latest/remoteprovider/remoteProviderApplication/{remoteproviderid}/addMapping
Sample Output:
{ Â Â Â "message": "", Â Â Â "success": true, Â Â Â "responseCode": -1, Â Â Â "object": { Â Â Â Â Â Â Â "id": 4, Â Â Â Â Â Â Â "nativeId": "Test Project", Â Â Â Â Â Â Â "nativeName": "Test Project", Â Â Â Â Â Â Â "customName": null, Â Â Â Â Â Â Â "versionsUrl": "https://{hostname}.blackducksoftware.com/api/projects/{projectid}/versions", Â Â Â Â Â Â Â "remoteProviderEntity": { Â Â Â Â Â Â Â Â Â Â Â "id": 2, Â Â Â Â Â Â Â Â Â Â Â "name": "BD", Â Â Â Â Â Â Â Â Â Â Â "remoteProviderType": { Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "name": "Black Duck", Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "id": 10 Â Â Â Â Â Â Â Â Â Â Â } Â Â Â Â Â Â Â }, Â Â Â Â Â Â Â "application": { Â Â Â Â Â Â Â Â Â Â Â "id": 1, Â Â Â Â Â Â Â Â Â Â Â "name": "Test App", Â Â Â Â Â Â Â Â Â Â Â "url": null, Â Â Â Â Â Â Â Â Â Â Â "applicationCriticality": { Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "id": 2, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "name": "Medium" Â Â Â Â Â Â Â Â Â Â Â }, "policyStatuses": [ { "id": 3 } ], "description": null, "releaseFrequency": "UNKNOWN", "testEnvironment": null, "isInternal": false, "team": { "name": "delete team", "id": 9 } Â Â Â Â Â Â Â Â Â Â Â "team": { Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "name": "Test Team", Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "id": 1 Â Â Â Â Â Â Â Â Â Â Â } Â Â Â Â Â Â Â }, Â Â Â Â Â Â Â "lastImportTime": null, Â Â Â Â Â Â Â "lastImportAttemptTime": null, Â Â Â Â Â Â Â "lastImportStatus": "NOT_ATTEMPTED" Â Â Â } }
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.