Accessing Core & Scan Servers via ScriptRunner

Code Insight 6.14.2 SP2

ScriptRunner is a standalone module that allows communication with Code Insight Core Server and Scan Servers to perform various application functions. For more information about ScriptRunner, see “Using ScriptRunner” in the Code Insight Installation and System Administration Guide.

Note:If you are running ScriptRunner from a machine other than the Code Insight Core Server, you must use the -c flag to specify the URL of the Code Insight Core Server (i.e. http://localhost:8888/Code Insight). If using ScriptRunner for the first time, you will be prompted for a password. Below are examples:

On Windows:scriptRunner.bat -c <CORE_SERVER_URL> –u user file.groovy 
On Linux:./scriptRunner.sh -c <CORE_SERVER_URL > –u user file.groovy 

The following operations are supported via ScriptRunner. They are organized by various covers (facades) that expose the various APIs. For more information, see API Covers (Facades).

Operation Types Supported via ScriptRunner

Operation Type

Operation

Admin Service Cover

User, Team, Project, and Policy Management
Metadata Value Management (User, Team, Policy, Task)
Other Utility APIs

Metadata Service Cover

Metadata Field Management

Request Service Cover

Request Management

Reference Data Service Cover

Component, Version, License, and Vulnerability Management
Metadata Value Management (Component, Version, License, and Vulnerability)

Project Data Cover

Project Configuration Management
Workspace Management
Project Queue (Scans + Reports) Management
Project Inventory Management (Comments, Questions/Answers, Checklist Items, and Review Status)
Project Request Management
Project Task Management
Project Snapshot Management
Metadata Value Management (Project, Workspace, Inventory, and Request)

Auditor Service Cover

Tag Management
Group Management
File Management
Metadata Value Management (File and Group)

Workspace Locator Cover

Open Existing Workspaces

Workspace Cover

Manage Workspace Settings
Obtain Workspace Scan Results
Codebase APIs