The API client can call an immediate scan. Depending on whether the submitted project name (CliScanArgs.PrjSettings.ProjectName) already exists, the scan is called for the existing CxSAST project or a new project is created.
...
This section covers SOAP to REST migration and mapping of our legacy SOAP based SDK to the new REST APIs. It is recommended to use this reference only once CxSAST V8.8.0 is installed.
Scan | Define a specific project’s scan settings. Parameters include - presetId, engineConfigurationId, postScanActionId and emailNotifications (beforescan, failedScans, afterScans). | |
POST /projects/{Id}/sourceCode/attachments | Upload a specific project’s zip file (contains the source code for scanning). Parameters include - zippedSource. | |
Set a specific project’s remote source settings for GIT. Parameters include - url, branch and privateKey. | ||
Get a specific project’s remote source settings for GIT. | ||
Set a specific project’s remote source settings for GIT using SSH. Parameters include - url, branch and privateKey. | ||
POST /projects/{Id}/sourceCode/remoteSettings/svn | Set a specific project’s remote source settings for SVN. Parameters include - url, absoluteUrl, port, paths and credentials (username, password and privateKey). | |
GET /projects/{Id}/sourceCode/remoteSettings/svn | Get a specific project’s remote source settings for SVN. | |
POST /projects/{Id}/sourceCode/remoteSettings/svn/ssh | Set a specific project’s remote source settings for SVN using SSH. Parameters include - absoluteUrl, port, paths and privateKey. | |
POST /projects/{Id}/sourceCode/remoteSettings/tfs | Set a specific project’s remote source settings for TFS. Parameters include - credentials (username and password), url, absoluteUrl, port and paths. | |
GET /projects/{Id}/sourceCode/remoteSettings/tfs | Get a specific project’s remote source settings for TFS. | |
POST /projects/{Id}/sourceCode/remoteSettings/perforce | Set a specific project’s remote source settings for Perforce. Parameters include - credentials (username and password), url, absoluteUrl, port, paths and browseMode. | |
Get a specific project’s remote source settings for Perforce. | ||
POST /projects/{Id}/sourceCode/remoteSettings/shared | Set a specific project’s remote source settings for a shared repository. Parameters include – paths and credentials (username and password). | |
GET /projects/{Id}/sourceCode/remoteSettings/shared | Get a specific project’s remote source settings for a shared repository. | |
POST /projects/{Id}/sourceCode/remoteSettings/custom | Set a specific project’s remote source settings for a custom repository (e.g. source pulling). Parameters include – paths and credentials (username and password). | |
GET /projects/{Id}/sourceCode/remoteSettings/custom | Get a specific project’s remote source settings for a custom repository (e.g. source pulling). Parameters include – paths, preScanCommandId and credentials (username and password). | |
POST /sast/scans | Create a new scan and assign it to a specific project. Parameters include – isIncremental, isPublic, forceScan and comment. |
For more mapping information, refer to API Mapping (SOAP to REST). You can also find a summary of our REST APIs here.
...
Section | ||||||||
---|---|---|---|---|---|---|---|---|
|