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 4 Next »

/rest/wafs


Descriptor

Value

HTTP Method

GET

Description

Retrieves all WAFs in system.

Required Permission

Manage WAFs

Version Introduced2.3.0


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

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


Sample Call:


curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" http://localhost:8080/threadfix/rest/wafs


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": [
        {
            "id": 2,
            "active": true,
            "name": "Example WAF",
            "wafType": {
                "id": 4,
                "name": "mod_security",
                "initialId": 100000
            },
            "currentId": 100000,
            "lastWafRuleDirective": null,
            "canDelete": true,
            "wafRules": [],
            "wafTypeName": "mod_security",
            "applications": []
        },
        {
            "id": 1,
            "active": true,
            "name": "New WAF",
            "wafType": {
                "id": 4,
                "name": "mod_security",
                "initialId": 100000
            },
            "currentId": 100001,
            "lastWafRuleDirective": {
                "id": 12
            },
            "canDelete": false,
            "wafRules": [
                {
                    "id": 1,
                    "active": true
                }
            ],
            "wafTypeName": "mod_security",
            "applications": [
                {
                    "id": 1,
                    "active": true,
                    "name": "Application",
                    "frameworkType": "DETECT",
                    "repositoryFolder": null,
                    "repositoryUrl": null,
                    "repositoryBranch": null,
                    "url": "http://www.example-url.com",
                    "uniqueId": null,
                    "applicationCriticality": {
                        "id": 2,
                        "name": "Medium"
                    },
                    "projectName": null,
                    "projectId": null,
                    "component": null,
                    "grcApplication": null,
                    "infoVulnCount": 0,
                    "lowVulnCount": 0,
                    "mediumVulnCount": 1,
                    "highVulnCount": 1,
                    "criticalVulnCount": 0,
                    "totalVulnCount": 2,
                    "skipApplicationMerge": false,
                    "team": {
                        "name": "Test Team",
                        "id": 1
                    },
                    "organization": {
                        "name": "Test Team",
                        "id": 1
                    },
                    "waf": {
                        "name": "New WAF",
                        "id": 1
                    }
                }
            ]
        }
    ]
}

  • No labels