Get the Publish Last Scan Results to Management and Orchestration Status – GET /sast/projects/{id}/publisher/policyFindings/status (v8.9.0 and up)

Get the status of publish last scan results to Management and Orchestration layer for a specific project.

Usage

  1. GET /projects and get details of all projects

  2. POST /sast/projects/{id}/publisher/policyFindings and publish last scan results to Management and Orchestration for a specific project.

  3. GET /sast/projects/{id}/publisher/policyFindings/status and get the status of publish last scan results to Management and Orchestration for a specific project.

URL

http://localhost/cxrestapi/cxrestapi/sast/projects/{id}/publisher/policyFindings/status

Method:

GET

Media Type (header):

Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0

Parameters

Required:

id=[integer] – Unique Id of the project

Curl Sample:

curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/projects/1/publisher/policyFindings/status'

Sample Response:

{
  "project": {
    "id": 36,
    "link": {
      "rel": "self",
      "uri": "/projects/36"
    }
  },
  "scan": {
    "id": 1000007,
    "link": {
      "rel": "self",
      "uri": "/sast/scans/1000007"
    }
  },
  "status": "Finished",
  "lastSync": "2018-09-12T08:08:20.3393614Z"
}

Success Response:

Code: 200 OK

Error Response:

Code: 400 Bad Request

Notes:

Retrieves the ‘publish last scan results to Management and Orchestration layer’ status for a specific project. If the request fails, it returns an error response. Management and Orchestration must be installed in order to run GET /sast/projects/{id}/publisher/policyFindings/status.