blob: 7485c7bd191c3f27c976fec122612078386a2dbc [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates a new ScanConfig.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets a ScanConfig.</p>
91<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070092 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Lists ScanConfigs under a given project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
100<p class="toc_element">
101 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
103<h3>Method Details</h3>
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 <pre>Creates a new ScanConfig.
107
108Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 parent: string, Required. The parent resource name where the scan is created, which should be a
Bu Sun Kim65020912020-05-20 12:08:20 -0700110project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
116 # inclusively. If the field is unspecified or its value is set 0, server will
117 # default to 15. Other values outside of [5, 20] range will be rejected with
118 # INVALID_ARGUMENT error.
119 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
120 # Next id: 12
121 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
122 # execution state reaches &quot;FINISHED&quot;.
123 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
124 # scan&#x27;s termination and more details, if such are available.
125 # Defines an error trace message for a ScanRun.
126 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
127 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
128 # common HTTP error code, if such is available. For example, if this code is
129 # 404, the scan has encountered too many NOT_FOUND responses.
130 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
131 # message encountered during scan configuration validation that is performed
132 # before each scan run.
133 # APIs when scan configuration validation fails. It is also reported as part of
134 # a ScanRunErrorTrace message if scan validation fails due to a scan
135 # configuration error.
136 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
137 # for example &quot;scan_config.max_qps&quot;. This field is provided for
138 # troubleshooting purposes only and its actual value can change in the
139 # future.
140 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
141 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
144 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
145 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
146 # The ScanRun IDs are generated by the system.
147 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
148 { # Output only.
149 # Defines a warning trace message for ScanRun. Warning traces provide customers
150 # with useful information that helps make the scanning process more effective.
151 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
152 },
153 ],
154 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
155 # If the scan is in queue, the value is 0.
156 # If the scan is running, the value ranges from 0 to 100.
157 # If the scan is finished, the value is 100.
158 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
159 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
160 # the value represents the number of URLs tested up to now. The number of
161 # URLs tested is usually larger than the number URLS crawled because
162 # typically a crawled URL is tested with multiple test payloads.
163 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
164 # the value represents the number of URLs crawled up to now.
165 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
166 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
167 # is either finished or stopped by user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700168 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700169 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
170 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700171 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
172 # only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700173 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
174 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
175 &quot;A String&quot;,
176 ],
177 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
178 # will be used as a default.
179 &quot;A String&quot;,
180 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700181 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700182 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
183 # refreshed by the server after each run. If unspecified, it will default
184 # to current server time, which means the scan will be scheduled to start
185 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700187 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700188 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
189 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
190 # generated by the system.
191 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
192 # Command Center.
193 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
194 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
195 &quot;A String&quot;,
196 ],
197 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700198 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
199 # authentication configuration during scanning.
200 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
201 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
202 # 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 # Authentication configuration when Web-Security-Scanner service
207 # account is added in Identity-Aware-Proxy (IAP) access policies.
208 # service account is added in Identity-Aware-Proxy (IAP) access policies.
209 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
210 # Identity-Aware-Proxy(IAP).
211 },
212 },
213 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
214 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
215 # and not returned in any response nor included in audit logs.
216 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
217 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
218 },
219 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700220 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
221 }
222
223 x__xgafv: string, V1 error format.
224 Allowed values
225 1 - v1 error format
226 2 - v2 error format
227
228Returns:
229 An object of the form:
230
231 { # A ScanConfig resource contains the configurations to launch a scan.
232 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
233 # inclusively. If the field is unspecified or its value is set 0, server will
234 # default to 15. Other values outside of [5, 20] range will be rejected with
235 # INVALID_ARGUMENT error.
236 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
237 # Next id: 12
238 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
239 # execution state reaches &quot;FINISHED&quot;.
240 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
241 # scan&#x27;s termination and more details, if such are available.
242 # Defines an error trace message for a ScanRun.
243 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
244 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
245 # common HTTP error code, if such is available. For example, if this code is
246 # 404, the scan has encountered too many NOT_FOUND responses.
247 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
248 # message encountered during scan configuration validation that is performed
249 # before each scan run.
250 # APIs when scan configuration validation fails. It is also reported as part of
251 # a ScanRunErrorTrace message if scan validation fails due to a scan
252 # configuration error.
253 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
254 # for example &quot;scan_config.max_qps&quot;. This field is provided for
255 # troubleshooting purposes only and its actual value can change in the
256 # future.
257 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
258 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700260 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
261 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
262 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
263 # The ScanRun IDs are generated by the system.
264 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
265 { # Output only.
266 # Defines a warning trace message for ScanRun. Warning traces provide customers
267 # with useful information that helps make the scanning process more effective.
268 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
269 },
270 ],
271 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
272 # If the scan is in queue, the value is 0.
273 # If the scan is running, the value ranges from 0 to 100.
274 # If the scan is finished, the value is 100.
275 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
276 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
277 # the value represents the number of URLs tested up to now. The number of
278 # URLs tested is usually larger than the number URLS crawled because
279 # typically a crawled URL is tested with multiple test payloads.
280 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
281 # the value represents the number of URLs crawled up to now.
282 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
283 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
284 # is either finished or stopped by user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700286 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
287 # If enabled, the scanner will access applications from static IP addresses.
288 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
289 # only.
290 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
291 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
292 &quot;A String&quot;,
293 ],
294 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
295 # will be used as a default.
296 &quot;A String&quot;,
297 ],
298 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
299 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
300 # refreshed by the server after each run. If unspecified, it will default
301 # to current server time, which means the scan will be scheduled to start
302 # immediately.
303 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
304 },
305 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
306 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
307 # generated by the system.
308 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
309 # Command Center.
310 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
311 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
312 &quot;A String&quot;,
313 ],
314 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
315 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
316 # authentication configuration during scanning.
317 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
318 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
319 # and not returned in any response nor included in audit logs.
320 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
321 },
322 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
323 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
324 # account is added in Identity-Aware-Proxy (IAP) access policies.
325 # service account is added in Identity-Aware-Proxy (IAP) access policies.
326 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
327 # Identity-Aware-Proxy(IAP).
328 },
329 },
330 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
331 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
332 # and not returned in any response nor included in audit logs.
333 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
334 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
335 },
336 },
337 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
338 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339</div>
340
341<div class="method">
342 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
343 <pre>Deletes an existing ScanConfig and its child resources.
344
345Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700346 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700347format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 x__xgafv: string, V1 error format.
349 Allowed values
350 1 - v1 error format
351 2 - v2 error format
352
353Returns:
354 An object of the form:
355
356 { # A generic empty message that you can re-use to avoid defining duplicated
357 # empty messages in your APIs. A typical example is to use it as the request
358 # or the response type of an API method. For instance:
359 #
360 # service Foo {
361 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
362 # }
363 #
364 # The JSON representation for `Empty` is empty JSON object `{}`.
365 }</pre>
366</div>
367
368<div class="method">
369 <code class="details" id="get">get(name, x__xgafv=None)</code>
370 <pre>Gets a ScanConfig.
371
372Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700373 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700374format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 x__xgafv: string, V1 error format.
376 Allowed values
377 1 - v1 error format
378 2 - v2 error format
379
380Returns:
381 An object of the form:
382
383 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
385 # inclusively. If the field is unspecified or its value is set 0, server will
386 # default to 15. Other values outside of [5, 20] range will be rejected with
387 # INVALID_ARGUMENT error.
388 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
389 # Next id: 12
390 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
391 # execution state reaches &quot;FINISHED&quot;.
392 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
393 # scan&#x27;s termination and more details, if such are available.
394 # Defines an error trace message for a ScanRun.
395 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
396 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
397 # common HTTP error code, if such is available. For example, if this code is
398 # 404, the scan has encountered too many NOT_FOUND responses.
399 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
400 # message encountered during scan configuration validation that is performed
401 # before each scan run.
402 # APIs when scan configuration validation fails. It is also reported as part of
403 # a ScanRunErrorTrace message if scan validation fails due to a scan
404 # configuration error.
405 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
406 # for example &quot;scan_config.max_qps&quot;. This field is provided for
407 # troubleshooting purposes only and its actual value can change in the
408 # future.
409 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
410 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700411 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
413 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
414 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
415 # The ScanRun IDs are generated by the system.
416 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
417 { # Output only.
418 # Defines a warning trace message for ScanRun. Warning traces provide customers
419 # 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 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
424 # If the scan is in queue, the value is 0.
425 # If the scan is running, the value ranges from 0 to 100.
426 # If the scan is finished, the value is 100.
427 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
428 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
429 # the value represents the number of URLs tested up to now. The number of
430 # URLs tested is usually larger than the number URLS crawled because
431 # typically a crawled URL is tested with multiple test payloads.
432 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
433 # the value represents the number of URLs crawled up to now.
434 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
435 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
436 # is either finished or stopped by user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700437 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
439 # If enabled, the scanner will access applications from static IP addresses.
440 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
441 # only.
442 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
443 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
444 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700446 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
447 # will be used as a default.
448 &quot;A String&quot;,
449 ],
450 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
451 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
452 # refreshed by the server after each run. If unspecified, it will default
453 # to current server time, which means the scan will be scheduled to start
454 # immediately.
455 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700457 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
458 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
459 # generated by the system.
460 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
461 # Command Center.
462 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
463 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
464 &quot;A String&quot;,
465 ],
466 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
467 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
468 # authentication configuration during scanning.
469 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
470 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
471 # and not returned in any response nor included in audit logs.
472 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
473 },
474 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
475 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
476 # account is added in Identity-Aware-Proxy (IAP) access policies.
477 # service account is added in Identity-Aware-Proxy (IAP) access policies.
478 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
479 # Identity-Aware-Proxy(IAP).
480 },
481 },
482 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
483 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
484 # and not returned in any response nor included in audit logs.
485 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
486 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
487 },
488 },
489 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
490 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491</div>
492
493<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700494 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700495 <pre>Lists ScanConfigs under a given project.
496
497Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700498 parent: string, Required. The parent resource name, which should be a project resource name in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700499format &#x27;projects/{projectId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 pageToken: string, A token identifying a page of results to be returned. This should be a
501`next_page_token` value returned from a previous List request.
502If unspecified, the first page of results is returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700503 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
504If not specified or not positive, the implementation will select a
505reasonable value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 x__xgafv: string, V1 error format.
507 Allowed values
508 1 - v1 error format
509 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700510
511Returns:
512 An object of the form:
513
514 { # Response for the `ListScanConfigs` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
518 # inclusively. If the field is unspecified or its value is set 0, server will
519 # default to 15. Other values outside of [5, 20] range will be rejected with
520 # INVALID_ARGUMENT error.
521 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
522 # Next id: 12
523 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
524 # execution state reaches &quot;FINISHED&quot;.
525 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
526 # scan&#x27;s termination and more details, if such are available.
527 # Defines an error trace message for a ScanRun.
528 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
529 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
530 # common HTTP error code, if such is available. For example, if this code is
531 # 404, the scan has encountered too many NOT_FOUND responses.
532 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
533 # message encountered during scan configuration validation that is performed
534 # before each scan run.
535 # APIs when scan configuration validation fails. It is also reported as part of
536 # a ScanRunErrorTrace message if scan validation fails due to a scan
537 # configuration error.
538 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
539 # for example &quot;scan_config.max_qps&quot;. This field is provided for
540 # troubleshooting purposes only and its actual value can change in the
541 # future.
542 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
543 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700544 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700545 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
546 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
547 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
548 # The ScanRun IDs are generated by the system.
549 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
550 { # Output only.
551 # Defines a warning trace message for ScanRun. Warning traces provide customers
552 # with useful information that helps make the scanning process more effective.
553 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
554 },
555 ],
556 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
557 # If the scan is in queue, the value is 0.
558 # If the scan is running, the value ranges from 0 to 100.
559 # If the scan is finished, the value is 100.
560 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
561 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
562 # the value represents the number of URLs tested up to now. The number of
563 # URLs tested is usually larger than the number URLS crawled because
564 # typically a crawled URL is tested with multiple test payloads.
565 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
566 # the value represents the number of URLs crawled up to now.
567 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
568 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
569 # is either finished or stopped by user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700570 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700571 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
572 # If enabled, the scanner will access applications from static IP addresses.
573 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
574 # only.
575 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
576 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
577 &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700579 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
580 # will be used as a default.
581 &quot;A String&quot;,
582 ],
583 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
584 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
585 # refreshed by the server after each run. If unspecified, it will default
586 # to current server time, which means the scan will be scheduled to start
587 # immediately.
588 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700590 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
591 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
592 # generated by the system.
593 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
594 # Command Center.
595 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
596 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
597 &quot;A String&quot;,
598 ],
599 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
600 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
601 # authentication configuration during scanning.
602 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
603 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
604 # and not returned in any response nor included in audit logs.
605 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
606 },
607 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
608 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
609 # account is added in Identity-Aware-Proxy (IAP) access policies.
610 # service account is added in Identity-Aware-Proxy (IAP) access policies.
611 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
612 # Identity-Aware-Proxy(IAP).
613 },
614 },
615 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
616 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
617 # and not returned in any response nor included in audit logs.
618 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
619 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
620 },
621 },
622 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700623 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700625 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
626 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 }</pre>
628</div>
629
630<div class="method">
631 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
632 <pre>Retrieves the next page of results.
633
634Args:
635 previous_request: The request for the previous page. (required)
636 previous_response: The response from the request for the previous page. (required)
637
638Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700640 page. Returns None if there are no more items in the collection.
641 </pre>
642</div>
643
644<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700646 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
647
648Args:
649 name: string, The resource name of the ScanConfig. The name follows the format of
Bu Sun Kim65020912020-05-20 12:08:20 -0700650&#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651generated by the system. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700652 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 The object takes the form of:
654
655{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700656 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
657 # inclusively. If the field is unspecified or its value is set 0, server will
658 # default to 15. Other values outside of [5, 20] range will be rejected with
659 # INVALID_ARGUMENT error.
660 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
661 # Next id: 12
662 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
663 # execution state reaches &quot;FINISHED&quot;.
664 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
665 # scan&#x27;s termination and more details, if such are available.
666 # Defines an error trace message for a ScanRun.
667 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
668 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
669 # common HTTP error code, if such is available. For example, if this code is
670 # 404, the scan has encountered too many NOT_FOUND responses.
671 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
672 # message encountered during scan configuration validation that is performed
673 # before each scan run.
674 # APIs when scan configuration validation fails. It is also reported as part of
675 # a ScanRunErrorTrace message if scan validation fails due to a scan
676 # configuration error.
677 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
678 # for example &quot;scan_config.max_qps&quot;. This field is provided for
679 # troubleshooting purposes only and its actual value can change in the
680 # future.
681 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
682 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700683 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700684 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
685 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
686 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
687 # The ScanRun IDs are generated by the system.
688 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
689 { # Output only.
690 # Defines a warning trace message for ScanRun. Warning traces provide customers
691 # with useful information that helps make the scanning process more effective.
692 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
693 },
694 ],
695 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
696 # If the scan is in queue, the value is 0.
697 # If the scan is running, the value ranges from 0 to 100.
698 # If the scan is finished, the value is 100.
699 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
700 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
701 # the value represents the number of URLs tested up to now. The number of
702 # URLs tested is usually larger than the number URLS crawled because
703 # typically a crawled URL is tested with multiple test payloads.
704 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
705 # the value represents the number of URLs crawled up to now.
706 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
707 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
708 # is either finished or stopped by user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700709 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700710 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
711 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700712 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
713 # only.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700714 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
715 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
716 &quot;A String&quot;,
717 ],
718 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
719 # will be used as a default.
720 &quot;A String&quot;,
721 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700723 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
724 # refreshed by the server after each run. If unspecified, it will default
725 # to current server time, which means the scan will be scheduled to start
726 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700727 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700728 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700729 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
730 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
731 # generated by the system.
732 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
733 # Command Center.
734 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
735 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
736 &quot;A String&quot;,
737 ],
738 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700739 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
740 # authentication configuration during scanning.
741 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
742 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
743 # and not returned in any response nor included in audit logs.
744 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
745 },
746 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
747 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
748 # account is added in Identity-Aware-Proxy (IAP) access policies.
749 # service account is added in Identity-Aware-Proxy (IAP) access policies.
750 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
751 # Identity-Aware-Proxy(IAP).
752 },
753 },
754 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
755 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
756 # and not returned in any response nor included in audit logs.
757 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
758 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
759 },
760 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700761 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
762 }
763
764 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
765see
766https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
767 x__xgafv: string, V1 error format.
768 Allowed values
769 1 - v1 error format
770 2 - v2 error format
771
772Returns:
773 An object of the form:
774
775 { # A ScanConfig resource contains the configurations to launch a scan.
776 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
777 # inclusively. If the field is unspecified or its value is set 0, server will
778 # default to 15. Other values outside of [5, 20] range will be rejected with
779 # INVALID_ARGUMENT error.
780 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
781 # Next id: 12
782 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
783 # execution state reaches &quot;FINISHED&quot;.
784 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
785 # scan&#x27;s termination and more details, if such are available.
786 # Defines an error trace message for a ScanRun.
787 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
788 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
789 # common HTTP error code, if such is available. For example, if this code is
790 # 404, the scan has encountered too many NOT_FOUND responses.
791 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
792 # message encountered during scan configuration validation that is performed
793 # before each scan run.
794 # APIs when scan configuration validation fails. It is also reported as part of
795 # a ScanRunErrorTrace message if scan validation fails due to a scan
796 # configuration error.
797 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
798 # for example &quot;scan_config.max_qps&quot;. This field is provided for
799 # troubleshooting purposes only and its actual value can change in the
800 # future.
801 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
802 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700804 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
805 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
806 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
807 # The ScanRun IDs are generated by the system.
808 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
809 { # Output only.
810 # Defines a warning trace message for ScanRun. Warning traces provide customers
811 # with useful information that helps make the scanning process more effective.
812 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
813 },
814 ],
815 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
816 # If the scan is in queue, the value is 0.
817 # If the scan is running, the value ranges from 0 to 100.
818 # If the scan is finished, the value is 100.
819 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
820 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
821 # the value represents the number of URLs tested up to now. The number of
822 # URLs tested is usually larger than the number URLS crawled because
823 # typically a crawled URL is tested with multiple test payloads.
824 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
825 # the value represents the number of URLs crawled up to now.
826 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
827 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
828 # is either finished or stopped by user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700829 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700830 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
831 # If enabled, the scanner will access applications from static IP addresses.
832 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
833 # only.
834 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
835 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
836 &quot;A String&quot;,
837 ],
838 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
839 # will be used as a default.
840 &quot;A String&quot;,
841 ],
842 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
843 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
844 # refreshed by the server after each run. If unspecified, it will default
845 # to current server time, which means the scan will be scheduled to start
846 # immediately.
847 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
848 },
849 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
850 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
851 # generated by the system.
852 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
853 # Command Center.
854 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
855 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
856 &quot;A String&quot;,
857 ],
858 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
859 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
860 # authentication configuration during scanning.
861 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
862 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
863 # and not returned in any response nor included in audit logs.
864 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
865 },
866 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
867 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
868 # account is added in Identity-Aware-Proxy (IAP) access policies.
869 # service account is added in Identity-Aware-Proxy (IAP) access policies.
870 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
871 # Identity-Aware-Proxy(IAP).
872 },
873 },
874 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
875 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
876 # and not returned in any response nor included in audit logs.
877 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
878 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
879 },
880 },
881 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
882 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700883</div>
884
885<div class="method">
886 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
887 <pre>Start a ScanRun according to the given ScanConfig.
888
889Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 name: string, Required. The resource name of the ScanConfig to be used. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700891format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700892 body: object, The request body.
893 The object takes the form of:
894
895{ # Request for the `StartScanRun` method.
896 }
897
898 x__xgafv: string, V1 error format.
899 Allowed values
900 1 - v1 error format
901 2 - v2 error format
902
903Returns:
904 An object of the form:
905
906 { # A ScanRun is a output-only resource representing an actual run of the scan.
907 # Next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
909 # execution state reaches &quot;FINISHED&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700910 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
911 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 # Defines an error trace message for a ScanRun.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700913 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
914 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
915 # common HTTP error code, if such is available. For example, if this code is
916 # 404, the scan has encountered too many NOT_FOUND responses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700918 # message encountered during scan configuration validation that is performed
919 # before each scan run.
920 # APIs when scan configuration validation fails. It is also reported as part of
921 # a ScanRunErrorTrace message if scan validation fails due to a scan
922 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
924 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700925 # troubleshooting purposes only and its actual value can change in the
926 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700928 },
929 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700930 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
931 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
932 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
933 # The ScanRun IDs are generated by the system.
934 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
935 { # Output only.
936 # Defines a warning trace message for ScanRun. Warning traces provide customers
937 # with useful information that helps make the scanning process more effective.
938 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
939 },
940 ],
941 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
942 # If the scan is in queue, the value is 0.
943 # If the scan is running, the value ranges from 0 to 100.
944 # If the scan is finished, the value is 100.
945 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
946 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
947 # the value represents the number of URLs tested up to now. The number of
948 # URLs tested is usually larger than the number URLS crawled because
949 # typically a crawled URL is tested with multiple test payloads.
950 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
951 # the value represents the number of URLs crawled up to now.
952 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
953 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
954 # is either finished or stopped by user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 }</pre>
956</div>
957
958</body></html>