blob: b3463ba593ec66862f91b0a87ff7205b52d50e71 [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_v1alpha.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1alpha.projects.html">projects</a> . <a href="websecurityscanner_v1alpha.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1alpha.projects.scanConfigs.scanRuns.html">scanRuns()</a></code>
79</p>
80<p class="firstline">Returns the scanRuns Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates a new ScanConfig.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets a ScanConfig.</p>
91<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070092 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Lists ScanConfigs under a given project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
100<p class="toc_element">
101 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
103<h3>Method Details</h3>
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 <pre>Creates a new ScanConfig.
107
108Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 parent: string, Required. The parent resource name where the scan is created, which should be a
Bu Sun Kim65020912020-05-20 12:08:20 -0700110project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700116 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
118 &quot;A String&quot;,
119 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700120 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
122 # authentication configuration during scanning.
123 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
124 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
125 # and not returned in any response nor included in audit logs.
126 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
127 },
128 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700129 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
131 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
133 },
134 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700135 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
136 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
137 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
138 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
139 # execution state reaches &quot;FINISHED&quot;.
140 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
141 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
142 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
143 # The ScanRun IDs are generated by the system.
144 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
145 # If the scan is in queue, the value is 0.
146 # If the scan is running, the value ranges from 0 to 100.
147 # If the scan is finished, the value is 100.
148 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
149 # the value represents the number of URLs crawled up to now.
150 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
151 # the value represents the number of URLs tested up to now. The number of
152 # URLs tested is usually larger than the number URLS crawled because
153 # typically a crawled URL is tested with multiple test payloads.
154 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
155 # is either finished or stopped by user.
156 },
157 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
158 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
159 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
160 # refreshed by the server after each run. If unspecified, it will default
161 # to current server time, which means the scan will be scheduled to start
162 # immediately.
163 },
164 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
165 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
166 &quot;A String&quot;,
167 ],
168 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
169 # inclusively. If the field is unspecified or its value is set 0, server will
170 # default to 15. Other values outside of [5, 20] range will be rejected with
171 # INVALID_ARGUMENT error.
172 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
173 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
174 # generated by the system.
175 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
176 # will be used as a default.
177 &quot;A String&quot;,
178 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180
181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186Returns:
187 An object of the form:
188
189 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700191 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700192 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
193 &quot;A String&quot;,
194 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700195 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
197 # authentication configuration during scanning.
198 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
199 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
200 # and not returned in any response nor included in audit logs.
201 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
202 },
203 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700204 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
206 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
208 },
209 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700210 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
211 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
212 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
213 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
214 # execution state reaches &quot;FINISHED&quot;.
215 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
216 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
217 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
218 # The ScanRun IDs are generated by the system.
219 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
220 # If the scan is in queue, the value is 0.
221 # If the scan is running, the value ranges from 0 to 100.
222 # If the scan is finished, the value is 100.
223 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
224 # the value represents the number of URLs crawled up to now.
225 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
226 # the value represents the number of URLs tested up to now. The number of
227 # URLs tested is usually larger than the number URLS crawled because
228 # typically a crawled URL is tested with multiple test payloads.
229 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
230 # is either finished or stopped by user.
231 },
232 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
233 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
234 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
235 # refreshed by the server after each run. If unspecified, it will default
236 # to current server time, which means the scan will be scheduled to start
237 # immediately.
238 },
239 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
240 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
241 &quot;A String&quot;,
242 ],
243 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
244 # inclusively. If the field is unspecified or its value is set 0, server will
245 # default to 15. Other values outside of [5, 20] range will be rejected with
246 # INVALID_ARGUMENT error.
247 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
248 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
249 # generated by the system.
250 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
251 # will be used as a default.
252 &quot;A String&quot;,
253 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255</div>
256
257<div class="method">
258 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
259 <pre>Deletes an existing ScanConfig and its child resources.
260
261Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700263format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
268
269Returns:
270 An object of the form:
271
272 { # A generic empty message that you can re-use to avoid defining duplicated
273 # empty messages in your APIs. A typical example is to use it as the request
274 # or the response type of an API method. For instance:
275 #
276 # service Foo {
277 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
278 # }
279 #
280 # The JSON representation for `Empty` is empty JSON object `{}`.
281 }</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="get">get(name, x__xgafv=None)</code>
286 <pre>Gets a ScanConfig.
287
288Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700290format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 x__xgafv: string, V1 error format.
292 Allowed values
293 1 - v1 error format
294 2 - v2 error format
295
296Returns:
297 An object of the form:
298
299 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700301 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
303 &quot;A String&quot;,
304 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700305 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700314 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
318 },
319 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700320 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
321 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
322 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
323 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
324 # execution state reaches &quot;FINISHED&quot;.
325 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
326 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
327 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
328 # The ScanRun IDs are generated by the system.
329 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
330 # If the scan is in queue, the value is 0.
331 # If the scan is running, the value ranges from 0 to 100.
332 # If the scan is finished, the value is 100.
333 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
334 # the value represents the number of URLs crawled up to now.
335 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
336 # the value represents the number of URLs tested up to now. The number of
337 # URLs tested is usually larger than the number URLS crawled because
338 # typically a crawled URL is tested with multiple test payloads.
339 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
340 # is either finished or stopped by user.
341 },
342 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
343 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
344 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
345 # refreshed by the server after each run. If unspecified, it will default
346 # to current server time, which means the scan will be scheduled to start
347 # immediately.
348 },
349 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
350 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
351 &quot;A String&quot;,
352 ],
353 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
354 # inclusively. If the field is unspecified or its value is set 0, server will
355 # default to 15. Other values outside of [5, 20] range will be rejected with
356 # INVALID_ARGUMENT error.
357 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
358 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
359 # generated by the system.
360 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
361 # will be used as a default.
362 &quot;A String&quot;,
363 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365</div>
366
367<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 <pre>Lists ScanConfigs under a given project.
370
371Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 parent: string, Required. The parent resource name, which should be a project resource name in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700373format &#x27;projects/{projectId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 pageToken: string, A token identifying a page of results to be returned. This should be a
375`next_page_token` value returned from a previous List request.
376If unspecified, the first page of results is returned.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
378If not specified or not positive, the implementation will select a
379reasonable value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 x__xgafv: string, V1 error format.
381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384
385Returns:
386 An object of the form:
387
388 { # Response for the `ListScanConfigs` method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700389 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
390 # more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700392 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700394 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
396 &quot;A String&quot;,
397 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700398 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
400 # authentication configuration during scanning.
401 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
402 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
403 # and not returned in any response nor included in audit logs.
404 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
405 },
406 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
409 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
411 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700413 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
414 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
415 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
416 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
417 # execution state reaches &quot;FINISHED&quot;.
418 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
419 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
420 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
421 # The ScanRun IDs are generated by the system.
422 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
423 # If the scan is in queue, the value is 0.
424 # If the scan is running, the value ranges from 0 to 100.
425 # If the scan is finished, the value is 100.
426 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
427 # the value represents the number of URLs crawled up to now.
428 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
429 # the value represents the number of URLs tested up to now. The number of
430 # URLs tested is usually larger than the number URLS crawled because
431 # typically a crawled URL is tested with multiple test payloads.
432 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
433 # is either finished or stopped by user.
434 },
435 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
436 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
437 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
438 # refreshed by the server after each run. If unspecified, it will default
439 # to current server time, which means the scan will be scheduled to start
440 # immediately.
441 },
442 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
443 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
444 &quot;A String&quot;,
445 ],
446 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
447 # inclusively. If the field is unspecified or its value is set 0, server will
448 # default to 15. Other values outside of [5, 20] range will be rejected with
449 # INVALID_ARGUMENT error.
450 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
451 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
452 # generated by the system.
453 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
454 # will be used as a default.
455 &quot;A String&quot;,
456 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700458 ],
459 }</pre>
460</div>
461
462<div class="method">
463 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
464 <pre>Retrieves the next page of results.
465
466Args:
467 previous_request: The request for the previous page. (required)
468 previous_response: The response from the request for the previous page. (required)
469
470Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 page. Returns None if there are no more items in the collection.
473 </pre>
474</div>
475
476<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700477 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
479
480Args:
481 name: string, The resource name of the ScanConfig. The name follows the format of
Bu Sun Kim65020912020-05-20 12:08:20 -0700482&#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483generated by the system. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700484 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 The object takes the form of:
486
487{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700489 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
491 &quot;A String&quot;,
492 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700493 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
495 # authentication configuration during scanning.
496 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
497 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
498 # and not returned in any response nor included in audit logs.
499 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
500 },
501 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700502 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
504 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
506 },
507 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700508 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
509 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
510 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
511 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
512 # execution state reaches &quot;FINISHED&quot;.
513 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
514 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
515 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
516 # The ScanRun IDs are generated by the system.
517 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
518 # If the scan is in queue, the value is 0.
519 # If the scan is running, the value ranges from 0 to 100.
520 # If the scan is finished, the value is 100.
521 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
522 # the value represents the number of URLs crawled up to now.
523 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
524 # the value represents the number of URLs tested up to now. The number of
525 # URLs tested is usually larger than the number URLS crawled because
526 # typically a crawled URL is tested with multiple test payloads.
527 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
528 # is either finished or stopped by user.
529 },
530 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
531 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
532 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
533 # refreshed by the server after each run. If unspecified, it will default
534 # to current server time, which means the scan will be scheduled to start
535 # immediately.
536 },
537 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
538 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
539 &quot;A String&quot;,
540 ],
541 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
542 # inclusively. If the field is unspecified or its value is set 0, server will
543 # default to 15. Other values outside of [5, 20] range will be rejected with
544 # INVALID_ARGUMENT error.
545 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
546 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
547 # generated by the system.
548 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
549 # will be used as a default.
550 &quot;A String&quot;,
551 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700552 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553
Dan O'Mearadd494642020-05-01 07:42:23 -0700554 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555see
556https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
557 x__xgafv: string, V1 error format.
558 Allowed values
559 1 - v1 error format
560 2 - v2 error format
561
562Returns:
563 An object of the form:
564
565 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700567 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
569 &quot;A String&quot;,
570 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
573 # authentication configuration during scanning.
574 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
575 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
576 # and not returned in any response nor included in audit logs.
577 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
578 },
579 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700580 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
582 # and not returned in any response nor included in audit logs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700583 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
584 },
585 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700586 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
587 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
588 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
589 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
590 # execution state reaches &quot;FINISHED&quot;.
591 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
592 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
593 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
594 # The ScanRun IDs are generated by the system.
595 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
596 # If the scan is in queue, the value is 0.
597 # If the scan is running, the value ranges from 0 to 100.
598 # If the scan is finished, the value is 100.
599 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
600 # the value represents the number of URLs crawled up to now.
601 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
602 # the value represents the number of URLs tested up to now. The number of
603 # URLs tested is usually larger than the number URLS crawled because
604 # typically a crawled URL is tested with multiple test payloads.
605 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
606 # is either finished or stopped by user.
607 },
608 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
609 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
610 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
611 # refreshed by the server after each run. If unspecified, it will default
612 # to current server time, which means the scan will be scheduled to start
613 # immediately.
614 },
615 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
616 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
617 &quot;A String&quot;,
618 ],
619 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
620 # inclusively. If the field is unspecified or its value is set 0, server will
621 # default to 15. Other values outside of [5, 20] range will be rejected with
622 # INVALID_ARGUMENT error.
623 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
624 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
625 # generated by the system.
626 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
627 # will be used as a default.
628 &quot;A String&quot;,
629 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700631</div>
632
633<div class="method">
634 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
635 <pre>Start a ScanRun according to the given ScanConfig.
636
637Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700638 name: string, Required. The resource name of the ScanConfig to be used. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700639format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700640 body: object, The request body.
641 The object takes the form of:
642
643{ # Request for the `StartScanRun` method.
644 }
645
646 x__xgafv: string, V1 error format.
647 Allowed values
648 1 - v1 error format
649 2 - v2 error format
650
651Returns:
652 An object of the form:
653
654 { # A ScanRun is a output-only resource representing an actual run of the scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700655 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
656 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
657 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
658 # execution state reaches &quot;FINISHED&quot;.
659 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
660 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
661 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
662 # The ScanRun IDs are generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700663 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 # If the scan is in queue, the value is 0.
665 # If the scan is running, the value ranges from 0 to 100.
666 # If the scan is finished, the value is 100.
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
668 # the value represents the number of URLs crawled up to now.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
670 # the value represents the number of URLs tested up to now. The number of
671 # URLs tested is usually larger than the number URLS crawled because
672 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700673 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
674 # is either finished or stopped by user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 }</pre>
676</div>
677
678</body></html>