blob: 392244399e5d797a5b21cb6c4d0f11ecaa88e1ef [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="websecurityscanner_v1beta.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1beta.projects.html">projects</a> . <a href="websecurityscanner_v1beta.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1beta.projects.scanConfigs.scanRuns.html">scanRuns()</a></code>
79</p>
80<p class="firstline">Returns the scanRuns Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Creates a new ScanConfig.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets a ScanConfig.</p>
94<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080095 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096<p class="firstline">Lists ScanConfigs under a given project.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
103<p class="toc_element">
104 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
105<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
106<h3>Method Details</h3>
107<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110</div>
111
112<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 <pre>Creates a new ScanConfig.
115
116Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 parent: string, Required. The parent resource name where the scan is created, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
123 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
124 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
125 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
126 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800127 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
129 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
130 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
131 },
132 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
133 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
134 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800135 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800137 },
138 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
139 &quot;A String&quot;,
140 ],
141 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
142 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700143 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
145 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
146 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
147 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
148 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
149 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
150 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
151 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800154 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
155 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
156 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
157 &quot;progressPercent&quot;: 42, # 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.
158 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
159 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
160 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
161 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
162 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
163 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
164 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
165 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800166 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800167 },
168 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
169 &quot;maxQps&quot;: 42, # 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.
170 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
171 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
172 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
173 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
174 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
175 },
176 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
177 &quot;A String&quot;,
178 ],
179 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
180 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
181 &quot;A String&quot;,
182 ],
183 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
184}
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800185
186 x__xgafv: string, V1 error format.
187 Allowed values
188 1 - v1 error format
189 2 - v2 error format
190
191Returns:
192 An object of the form:
193
194 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800195 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
196 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
197 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
198 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
199 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
200 },
201 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
202 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
203 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
204 },
205 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
206 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
207 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800208 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800209 },
210 },
211 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
212 &quot;A String&quot;,
213 ],
214 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
215 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700216 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800217 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
218 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
219 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
220 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
221 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
222 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
223 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
224 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 },
227 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
228 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
229 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
230 &quot;progressPercent&quot;: 42, # 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.
231 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
232 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
233 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
234 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
235 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
236 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
237 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800239 ],
240 },
241 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
242 &quot;maxQps&quot;: 42, # 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.
243 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
244 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
245 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
246 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
247 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
248 },
249 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
250 &quot;A String&quot;,
251 ],
252 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
253 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
254 &quot;A String&quot;,
255 ],
256 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
257}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258</div>
259
260<div class="method">
261 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
262 <pre>Deletes an existing ScanConfig and its child resources.
263
264Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700266 x__xgafv: string, V1 error format.
267 Allowed values
268 1 - v1 error format
269 2 - v2 error format
270
271Returns:
272 An object of the form:
273
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700274 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800275}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700276</div>
277
278<div class="method">
279 <code class="details" id="get">get(name, x__xgafv=None)</code>
280 <pre>Gets a ScanConfig.
281
282Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700283 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
288
289Returns:
290 An object of the form:
291
292 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800293 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
294 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
295 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
296 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
297 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
298 },
299 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
300 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
301 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
302 },
303 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
304 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
305 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800306 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 },
308 },
309 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
310 &quot;A String&quot;,
311 ],
312 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
313 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700314 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800315 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
316 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
317 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
318 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
319 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
320 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
321 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
322 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800323 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800324 },
325 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
326 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
327 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
328 &quot;progressPercent&quot;: 42, # 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.
329 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
330 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
331 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
332 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
333 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
334 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
335 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800337 ],
338 },
339 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
340 &quot;maxQps&quot;: 42, # 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.
341 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
342 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
343 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
344 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
345 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
346 },
347 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
348 &quot;A String&quot;,
349 ],
350 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
351 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
352 &quot;A String&quot;,
353 ],
354 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
355}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356</div>
357
358<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 <pre>Lists ScanConfigs under a given project.
361
362Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700363 parent: string, Required. The parent resource name, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800364 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800365 pageToken: string, A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366 x__xgafv: string, V1 error format.
367 Allowed values
368 1 - v1 error format
369 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370
371Returns:
372 An object of the form:
373
374 { # Response for the `ListScanConfigs` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800375 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
376 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
377 { # A ScanConfig resource contains the configurations to launch a scan.
378 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
379 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
380 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
381 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
382 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700383 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800384 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
385 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
386 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
387 },
388 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
389 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
390 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
391 },
392 },
393 },
394 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
395 &quot;A String&quot;,
396 ],
397 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
398 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700399 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
401 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
402 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
403 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
404 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
405 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
406 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
407 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
408 },
409 },
410 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
411 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
412 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
413 &quot;progressPercent&quot;: 42, # 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.
414 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
415 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
416 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
417 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
418 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
419 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
420 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
421 },
422 ],
423 },
424 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
425 &quot;maxQps&quot;: 42, # 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.
426 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
427 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
428 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
429 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
430 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
431 },
432 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
433 &quot;A String&quot;,
434 ],
435 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
436 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
437 &quot;A String&quot;,
438 ],
439 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
440 },
441 ],
442}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443</div>
444
445<div class="method">
446 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
447 <pre>Retrieves the next page of results.
448
449Args:
450 previous_request: The request for the previous page. (required)
451 previous_response: The response from the request for the previous page. (required)
452
453Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700454 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700455 page. Returns None if there are no more items in the collection.
456 </pre>
457</div>
458
459<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700460 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
462
463Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 name: string, The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700465 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 The object takes the form of:
467
468{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800469 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
470 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
471 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
472 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
473 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800474 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800475 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
476 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
477 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
478 },
479 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
480 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
481 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800482 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800483 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800484 },
485 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
486 &quot;A String&quot;,
487 ],
488 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
489 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700490 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800491 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
492 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
493 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
494 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
495 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
496 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
497 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
498 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800499 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800500 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800501 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
502 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
503 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
504 &quot;progressPercent&quot;: 42, # 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.
505 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
506 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
507 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
508 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
509 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
510 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
511 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
512 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800513 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800514 },
515 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
516 &quot;maxQps&quot;: 42, # 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.
517 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
518 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
519 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
520 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
521 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
522 },
523 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
524 &quot;A String&quot;,
525 ],
526 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
527 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
528 &quot;A String&quot;,
529 ],
530 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
531}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700532
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700533 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700534 x__xgafv: string, V1 error format.
535 Allowed values
536 1 - v1 error format
537 2 - v2 error format
538
539Returns:
540 An object of the form:
541
542 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800543 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
544 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
545 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
546 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
547 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
548 },
549 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
550 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
551 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
552 },
553 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
554 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
555 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800556 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800557 },
558 },
559 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
560 &quot;A String&quot;,
561 ],
562 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
563 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700564 &quot;ignoreHttpStatusErrors&quot;: True or False, # Whether to keep scanning even if most requests return HTTP error codes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800565 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
566 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
567 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
568 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
569 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
570 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
571 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
572 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800573 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800574 },
575 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
576 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
577 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
578 &quot;progressPercent&quot;: 42, # 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.
579 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
580 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
581 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
582 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
583 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
584 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
585 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800586 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800587 ],
588 },
589 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
590 &quot;maxQps&quot;: 42, # 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.
591 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
592 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
593 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
594 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
595 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
596 },
597 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
598 &quot;A String&quot;,
599 ],
600 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
601 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
602 &quot;A String&quot;,
603 ],
604 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
605}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700606</div>
607
608<div class="method">
609 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
610 <pre>Start a ScanRun according to the given ScanConfig.
611
612Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700613 name: string, Required. The resource name of the ScanConfig to be used. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 body: object, The request body.
615 The object takes the form of:
616
617{ # Request for the `StartScanRun` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800618}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700619
620 x__xgafv: string, V1 error format.
621 Allowed values
622 1 - v1 error format
623 2 - v2 error format
624
625Returns:
626 An object of the form:
627
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700628 { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800629 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
630 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
631 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
632 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
633 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
634 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
635 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800636 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800637 },
638 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
639 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
640 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
641 &quot;progressPercent&quot;: 42, # 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.
642 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
643 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
644 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
645 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
646 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
647 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
648 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
649 },
650 ],
651}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700652</div>
653
654</body></html>