Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Warning |
---|
WAF API's have been deprecated as of ThreadFix version 2.8. |
/rest/{version}/wafs/{wafId}/uploadLog
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Uploads WAF Log. |
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. |
Request POST Data Parameters
Parameter | Value | Required | Description |
---|---|---|---|
file | File | yes | The WAF log you want to upload to the WAF in ThreadFix. |
Sample Call:
Code Block | ||
---|---|---|
| ||
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --form file=@path/to/file/sample_waf_log.txt http://localhost:8080/threadfix/rest/latest/wafs/1/uploadLog |
Sample Output:
Code Block | theme | Eclipse
---|
{ "message": "", "success": true, "responseCode": -1, "object": [ { "id": 1 }, { "id": 2 }, //THE REST OMITTED FOR BREVITY { "id": 46 } ] } |
Page Tree | ||
---|---|---|
|