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 ScanConfig : IMessage<ScanConfig>, IEquatable<ScanConfig>, IDeepCloneable<ScanConfig>, IBufferMessage, IMessage

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

A ScanConfig resource contains the configurations to launch a scan.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ScanConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ScanConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ScanConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.WebSecurityScanner.V1/latest/Google.Cloud.WebSecurityScanner.V1.ScanConfig.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

### ScanConfig()

    public ScanConfig()

### ScanConfig(ScanConfig)

    public ScanConfig(ScanConfig other)

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

## Properties

### Authentication

    public ScanConfig.Types.Authentication Authentication { get; set; }

The authentication configuration. If specified, service will use the
authentication configuration during scanning.

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

### BlacklistPatterns

    public RepeatedField<string> BlacklistPatterns { get; }

The excluded URL patterns as described in
<https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls>

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

### DisplayName

    public string DisplayName { get; set; }

Required. The user provided display name of the ScanConfig.

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

### ExportToSecurityCommandCenter

    public ScanConfig.Types.ExportToSecurityCommandCenter ExportToSecurityCommandCenter { get; set; }

Controls export of scan configurations and results to Security
Command Center.

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

### IgnoreHttpStatusErrors

    public bool IgnoreHttpStatusErrors { get; set; }

Whether to keep scanning even if most requests return HTTP error codes.

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

### ManagedScan

    public bool ManagedScan { get; set; }

Whether the scan config is managed by Web Security Scanner, output
only.

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

### MaxQps

    public int MaxQps { get; set; }

The maximum QPS during scanning. A valid value ranges from 5 to 20
inclusively. If the field is unspecified or its value is set 0, server will
default to 15. Other values outside of \[5, 20\] range will be rejected with
INVALID_ARGUMENT error.

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

### Name

    public string Name { get; set; }

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

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

### RiskLevel

    public ScanConfig.Types.RiskLevel RiskLevel { get; set; }

The risk level selected for the scan

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

### Schedule

    public ScanConfig.Types.Schedule Schedule { get; set; }

The schedule of the ScanConfig.

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

### StartingUrls

    public RepeatedField<string> StartingUrls { get; }

Required. The starting URLs from which the scanner finds site pages.

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

### StaticIpScan

    public bool StaticIpScan { get; set; }

Whether the scan configuration has enabled static IP address scan feature.
If enabled, the scanner will access applications from static IP addresses.

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

### UserAgent

    public ScanConfig.Types.UserAgent UserAgent { get; set; }

The user agent used during scanning.

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