As we reach the end of September 2024, ThreadFix version 3.x on-premises has officially reached its End-of-Life. Therefore, there is no longer support or updates for this version of the product. We have fully transitioned our product and development teams to focus ThreadFix SaaS and migrating all customers over from the on-premises versions. Our Customer Success and Support teams are here to help you in migrating to ThreadFix SaaS and maximizing the value you see from this improved offering from Coalfire. This is the next phase of ThreadFix and our team is looking forward to continuing to support you on this journey.
Evaluate CI/CD Pass Criteria 3.0 - API
/rest/{version}/policy/status/application/{appId}/evaluate
Descriptor | Value |
---|---|
HTTP Method | GET |
Description | Checks the specified application against all of the CI/CD Pass Criteria it is attached to. |
Required Permission | Manage CI/CD |
Version Introduced | 2.5.0 |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Request GET Data Parameters
Parameter | Value | Required | Description |
---|---|---|---|
fromDate | Date | No | Evaluate against any new open vulnerabilities from this date. If no date is specified, the start date will be December 31, 1969. The time will be the start of day, 00:00:00. Note: Epoch time is returned in milliseconds. |
toDate | Date | No | Evaluate against any new open vulnerabilities until this date. If no start date is specified, the end date will be the current date. The time will be the end of day, 23:59:59. Note: Epoch time is returned in milliseconds. |
Dates are formatted as yyyy-MM-dd
Sample Call:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X GET http://localhost:8080/threadfix/rest/latest/policy/status/application/1/evaluate&fromDate=2017-04-01&toDate=2017-04-27
Sample Output:
Values for fromDate and toDate are returned as Epoch time in milliseconds.
{
   "message": "",
   "success": true,
   "responseCode": -1,
   "object": {
       "id": 1,
       "passed": [
           {
               "id": 1,
               "severity": "Critical",
               "maxAllowed": 9,
               "maxIntroduced": 8
           }
       ],
       "failed": [],
       "fromDate": 1491022800000,
       "toDate": 1493355599059,
       "passing": true,
       "snapshot": {
           "id": 1,
           "vulnerabilitySummary": {
               "id": 1,
               "infoTotal": 2,
               "lowTotal": 0,
               "mediumTotal": 8,
               "highTotal": 5,
               "criticalTotal": 2,
               "newInfoTotal": 2,
               "newLowTotal": 0,
               "newMediumTotal": 8,
               "newHighTotal": 5,
               "newCriticalTotal": 2
           },
           "snapshotType": "POLICY_EVAL"
       }
   }
}
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.