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

/rest/{version}/wafs/new


Descriptor

Value

HTTP Method

POST

Description

Creates a WAF with the given type.

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.


Request POST Data Parameters

Parameter

Value

Required

Description

Values

name

String

Yes

Name of the WAF.

N/A

Type

String

Yes

WAF type.

“mod_security”, “SteelApp Web App Firewall”, “Snort”, “Imperva SecureSphere”, “DenyAll rWeb”, “BIG-IP ASM”, “Barracuda Web Application Firewall”


Sample Call:


curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'name=Example WAF&type=mod_security' http://localhost:8080/threadfix/rest/latest/wafs/new


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": {
        "id": 2,
        "name": "Example WAF",
        "wafTypeName": "mod_security",
        "applications": []
    }
}

  • No labels