Class ScanConfig (1.11.1)

Stay organized with collections Save and categorize content based on your preferences.
ScanConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A ScanConfig resource contains the configurations to launch a scan.


name str
The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
display_name str
Required. The user provided display name of the ScanConfig.
max_qps int
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.
starting_urls MutableSequence[str]
Required. The starting URLs from which the scanner finds site pages.
The authentication configuration. If specified, service will use the authentication configuration during scanning.
The user agent used during scanning.
blacklist_patterns MutableSequence[str]
The blacklist URL patterns as described in
The schedule of the ScanConfig.
target_platforms MutableSequence[]
Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
Controls export of scan configurations and results to Cloud Security Command Center.
Latest ScanRun if available.
The risk level selected for the scan



Authentication(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Scan authentication configuration.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof:



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

Values: EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED (0): Use default, which is ENABLED. ENABLED (1): Export results of this scan to Cloud Security Command Center. DISABLED (2): Do not export results of this scan to Cloud Security Command Center.



Scan risk levels supported by Cloud Web Security Scanner. LOW impact scanning will minimize requests with the potential to modify data. To achieve the maximum scan coverage, NORMAL risk level is recommended.

Values: RISK_LEVEL_UNSPECIFIED (0): Use default, which is NORMAL. NORMAL (1): Normal scanning (Recommended) LOW (2): Lower impact scanning


Schedule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Scan schedule configuration.



Cloud platforms supported by Cloud Web Security Scanner.

Values: TARGET_PLATFORM_UNSPECIFIED (0): The target platform is unknown. Requests with this enum value will be rejected with INVALID_ARGUMENT error. APP_ENGINE (1): Google App Engine service. COMPUTE (2): Google Compute Engine service.



Type of user agents used for scanning.

Values: USER_AGENT_UNSPECIFIED (0): The user agent is unknown. Service will default to CHROME_LINUX. CHROME_LINUX (1): Chrome on Linux. This is the service default if unspecified. CHROME_ANDROID (2): Chrome on Android. SAFARI_IPHONE (3): Safari on IPhone.