Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Creates Create a new SAST scan and assigns assign it to a project. When initiating a scan you can send a media type header (cxOrigin) which indicates which client is being used to send the scan request (e.g.  Jenkins, Bamboo, TeamCity, Maven, etc.). If not defined, default is Other. 

...

  1. POST /sast/scanSettings and update the SAST scan preset and configuration settings
  2. POST /sast/scans and create a new SAST scan.

URL

/CxRestAPIcxrestapi/sast/scans

Method:

POST

Media Type (header):

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

cxOrigin: {request_origin}

...

{
  "id": 1000007,
  "link": {
    "rel": "self",
    "uri": "/sast/scans/1000007"
  }
}

Notes:

Creates a new SAST scan and assigns it to a project. If the request fails, it returns an error response. Must be a valid project in order to create a new scan.


...


Section


Column

Read more:


Column