Synchronious Analyze Command

Analyzes the .shunra file according to the provided port(s) input. Analysis can be performed for specific test or for specific .shunra or packet-list files.

Parameters:

ports: Comma separated ports. Default port is 80.

zipResult: If true, response will include .zip file with .csv and html reports. If false. response will be a report in json format. Default value is true.

TestToken: test identifier as returned by start test API.

Example: for analysis by uploading a specific .shunra file.

Request:

URL http://ip:port/shunra/api/analysisreport/analyze?ports=p1,p2&zipResult=true
HTTP Method PUT
HTTP Headers

Content-Type: multipart/form-data

Authorization: See Web Services Authentication.

Body

See the detailed spec in RFC 1867, "Form-based File Upload in HTML"

http://www.ietf.org/rfc/rfc1867.txt

.shunra file attached

Response:

HTTP Response Code 200 - OK
HTTP Headers

Date: Thu, 15 Mar 2014 15:36:11 GMT

Content-Type: multipart/form-data

Accept-Ranges: bytes

HTTP Body Analysis .zip file or Json report

Example: Analyzing by testToken without uploading a file.

URL http://ip:port/shunra/api/analysisreport/analyze/{testToken}?ports=p1,p2&zipResult=true
HTTP Method PUT
HTTP Headers

Authorization: See Web Services Authentication.

Body