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

Version 1 Next »

/rest/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.

Restricted

true

 

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.

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.

Dates are formatted as yyyy-MM-dd

 

Sample Call:

curl --insecure -X GET http://localhost:8080/threadfix/rest/policy/status/application/1/evaluate?apiKey={apiKey}&fromDate=2017-04-01&toDate=2017-04-27

 

Sample Output:


{
    "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"
        }
    }
}

  • No labels