blob: 054b3430468ede939c0075bf66f9520aa0e8b5d1 [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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
116 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
117 # inclusively. If the field is unspecified or its value is set 0, server will
118 # default to 15. Other values outside of [5, 20] range will be rejected with
119 # INVALID_ARGUMENT error.
120 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
121 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
122 &quot;A String&quot;,
123 ],
124 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
125 # Command Center.
126 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
127 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
128 # generated by the system.
129 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
130 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
131 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
132 # only.
133 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
134 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
135 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
136 # refreshed by the server after each run. If unspecified, it will default
137 # to current server time, which means the scan will be scheduled to start
138 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700139 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
141 &quot;A String&quot;,
142 ],
143 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
144 # If enabled, the scanner will access applications from static IP addresses.
145 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
146 # authentication configuration during scanning.
147 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
148 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
149 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
150 # and not returned in any response nor included in audit logs.
151 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
152 },
153 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
154 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
155 # account is added in Identity-Aware-Proxy (IAP) access policies.
156 # service account is added in Identity-Aware-Proxy (IAP) access policies.
157 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
158 # Identity-Aware-Proxy (IAP).
159 },
160 },
161 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
162 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
163 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
164 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 },
166 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700168
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700178 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
179 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
180 # inclusively. If the field is unspecified or its value is set 0, server will
181 # default to 15. Other values outside of [5, 20] range will be rejected with
182 # INVALID_ARGUMENT error.
183 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
184 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
185 &quot;A String&quot;,
186 ],
187 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
188 # Command Center.
189 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
190 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
191 # generated by the system.
192 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
193 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
194 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
195 # only.
196 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
197 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
198 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
199 # refreshed by the server after each run. If unspecified, it will default
200 # to current server time, which means the scan will be scheduled to start
201 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700202 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700203 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
204 &quot;A String&quot;,
205 ],
206 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
207 # If enabled, the scanner will access applications from static IP addresses.
208 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
209 # authentication configuration during scanning.
210 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
211 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
212 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
213 # and not returned in any response nor included in audit logs.
214 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
215 },
216 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
217 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
218 # account is added in Identity-Aware-Proxy (IAP) access policies.
219 # service account is added in Identity-Aware-Proxy (IAP) access policies.
220 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
221 # Identity-Aware-Proxy (IAP).
222 },
223 },
224 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
225 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
226 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
227 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 },
229 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700231</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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700276 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
277 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
278 # inclusively. If the field is unspecified or its value is set 0, server will
279 # default to 15. Other values outside of [5, 20] range will be rejected with
280 # INVALID_ARGUMENT error.
281 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
282 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
283 &quot;A String&quot;,
284 ],
285 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
286 # Command Center.
287 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
288 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
289 # generated by the system.
290 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
291 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
292 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
293 # only.
294 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
295 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
296 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
297 # refreshed by the server after each run. If unspecified, it will default
298 # to current server time, which means the scan will be scheduled to start
299 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700300 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
302 &quot;A String&quot;,
303 ],
304 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
305 # If enabled, the scanner will access applications from static IP addresses.
306 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
307 # authentication configuration during scanning.
308 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
309 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
310 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
311 # and not returned in any response nor included in audit logs.
312 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
313 },
314 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
315 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
316 # account is added in Identity-Aware-Proxy (IAP) access policies.
317 # service account is added in Identity-Aware-Proxy (IAP) access policies.
318 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
319 # Identity-Aware-Proxy (IAP).
320 },
321 },
322 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
323 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
324 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
325 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 },
327 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700328 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700329</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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
358 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
359 # inclusively. If the field is unspecified or its value is set 0, server will
360 # default to 15. Other values outside of [5, 20] range will be rejected with
361 # INVALID_ARGUMENT error.
362 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
363 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
364 &quot;A String&quot;,
365 ],
366 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
367 # Command Center.
368 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
369 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
370 # generated by the system.
371 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
372 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
373 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
374 # only.
375 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
376 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
377 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
378 # refreshed by the server after each run. If unspecified, it will default
379 # to current server time, which means the scan will be scheduled to start
380 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700381 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700382 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
383 &quot;A String&quot;,
384 ],
385 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
386 # If enabled, the scanner will access applications from static IP addresses.
387 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
388 # authentication configuration during scanning.
389 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
390 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
391 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
392 # and not returned in any response nor included in audit logs.
393 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
394 },
395 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
396 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
397 # account is added in Identity-Aware-Proxy (IAP) access policies.
398 # service account is added in Identity-Aware-Proxy (IAP) access policies.
399 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
400 # Identity-Aware-Proxy (IAP).
401 },
402 },
403 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
404 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
405 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
406 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 },
408 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 ],
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700440 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
441 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
442 # inclusively. If the field is unspecified or its value is set 0, server will
443 # default to 15. Other values outside of [5, 20] range will be rejected with
444 # INVALID_ARGUMENT error.
445 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
446 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
447 &quot;A String&quot;,
448 ],
449 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
450 # Command Center.
451 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
452 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
453 # generated by the system.
454 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
455 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
456 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
457 # only.
458 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
459 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
460 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
461 # refreshed by the server after each run. If unspecified, it will default
462 # to current server time, which means the scan will be scheduled to start
463 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700464 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700465 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
466 &quot;A String&quot;,
467 ],
468 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
469 # If enabled, the scanner will access applications from static IP addresses.
470 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
471 # authentication configuration during scanning.
472 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
473 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
474 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
475 # and not returned in any response nor included in audit logs.
476 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
477 },
478 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
479 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
480 # account is added in Identity-Aware-Proxy (IAP) access policies.
481 # service account is added in Identity-Aware-Proxy (IAP) access policies.
482 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
483 # Identity-Aware-Proxy (IAP).
484 },
485 },
486 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
487 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
488 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
489 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 },
491 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700492 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700493
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700506 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
507 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
508 # inclusively. If the field is unspecified or its value is set 0, server will
509 # default to 15. Other values outside of [5, 20] range will be rejected with
510 # INVALID_ARGUMENT error.
511 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
512 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
513 &quot;A String&quot;,
514 ],
515 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
516 # Command Center.
517 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
518 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
519 # generated by the system.
520 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
521 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
522 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
523 # only.
524 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
525 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
526 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
527 # refreshed by the server after each run. If unspecified, it will default
528 # to current server time, which means the scan will be scheduled to start
529 # immediately.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700530 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
532 &quot;A String&quot;,
533 ],
534 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
535 # If enabled, the scanner will access applications from static IP addresses.
536 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
537 # authentication configuration during scanning.
538 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
539 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
540 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
541 # and not returned in any response nor included in audit logs.
542 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
543 },
544 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
545 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
546 # account is added in Identity-Aware-Proxy (IAP) access policies.
547 # service account is added in Identity-Aware-Proxy (IAP) access policies.
548 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
549 # Identity-Aware-Proxy (IAP).
550 },
551 },
552 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
553 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
554 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
555 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 },
557 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700558 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700559</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
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
585 # scan&#x27;s termination and more details, if such are available.
586 # Defines an error trace message for a ScanRun.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700587 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
588 # common HTTP error code, if such is available. For example, if this code is
589 # 404, the scan has encountered too many NOT_FOUND responses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 &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
591 # message encountered during scan configuration validation that is performed
592 # before each scan run.
593 # APIs when scan configuration validation fails. It is also reported as part of
594 # a ScanRunErrorTrace message if scan validation fails due to a scan
595 # configuration error.
596 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
597 # for example &quot;scan_config.max_qps&quot;. This field is provided for
598 # troubleshooting purposes only and its actual value can change in the
599 # future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700600 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700602 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700604 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
605 # the value represents the number of URLs crawled up to now.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700606 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
607 { # Output only.
608 # Defines a warning trace message for ScanRun. Warning traces provide customers
609 # with useful information that helps make the scanning process more effective.
610 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
611 },
612 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700613 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
614 # execution state reaches &quot;FINISHED&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700615 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
616 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
617 # the value represents the number of URLs tested up to now. The number of
618 # URLs tested is usually larger than the number URLS crawled because
619 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700620 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
621 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
622 # The ScanRun IDs are generated by the system.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
624 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
625 # is either finished or stopped by user.
626 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
627 # If the scan is in queue, the value is 0.
628 # If the scan is running, the value ranges from 0 to 100.
629 # If the scan is finished, the value is 100.
630 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
Bu Sun Kim65020912020-05-20 12:08:20 -0700631 }</pre>
632</div>
633
634</body></html>