Get Statistic Results by Scan Id - GET /sast/scans/{id}/resultsStatistics (v8.8.0 and up)
Get statistic results for a specific scan.
Usage
GET /sast/scans/{id}/resultsStatistics and get statistic results for a specific scan
URL
http://localhost/cxrestapi/sast/scans/{id}/resultsStatistics
Method:
GET
Media Type (header):
Authorization: Bearer <access token value>
Accept: application/json;v=1.0
Parameters
Required:
id=[string] – Unique Id of the scan
Curl Sample:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/scans/1000062/resultsStatistics'
Sample Response:
{
"highSeverity": 25,
"mediumSeverity": 22,
"lowSeverity": 80,
"infoSeverity": 0,
"statisticsCalculationDate": "2018-05-27T17:52:09.687"
}
Success Response:
Code: 200 OK
Error Response:
Code: 400 Bad Request
Notes:
Retrieves statistic results for a specific scan. If the request fails, it returns an error response.
Read more: