Get Report Status by Id - GET /reports/sastScan/{id}/status (v8.6.0 to v8.7.0)

Get the status of a generated report. To retrieve the specified report once the status is known you can use GET /reports/sastScan/{id}. To first generate a report (id) you can use POST /reports/sastScan.

Usage:

  1. GET /reports/sastScan/{id}/status and get the status of the specific report
  2. GET /reports/sastScan/{id} and get the report when ready

URL

/cxrestapi/reports/sastScan/{id}/status

Method:

GET

Media Type (header):

Authorization: Bearer <access token value>
Accept: application/json;v=1.0

Parameters

Required:

id=[string] – Unique Id of the report

Success Response:

Code: 200 OK

Error Response:

Code: 404 Not Found

Sample Response:

{
"location": "/reports/sastScan/1",
"contentType": "application/xml",
"status": {
"id": 2,
"value": "Created"
}
}

Notes:

Retrieves the status of a generated report. If the request fails, it returns an error response. Possible statuses are: 0=Deleted, 1=In Process, 2=Created or 3=Failed.