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

Version 1 Next »

/rest/wafs/{wafId}/uploadLog

 

Descriptor

Value

HTTP Method

POST

Description

Uploads WAF Log.

Restricted

True

 

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:

curl --insecure -H 'Accept: application/json' -X POST --form file=@path/to/file/sample_waf_log.txt http://localhost:8080/threadfix/rest/wafs/1/uploadLog?apiKey={apiKey}

 

Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": [
        {
            "id": 1
        },
        {
            "id": 2
        },
        //THE REST OMITTED FOR BREVITY
        {
            "id": 46
        }
    ]
}

  • No labels