blob: 9af3a0b00076a346b3602614b8e5ccdb4f9834a5 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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_v1.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1.projects.html">projects</a> . <a href="websecurityscanner_v1.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.html">scanRuns()</a></code>
79</p>
80<p class="firstline">Returns the scanRuns Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
84<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">
92 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
93<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">
98 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
99<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">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a new ScanConfig.
107
108Args:
109 parent: string, Required. The parent resource name where the scan is created, which should be a
110project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114{ # A ScanConfig resource contains the configurations to launch a scan.
115 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
116 # Command Center.
117 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
118 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
119 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
120 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
121 # refreshed by the server after each run. If unspecified, it will default
122 # to current server time, which means the scan will be scheduled to start
123 # immediately.
124 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
125 },
126 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
127 # If enabled, the scanner will access applications from static IP addresses.
128 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
129 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
130 # inclusively. If the field is unspecified or its value is set 0, server will
131 # default to 15. Other values outside of [5, 20] range will be rejected with
132 # INVALID_ARGUMENT error.
133 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
134 # authentication configuration during scanning.
135 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
136 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
137 # account is added in Identity-Aware-Proxy (IAP) access policies.
138 # service account is added in Identity-Aware-Proxy (IAP) access policies.
139 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
140 # Identity-Aware-Proxy (IAP).
141 },
142 },
143 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
144 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
145 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
146 # and not returned in any response nor included in audit logs.
147 },
148 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
149 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
150 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
151 # and not returned in any response nor included in audit logs.
152 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
153 },
154 },
155 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
156 # only.
157 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
158 # https://cloud.google.com/security-scanner/docs/excluded-urls
159 &quot;A String&quot;,
160 ],
161 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
162 &quot;A String&quot;,
163 ],
164 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
165 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
166 # generated by the system.
167}
168
169 x__xgafv: string, V1 error format.
170 Allowed values
171 1 - v1 error format
172 2 - v2 error format
173
174Returns:
175 An object of the form:
176
177 { # A ScanConfig resource contains the configurations to launch a scan.
178 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
179 # Command Center.
180 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
181 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
182 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
183 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
184 # refreshed by the server after each run. If unspecified, it will default
185 # to current server time, which means the scan will be scheduled to start
186 # immediately.
187 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
188 },
189 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
190 # If enabled, the scanner will access applications from static IP addresses.
191 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
192 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
193 # inclusively. If the field is unspecified or its value is set 0, server will
194 # default to 15. Other values outside of [5, 20] range will be rejected with
195 # INVALID_ARGUMENT error.
196 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
197 # authentication configuration during scanning.
198 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
199 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
200 # account is added in Identity-Aware-Proxy (IAP) access policies.
201 # service account is added in Identity-Aware-Proxy (IAP) access policies.
202 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
203 # Identity-Aware-Proxy (IAP).
204 },
205 },
206 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
207 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
208 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
209 # and not returned in any response nor included in audit logs.
210 },
211 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
212 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
213 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
214 # and not returned in any response nor included in audit logs.
215 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
216 },
217 },
218 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
219 # only.
220 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
221 # https://cloud.google.com/security-scanner/docs/excluded-urls
222 &quot;A String&quot;,
223 ],
224 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
225 &quot;A String&quot;,
226 ],
227 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
228 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
229 # generated by the system.
230 }</pre>
231</div>
232
233<div class="method">
234 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
235 <pre>Deletes an existing ScanConfig and its child resources.
236
237Args:
238 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the
239format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245Returns:
246 An object of the form:
247
248 { # A generic empty message that you can re-use to avoid defining duplicated
249 # empty messages in your APIs. A typical example is to use it as the request
250 # or the response type of an API method. For instance:
251 #
252 # service Foo {
253 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
254 # }
255 #
256 # The JSON representation for `Empty` is empty JSON object `{}`.
257 }</pre>
258</div>
259
260<div class="method">
261 <code class="details" id="get">get(name, x__xgafv=None)</code>
262 <pre>Gets a ScanConfig.
263
264Args:
265 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the
266format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
267 x__xgafv: string, V1 error format.
268 Allowed values
269 1 - v1 error format
270 2 - v2 error format
271
272Returns:
273 An object of the form:
274
275 { # A ScanConfig resource contains the configurations to launch a scan.
276 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
277 # Command Center.
278 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
279 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
280 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
281 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
282 # refreshed by the server after each run. If unspecified, it will default
283 # to current server time, which means the scan will be scheduled to start
284 # immediately.
285 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
286 },
287 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
288 # If enabled, the scanner will access applications from static IP addresses.
289 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
290 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
291 # inclusively. If the field is unspecified or its value is set 0, server will
292 # default to 15. Other values outside of [5, 20] range will be rejected with
293 # INVALID_ARGUMENT error.
294 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
295 # authentication configuration during scanning.
296 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
297 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
298 # account is added in Identity-Aware-Proxy (IAP) access policies.
299 # service account is added in Identity-Aware-Proxy (IAP) access policies.
300 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
301 # Identity-Aware-Proxy (IAP).
302 },
303 },
304 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
305 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
306 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
307 # and not returned in any response nor included in audit logs.
308 },
309 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
310 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
311 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
312 # and not returned in any response nor included in audit logs.
313 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
314 },
315 },
316 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
317 # only.
318 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
319 # https://cloud.google.com/security-scanner/docs/excluded-urls
320 &quot;A String&quot;,
321 ],
322 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
323 &quot;A String&quot;,
324 ],
325 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
326 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
327 # generated by the system.
328 }</pre>
329</div>
330
331<div class="method">
332 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
333 <pre>Lists ScanConfigs under a given project.
334
335Args:
336 parent: string, Required. The parent resource name, which should be a project resource name in the
337format &#x27;projects/{projectId}&#x27;. (required)
338 pageToken: string, A token identifying a page of results to be returned. This should be a
339`next_page_token` value returned from a previous List request.
340If unspecified, the first page of results is returned.
341 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
342If not specified or not positive, the implementation will select a
343reasonable value.
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348
349Returns:
350 An object of the form:
351
352 { # Response for the `ListScanConfigs` method.
353 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
354 # more results in the list.
355 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
356 { # A ScanConfig resource contains the configurations to launch a scan.
357 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
358 # Command Center.
359 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
360 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
361 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
362 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
363 # refreshed by the server after each run. If unspecified, it will default
364 # to current server time, which means the scan will be scheduled to start
365 # immediately.
366 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
367 },
368 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
369 # If enabled, the scanner will access applications from static IP addresses.
370 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
371 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
372 # inclusively. If the field is unspecified or its value is set 0, server will
373 # default to 15. Other values outside of [5, 20] range will be rejected with
374 # INVALID_ARGUMENT error.
375 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
376 # authentication configuration during scanning.
377 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
378 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
379 # account is added in Identity-Aware-Proxy (IAP) access policies.
380 # service account is added in Identity-Aware-Proxy (IAP) access policies.
381 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
382 # Identity-Aware-Proxy (IAP).
383 },
384 },
385 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
386 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
387 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
388 # and not returned in any response nor included in audit logs.
389 },
390 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
391 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
392 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
393 # and not returned in any response nor included in audit logs.
394 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
395 },
396 },
397 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
398 # only.
399 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
400 # https://cloud.google.com/security-scanner/docs/excluded-urls
401 &quot;A String&quot;,
402 ],
403 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
404 &quot;A String&quot;,
405 ],
406 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
407 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
408 # generated by the system.
409 },
410 ],
411 }</pre>
412</div>
413
414<div class="method">
415 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
416 <pre>Retrieves the next page of results.
417
418Args:
419 previous_request: The request for the previous page. (required)
420 previous_response: The response from the request for the previous page. (required)
421
422Returns:
423 A request object that you can call &#x27;execute()&#x27; on to request the next
424 page. Returns None if there are no more items in the collection.
425 </pre>
426</div>
427
428<div class="method">
429 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
430 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
431
432Args:
433 name: string, The resource name of the ScanConfig. The name follows the format of
434&#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
435generated by the system. (required)
436 body: object, The request body.
437 The object takes the form of:
438
439{ # A ScanConfig resource contains the configurations to launch a scan.
440 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
441 # Command Center.
442 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
443 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
444 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
445 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
446 # refreshed by the server after each run. If unspecified, it will default
447 # to current server time, which means the scan will be scheduled to start
448 # immediately.
449 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
450 },
451 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
452 # If enabled, the scanner will access applications from static IP addresses.
453 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
454 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
455 # inclusively. If the field is unspecified or its value is set 0, server will
456 # default to 15. Other values outside of [5, 20] range will be rejected with
457 # INVALID_ARGUMENT error.
458 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
459 # authentication configuration during scanning.
460 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
461 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
462 # account is added in Identity-Aware-Proxy (IAP) access policies.
463 # service account is added in Identity-Aware-Proxy (IAP) access policies.
464 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
465 # Identity-Aware-Proxy (IAP).
466 },
467 },
468 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
469 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the 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 },
473 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
474 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
475 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
476 # 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 custom account.
478 },
479 },
480 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
481 # only.
482 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
483 # https://cloud.google.com/security-scanner/docs/excluded-urls
484 &quot;A String&quot;,
485 ],
486 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
487 &quot;A String&quot;,
488 ],
489 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
490 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
491 # generated by the system.
492}
493
494 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
495see
496https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
497 x__xgafv: string, V1 error format.
498 Allowed values
499 1 - v1 error format
500 2 - v2 error format
501
502Returns:
503 An object of the form:
504
505 { # A ScanConfig resource contains the configurations to launch a scan.
506 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
507 # Command Center.
508 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
509 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
510 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
511 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
512 # refreshed by the server after each run. If unspecified, it will default
513 # to current server time, which means the scan will be scheduled to start
514 # immediately.
515 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
516 },
517 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
518 # If enabled, the scanner will access applications from static IP addresses.
519 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
520 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
521 # inclusively. If the field is unspecified or its value is set 0, server will
522 # default to 15. Other values outside of [5, 20] range will be rejected with
523 # INVALID_ARGUMENT error.
524 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
525 # authentication configuration during scanning.
526 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
527 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
528 # account is added in Identity-Aware-Proxy (IAP) access policies.
529 # service account is added in Identity-Aware-Proxy (IAP) access policies.
530 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
531 # Identity-Aware-Proxy (IAP).
532 },
533 },
534 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
535 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
536 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
537 # and not returned in any response nor included in audit logs.
538 },
539 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
540 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
541 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
542 # and not returned in any response nor included in audit logs.
543 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
544 },
545 },
546 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
547 # only.
548 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
549 # https://cloud.google.com/security-scanner/docs/excluded-urls
550 &quot;A String&quot;,
551 ],
552 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
553 &quot;A String&quot;,
554 ],
555 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
556 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
557 # generated by the system.
558 }</pre>
559</div>
560
561<div class="method">
562 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
563 <pre>Start a ScanRun according to the given ScanConfig.
564
565Args:
566 name: string, Required. The resource name of the ScanConfig to be used. The name follows the
567format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
568 body: object, The request body.
569 The object takes the form of:
570
571{ # Request for the `StartScanRun` method.
572 }
573
574 x__xgafv: string, V1 error format.
575 Allowed values
576 1 - v1 error format
577 2 - v2 error format
578
579Returns:
580 An object of the form:
581
582 { # A ScanRun is a output-only resource representing an actual run of the scan.
583 # Next id: 12
584 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
585 # If the scan is in queue, the value is 0.
586 # If the scan is running, the value ranges from 0 to 100.
587 # If the scan is finished, the value is 100.
588 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
589 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
590 # is either finished or stopped by user.
591 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
592 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
593 # the value represents the number of URLs crawled up to now.
594 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
595 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
596 # the value represents the number of URLs tested up to now. The number of
597 # URLs tested is usually larger than the number URLS crawled because
598 # typically a crawled URL is tested with multiple test payloads.
599 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
600 { # Output only.
601 # Defines a warning trace message for ScanRun. Warning traces provide customers
602 # with useful information that helps make the scanning process more effective.
603 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
604 },
605 ],
606 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
607 # execution state reaches &quot;FINISHED&quot;.
608 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
609 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
610 # The ScanRun IDs are generated by the system.
611 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
612 # scan&#x27;s termination and more details, if such are available.
613 # Defines an error trace message for a ScanRun.
614 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
615 # message encountered during scan configuration validation that is performed
616 # before each scan run.
617 # APIs when scan configuration validation fails. It is also reported as part of
618 # a ScanRunErrorTrace message if scan validation fails due to a scan
619 # configuration error.
620 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
621 # for example &quot;scan_config.max_qps&quot;. This field is provided for
622 # troubleshooting purposes only and its actual value can change in the
623 # future.
624 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
625 },
626 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
627 # common HTTP error code, if such is available. For example, if this code is
628 # 404, the scan has encountered too many NOT_FOUND responses.
629 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
630 },
631 }</pre>
632</div>
633
634</body></html>