blob: eaa21dd2ad924397f730c6ed4e7025150be3242e [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070092 <code><a href="#list">list(parent, pageSize=None, pageToken=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 Kim65020912020-05-20 12:08:20 -0700115 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700119 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
120 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
121 # generated by the system.
122 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
123 # Command Center.
124 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
127 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
128 # is either finished or stopped by user.
129 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
130 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
131 # the value represents the number of URLs crawled up to now.
132 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
133 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 # the value represents the number of URLs tested up to now. The number of
135 # URLs tested is usually larger than the number URLS crawled because
136 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
138 { # Output only.
139 # Defines a warning trace message for ScanRun. Warning traces provide customers
140 # with useful information that helps make the scanning process more effective.
141 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
142 },
143 ],
144 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
145 # execution state reaches &quot;FINISHED&quot;.
146 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
147 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
148 # The ScanRun IDs are generated by the system.
149 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
150 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &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 -0700153 # message encountered during scan configuration validation that is performed
154 # before each scan run.
155 # APIs when scan configuration validation fails. It is also reported as part of
156 # a ScanRunErrorTrace message if scan validation fails due to a scan
157 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
159 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 # troubleshooting purposes only and its actual value can change in the
161 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
163 },
164 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
165 # common HTTP error code, if such is available. For example, if this code is
166 # 404, the scan has encountered too many NOT_FOUND responses.
167 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
168 },
169 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
170 # If the scan is in queue, the value is 0.
171 # If the scan is running, the value ranges from 0 to 100.
172 # If the scan is finished, the value is 100.
173 },
174 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
175 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
176 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
177 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
178 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
179 # refreshed by the server after each run. If unspecified, it will default
180 # to current server time, which means the scan will be scheduled to start
181 # immediately.
182 },
183 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
184 # If enabled, the scanner will access applications from static IP addresses.
185 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
186 # inclusively. If the field is unspecified or its value is set 0, server will
187 # default to 15. Other values outside of [5, 20] range will be rejected with
188 # INVALID_ARGUMENT error.
189 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
190 # authentication configuration during scanning.
191 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
192 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
193 # and not returned in any response nor included in audit logs.
194 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
195 },
196 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
197 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
198 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
199 # and not returned in any response nor included in audit logs.
200 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
201 },
202 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
203 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
204 # account is added in Identity-Aware-Proxy (IAP) access policies.
205 # service account is added in Identity-Aware-Proxy (IAP) access policies.
206 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
207 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 },
209 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
212 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
213 # only.
214 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
215 # https://cloud.google.com/security-scanner/docs/excluded-urls
216 &quot;A String&quot;,
217 ],
218 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
219 &quot;A String&quot;,
220 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221}
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700235 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
237 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
238 # generated by the system.
239 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
240 # Command Center.
241 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
244 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
245 # is either finished or stopped by user.
246 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
247 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
248 # the value represents the number of URLs crawled up to now.
249 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
250 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700251 # the value represents the number of URLs tested up to now. The number of
252 # URLs tested is usually larger than the number URLS crawled because
253 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
255 { # Output only.
256 # Defines a warning trace message for ScanRun. Warning traces provide customers
257 # with useful information that helps make the scanning process more effective.
258 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
259 },
260 ],
261 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
262 # execution state reaches &quot;FINISHED&quot;.
263 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
264 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
265 # The ScanRun IDs are generated by the system.
266 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
267 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700268 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &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 -0700270 # message encountered during scan configuration validation that is performed
271 # before each scan run.
272 # APIs when scan configuration validation fails. It is also reported as part of
273 # a ScanRunErrorTrace message if scan validation fails due to a scan
274 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
276 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 # troubleshooting purposes only and its actual value can change in the
278 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700279 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
280 },
281 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
282 # common HTTP error code, if such is available. For example, if this code is
283 # 404, the scan has encountered too many NOT_FOUND responses.
284 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
285 },
286 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
287 # If the scan is in queue, the value is 0.
288 # If the scan is running, the value ranges from 0 to 100.
289 # If the scan is finished, the value is 100.
290 },
291 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
292 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
293 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
294 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
295 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
296 # refreshed by the server after each run. If unspecified, it will default
297 # to current server time, which means the scan will be scheduled to start
298 # immediately.
299 },
300 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
301 # If enabled, the scanner will access applications from static IP addresses.
302 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
303 # inclusively. If the field is unspecified or its value is set 0, server will
304 # default to 15. Other values outside of [5, 20] range will be rejected with
305 # INVALID_ARGUMENT error.
306 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
307 # authentication configuration during scanning.
308 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
309 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
310 # and not returned in any response nor included in audit logs.
311 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
312 },
313 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
314 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
315 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
316 # and not returned in any response nor included in audit logs.
317 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
318 },
319 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
320 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
321 # account is added in Identity-Aware-Proxy (IAP) access policies.
322 # service account is added in Identity-Aware-Proxy (IAP) access policies.
323 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
324 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700325 },
326 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
329 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
330 # only.
331 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
332 # https://cloud.google.com/security-scanner/docs/excluded-urls
333 &quot;A String&quot;,
334 ],
335 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
336 &quot;A String&quot;,
337 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 }</pre>
339</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 Kim65020912020-05-20 12:08:20 -0700384 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700388 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
389 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
390 # generated by the system.
391 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
392 # Command Center.
393 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
396 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
397 # is either finished or stopped by user.
398 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
399 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
400 # the value represents the number of URLs crawled up to now.
401 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
402 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700403 # the value represents the number of URLs tested up to now. The number of
404 # URLs tested is usually larger than the number URLS crawled because
405 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
407 { # Output only.
408 # Defines a warning trace message for ScanRun. Warning traces provide customers
409 # with useful information that helps make the scanning process more effective.
410 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
411 },
412 ],
413 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
414 # execution state reaches &quot;FINISHED&quot;.
415 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
416 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
417 # The ScanRun IDs are generated by the system.
418 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
419 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &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 -0700422 # message encountered during scan configuration validation that is performed
423 # before each scan run.
424 # APIs when scan configuration validation fails. It is also reported as part of
425 # a ScanRunErrorTrace message if scan validation fails due to a scan
426 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
428 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 # troubleshooting purposes only and its actual value can change in the
430 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
432 },
433 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
434 # common HTTP error code, if such is available. For example, if this code is
435 # 404, the scan has encountered too many NOT_FOUND responses.
436 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
437 },
438 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
439 # If the scan is in queue, the value is 0.
440 # If the scan is running, the value ranges from 0 to 100.
441 # If the scan is finished, the value is 100.
442 },
443 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
444 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
445 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
446 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
447 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
448 # refreshed by the server after each run. If unspecified, it will default
449 # to current server time, which means the scan will be scheduled to start
450 # immediately.
451 },
452 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
453 # If enabled, the scanner will access applications from static IP addresses.
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;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
461 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
462 # and not returned in any response nor included in audit logs.
463 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
464 },
465 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
466 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
467 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
468 # and not returned in any response nor included in audit logs.
469 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
470 },
471 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
472 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
473 # account is added in Identity-Aware-Proxy (IAP) access policies.
474 # service account is added in Identity-Aware-Proxy (IAP) access policies.
475 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
476 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700477 },
478 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
481 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
482 # only.
483 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
484 # https://cloud.google.com/security-scanner/docs/excluded-urls
485 &quot;A String&quot;,
486 ],
487 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
488 &quot;A String&quot;,
489 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490 }</pre>
491</div>
492
493<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700494 <code class="details" id="list">list(parent, pageSize=None, pageToken=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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700500 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
501If not specified or not positive, the implementation will select a
502reasonable value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 pageToken: string, A token identifying a page of results to be returned. This should be a
504`next_page_token` value returned from a previous List request.
505If unspecified, the first page of results is returned.
506 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 Kim65020912020-05-20 12:08:20 -0700517 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700520 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
522 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
523 # generated by the system.
524 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
525 # Command Center.
526 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
529 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
530 # is either finished or stopped by user.
531 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
532 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
533 # the value represents the number of URLs crawled up to now.
534 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
535 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700536 # the value represents the number of URLs tested up to now. The number of
537 # URLs tested is usually larger than the number URLS crawled because
538 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
540 { # Output only.
541 # Defines a warning trace message for ScanRun. Warning traces provide customers
542 # with useful information that helps make the scanning process more effective.
543 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
544 },
545 ],
546 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
547 # execution state reaches &quot;FINISHED&quot;.
548 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
549 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
550 # The ScanRun IDs are generated by the system.
551 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
552 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &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 -0700555 # message encountered during scan configuration validation that is performed
556 # before each scan run.
557 # APIs when scan configuration validation fails. It is also reported as part of
558 # a ScanRunErrorTrace message if scan validation fails due to a scan
559 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
561 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 # troubleshooting purposes only and its actual value can change in the
563 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
565 },
566 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
567 # common HTTP error code, if such is available. For example, if this code is
568 # 404, the scan has encountered too many NOT_FOUND responses.
569 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
570 },
571 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
572 # If the scan is in queue, the value is 0.
573 # If the scan is running, the value ranges from 0 to 100.
574 # If the scan is finished, the value is 100.
575 },
576 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
577 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
578 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
579 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
580 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
581 # refreshed by the server after each run. If unspecified, it will default
582 # to current server time, which means the scan will be scheduled to start
583 # immediately.
584 },
585 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
586 # If enabled, the scanner will access applications from static IP addresses.
587 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
588 # inclusively. If the field is unspecified or its value is set 0, server will
589 # default to 15. Other values outside of [5, 20] range will be rejected with
590 # INVALID_ARGUMENT error.
591 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
592 # authentication configuration during scanning.
593 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
594 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
595 # and not returned in any response nor included in audit logs.
596 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
597 },
598 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
599 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
600 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
601 # and not returned in any response nor included in audit logs.
602 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
603 },
604 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
605 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
606 # account is added in Identity-Aware-Proxy (IAP) access policies.
607 # service account is added in Identity-Aware-Proxy (IAP) access policies.
608 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
609 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700610 },
611 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700612 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
614 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
615 # only.
616 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
617 # https://cloud.google.com/security-scanner/docs/excluded-urls
618 &quot;A String&quot;,
619 ],
620 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
621 &quot;A String&quot;,
622 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 },
624 ],
Bu Sun Kim65020912020-05-20 12:08:20 -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 Kim65020912020-05-20 12:08:20 -0700656 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700657 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700659 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
661 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
662 # generated by the system.
663 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
664 # Command Center.
665 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700666 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
668 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
669 # is either finished or stopped by user.
670 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
671 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
672 # the value represents the number of URLs crawled up to now.
673 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
674 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 # the value represents the number of URLs tested up to now. The number of
676 # URLs tested is usually larger than the number URLS crawled because
677 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
679 { # Output only.
680 # Defines a warning trace message for ScanRun. Warning traces provide customers
681 # with useful information that helps make the scanning process more effective.
682 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
683 },
684 ],
685 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
686 # execution state reaches &quot;FINISHED&quot;.
687 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
688 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
689 # The ScanRun IDs are generated by the system.
690 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
691 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &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 -0700694 # message encountered during scan configuration validation that is performed
695 # before each scan run.
696 # APIs when scan configuration validation fails. It is also reported as part of
697 # a ScanRunErrorTrace message if scan validation fails due to a scan
698 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
700 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700701 # troubleshooting purposes only and its actual value can change in the
702 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
704 },
705 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
706 # common HTTP error code, if such is available. For example, if this code is
707 # 404, the scan has encountered too many NOT_FOUND responses.
708 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
709 },
710 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
711 # If the scan is in queue, the value is 0.
712 # If the scan is running, the value ranges from 0 to 100.
713 # If the scan is finished, the value is 100.
714 },
715 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
716 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
717 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
718 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
719 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
720 # refreshed by the server after each run. If unspecified, it will default
721 # to current server time, which means the scan will be scheduled to start
722 # immediately.
723 },
724 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
725 # If enabled, the scanner will access applications from static IP addresses.
726 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
727 # inclusively. If the field is unspecified or its value is set 0, server will
728 # default to 15. Other values outside of [5, 20] range will be rejected with
729 # INVALID_ARGUMENT error.
730 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
731 # authentication configuration during scanning.
732 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
733 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
734 # and not returned in any response nor included in audit logs.
735 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
736 },
737 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
738 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
739 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
740 # and not returned in any response nor included in audit logs.
741 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
742 },
743 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
744 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
745 # account is added in Identity-Aware-Proxy (IAP) access policies.
746 # service account is added in Identity-Aware-Proxy (IAP) access policies.
747 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
748 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700749 },
750 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700751 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
753 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
754 # only.
755 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
756 # https://cloud.google.com/security-scanner/docs/excluded-urls
757 &quot;A String&quot;,
758 ],
759 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
760 &quot;A String&quot;,
761 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762}
763
Dan O'Mearadd494642020-05-01 07:42:23 -0700764 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765see
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 # used as a default.
Bu Sun Kim65020912020-05-20 12:08:20 -0700778 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
781 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
782 # generated by the system.
783 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Cloud Security
784 # Command Center.
785 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
788 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
789 # is either finished or stopped by user.
790 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
791 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
792 # the value represents the number of URLs crawled up to now.
793 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
794 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700795 # the value represents the number of URLs tested up to now. The number of
796 # URLs tested is usually larger than the number URLS crawled because
797 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
799 { # Output only.
800 # Defines a warning trace message for ScanRun. Warning traces provide customers
801 # with useful information that helps make the scanning process more effective.
802 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
803 },
804 ],
805 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
806 # execution state reaches &quot;FINISHED&quot;.
807 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
808 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
809 # The ScanRun IDs are generated by the system.
810 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
811 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &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 -0700814 # message encountered during scan configuration validation that is performed
815 # before each scan run.
816 # APIs when scan configuration validation fails. It is also reported as part of
817 # a ScanRunErrorTrace message if scan validation fails due to a scan
818 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
820 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821 # troubleshooting purposes only and its actual value can change in the
822 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700823 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
824 },
825 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
826 # common HTTP error code, if such is available. For example, if this code is
827 # 404, the scan has encountered too many NOT_FOUND responses.
828 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
829 },
830 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
831 # If the scan is in queue, the value is 0.
832 # If the scan is running, the value ranges from 0 to 100.
833 # If the scan is finished, the value is 100.
834 },
835 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
836 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
837 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
838 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
839 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
840 # refreshed by the server after each run. If unspecified, it will default
841 # to current server time, which means the scan will be scheduled to start
842 # immediately.
843 },
844 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
845 # If enabled, the scanner will access applications from static IP addresses.
846 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
847 # inclusively. If the field is unspecified or its value is set 0, server will
848 # default to 15. Other values outside of [5, 20] range will be rejected with
849 # INVALID_ARGUMENT error.
850 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
851 # authentication configuration during scanning.
852 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
853 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
854 # and not returned in any response nor included in audit logs.
855 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
856 },
857 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
858 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
859 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
860 # and not returned in any response nor included in audit logs.
861 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
862 },
863 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
864 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
865 # account is added in Identity-Aware-Proxy (IAP) access policies.
866 # service account is added in Identity-Aware-Proxy (IAP) access policies.
867 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by
868 # Identity-Aware-Proxy(IAP).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 },
870 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
873 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Cloud Web Security Scanner, output
874 # only.
875 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
876 # https://cloud.google.com/security-scanner/docs/excluded-urls
877 &quot;A String&quot;,
878 ],
879 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
880 &quot;A String&quot;,
881 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700882 }</pre>
883</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 Kim65020912020-05-20 12:08:20 -0700908 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
909 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
910 # is either finished or stopped by user.
911 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
912 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
913 # the value represents the number of URLs crawled up to now.
914 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
915 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700916 # the value represents the number of URLs tested up to now. The number of
917 # URLs tested is usually larger than the number URLS crawled because
918 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700919 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
920 { # Output only.
921 # Defines a warning trace message for ScanRun. Warning traces provide customers
922 # with useful information that helps make the scanning process more effective.
923 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
924 },
925 ],
926 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
927 # execution state reaches &quot;FINISHED&quot;.
928 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
929 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
930 # The ScanRun IDs are generated by the system.
931 &quot;errorTrace&quot;: { # Output only. # If result_state is an ERROR, this field provides the primary reason for
932 # scan&#x27;s termination and more details, if such are available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700933 # Defines an error trace message for a ScanRun.
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 &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 -0700935 # message encountered during scan configuration validation that is performed
936 # before each scan run.
937 # APIs when scan configuration validation fails. It is also reported as part of
938 # a ScanRunErrorTrace message if scan validation fails due to a scan
939 # configuration error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 &quot;fieldName&quot;: &quot;A String&quot;, # Indicates the full name of the ScanConfig field that triggers this error,
941 # for example &quot;scan_config.max_qps&quot;. This field is provided for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700942 # troubleshooting purposes only and its actual value can change in the
943 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700945 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 &quot;mostCommonHttpErrorCode&quot;: 42, # If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
947 # common HTTP error code, if such is available. For example, if this code is
948 # 404, the scan has encountered too many NOT_FOUND responses.
949 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700950 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700951 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
952 # If the scan is in queue, the value is 0.
953 # If the scan is running, the value ranges from 0 to 100.
954 # If the scan is finished, the value is 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700955 }</pre>
956</div>
957
958</body></html>