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.
Implements
IMessageScanConfig, IEquatableScanConfig, IDeepCloneableScanConfig, IBufferMessage, IMessageNamespace
Google.Cloud.WebSecurityScanner.V1Assembly
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 |