ScanRunResponse

data class ScanRunResponse(val endTime: String, val executionState: String, val hasVulnerabilities: Boolean, val name: String, val progressPercent: Int, val resultState: String, val startTime: String, val urlsCrawledCount: String, val urlsTestedCount: String)

A ScanRun is a output-only resource representing an actual run of the scan.

Constructors

Link copied to clipboard
fun ScanRunResponse(endTime: String, executionState: String, hasVulnerabilities: Boolean, name: String, progressPercent: Int, resultState: String, startTime: String, urlsCrawledCount: String, urlsTestedCount: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

Link copied to clipboard

The execution state of the ScanRun.

Link copied to clipboard

Whether the scan run has found any vulnerabilities.

Link copied to clipboard

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

Link copied to clipboard

The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

Link copied to clipboard

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

Link copied to clipboard

The time at which the ScanRun started.

Link copied to clipboard

The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

Link copied to clipboard

The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.