2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class ScanRun : IMessage<ScanRun>, IEquatable<ScanRun>, IDeepCloneable<ScanRun>, IBufferMessage, IMessage

Reference documentation and code samples for the Web Security Scanner v1 API class ScanRun.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ScanRun

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ScanRun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanRun.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ScanRun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanRun.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ScanRun](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanRun.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.WebSecurityScanner.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.md.txt)

## Assembly

Google.Cloud.WebSecurityScanner.V1.dll

## Constructors

### ScanRun()

    public ScanRun()

### ScanRun(ScanRun)

    public ScanRun(ScanRun other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ScanRun` |

## Properties

### EndTime

    public Timestamp EndTime { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### ErrorTrace

    public ScanRunErrorTrace ErrorTrace { get; set; }

Output only. If result_state is an ERROR, this field provides the primary reason for
scan's termination and more details, if such are available.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ScanRunErrorTrace` |   |

### ExecutionState

    public ScanRun.Types.ExecutionState ExecutionState { get; set; }

Output only. The execution state of the ScanRun.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ScanRunTypesExecutionState` |   |

### HasVulnerabilities

    public bool HasVulnerabilities { get; set; }

Output only. Whether the scan run has found any vulnerabilities.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Output only. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ProgressPercent

    public int ProgressPercent { get; set; }

Output only. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ResultState

    public ScanRun.Types.ResultState ResultState { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ScanRunTypesResultState` |   |

### StartTime

    public Timestamp StartTime { get; set; }

Output only. The time at which the ScanRun started.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### UrlsCrawledCount

    public long UrlsCrawledCount { get; set; }

Output only. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### UrlsTestedCount

    public long UrlsTestedCount { get; set; }

Output only. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### WarningTraces

    public RepeatedField<ScanRunWarningTrace> WarningTraces { get; }

Output only. A list of warnings, if such are encountered during this scan run.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldScanRunWarningTrace` |   |