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.

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}/cicd/passCriteriaGroup/create


Descriptor

Value

HTTP Method

POST

Description

Creates a new CI/CD Pass Criteria Group.

Required Permission

Manage CI/CD

Version Introduced2.8.0


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

nameStringYesName of pass criteria.

severity

String

Yes

Name of severity.

maxAllowed

Integer

No*

The maximum number of vulnerabilities allowed for the Pass Criteria.  If no value is specified, there is no limit.

maxIntroduced

Integer

No*

The maximum number of new vulnerabilities in a scan for the Pass Criteria.  If no value is specified, there is no limit.

notAllowedBooleanNo*If no vulnerabilities allowed for the Pass Criteria (analogous to setting maxAllowed=0)
notIntroducedBooleanNo*If no new vulnerabilities allowed in a scan for the Pass Criteria (analogous to setting maxIntroduced=0)

* Either maxAllowed, maxIntroduced, notAllowed, or notIntroduced must be specified

Sample Call (setting max values):

curl --insecure -H 'accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'name=Test&severity=HIGH&maxAllowed=5&maxIntroduced=5' http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/create

Sample Call (setting boolean values):

curl --insecure -H 'accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'name=Test&severity=HIGH&notAllowed=true&notIntroduced=true' http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/create


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": {
        "id": 3,
        "name": "example",
        "applications": [],
        "passCriteria": []
    },
    "links": [
        {
            "name": "list",
            "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/",
            "method": "GET"
        },
        {
            "name": "detail",
            "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/3/detail",
            "method": "GET"
        },
        {
            "name": "create",
            "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/create",
            "method": "POST"
        },
        {
            "name": "update",
            "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/3/update",
            "method": "PUT"
        },
        {
            "name": "delete",
            "href": "http://localhost:8080/threadfix/rest/latest/cicd/passCriteriaGroup/3/delete",
            "method": "DELETE"
        }
    ]
}

The selected root page could not be found.

  • No labels