Publish Last Scan Results to Management and Orchestration by Project Id – POST /sast/projects/{id}/publisher/policyFindings (v8.9.0 and up)

Publish last scan results to Management and Orchestration for a specific project (only for policy management evaluation in v8.9.0).

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

URL

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

Method:

POST

Media Type (header):

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

Parameters

Required:

id=[integer] – Unique Id of the project

Curl Sample:

curl -X POST --header 'Content-Type: application/json;v=1.0' --header 'Accept: application/json' --header 'Authorization: Bearer <access token> 'http://localhost/cxrestapi/sast/projects/1/publisher/policyFindings'

Sample Response:

{
  "id": 36,
  "link": {
    "rel": "status",
    "uri": "/sast/projects/36/Publisher/policyFindings/status"
 }

Success Response:

Code: 201 Created

Error Response:

Code: 400 Bad Request

Notes:

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