Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Added version and permission
/rest/wafs/new
Descriptor | Value | |
---|---|---|
HTTP Method | POST | |
Description | Creates a WAF with the given type. | |
Restricted | TrueRequired 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. |
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:
Code Block | ||
---|---|---|
| ||
curl --insecure -H 'Accept: application/json' -X POST --data 'name=Example WAF&type=mod_security' http://localhost:8080/threadfix/rest/wafs/new?apiKey={apiKey} |
Sample Output:
Code Block | ||
---|---|---|
| ||
{ "message": "", "success": true, "responseCode": -1, "object": { "id": 2, "name": "Example WAF", "wafTypeName": "mod_security", "applications": [] } } |
Page Tree | ||
---|---|---|
|