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.
Get All WAFs - API
WAF API's have been deprecated as of ThreadFix version 2.8.
/rest/{version}/wafs
Descriptor | Value |
---|---|
HTTP Method | GET |
Description | Retrieves all WAFs in system. |
Required Permission | Manage WAFs |
Version Introduced | 2.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/latest/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
}
}
]
}
]
}
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.