blob: 09a3780be2320e0d590b605fc654a6af6f23e816 [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 Kimd059ad82020-07-22 17:02:09 -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 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700116 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
118 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
119 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
121 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
123 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
124 # and not returned in any response nor included in audit logs.
125 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
126 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
127 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
129 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
130 # and not returned in any response nor included in audit logs.
131 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
132 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700134 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
135 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
136 &quot;A String&quot;,
137 ],
138 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
139 # will be used as a default.
140 &quot;A String&quot;,
141 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
144 # refreshed by the server after each run. If unspecified, it will default
145 # to current server time, which means the scan will be scheduled to start
146 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700148 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700149 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
150 # inclusively. If the field is unspecified or its value is set 0, server will
151 # default to 15. Other values outside of [5, 20] range will be rejected with
152 # INVALID_ARGUMENT error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700153 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
154 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
155 # the value represents the number of URLs crawled up to now.
156 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
157 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
158 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
159 # the value represents the number of URLs tested up to now. The number of
160 # URLs tested is usually larger than the number URLS crawled because
161 # typically a crawled URL is tested with multiple test payloads.
162 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
163 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
164 # is either finished or stopped by user.
165 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
166 # execution state reaches &quot;FINISHED&quot;.
167 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
168 # If the scan is in queue, the value is 0.
169 # If the scan is running, the value ranges from 0 to 100.
170 # If the scan is finished, the value is 100.
171 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
172 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
173 # The ScanRun IDs are generated by the system.
174 },
175 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
176 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &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;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
193 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
194 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
196 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700197 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
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;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
201 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
202 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
204 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
205 # and not returned in any response nor included in audit logs.
206 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
207 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
210 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
211 &quot;A String&quot;,
212 ],
213 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
214 # will be used as a default.
215 &quot;A String&quot;,
216 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700217 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
219 # refreshed by the server after each run. If unspecified, it will default
220 # to current server time, which means the scan will be scheduled to start
221 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700222 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700223 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700224 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
225 # inclusively. If the field is unspecified or its value is set 0, server will
226 # default to 15. Other values outside of [5, 20] range will be rejected with
227 # INVALID_ARGUMENT error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700228 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
229 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
230 # the value represents the number of URLs crawled up to now.
231 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
232 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
233 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
234 # the value represents the number of URLs tested up to now. The number of
235 # URLs tested is usually larger than the number URLS crawled because
236 # typically a crawled URL is tested with multiple test payloads.
237 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
238 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
239 # is either finished or stopped by user.
240 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
241 # execution state reaches &quot;FINISHED&quot;.
242 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
243 # If the scan is in queue, the value is 0.
244 # If the scan is running, the value ranges from 0 to 100.
245 # If the scan is finished, the value is 100.
246 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
247 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
248 # The ScanRun IDs are generated by the system.
249 },
250 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
251 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700252 &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;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
303 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
304 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
306 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700307 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
308 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
309 # and not returned in any response nor included in audit logs.
310 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
311 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
312 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
314 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
315 # and not returned in any response nor included in audit logs.
316 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
317 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700319 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
320 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
321 &quot;A String&quot;,
322 ],
323 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
324 # will be used as a default.
325 &quot;A String&quot;,
326 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700327 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700328 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
329 # refreshed by the server after each run. If unspecified, it will default
330 # to current server time, which means the scan will be scheduled to start
331 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700332 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700333 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700334 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
335 # inclusively. If the field is unspecified or its value is set 0, server will
336 # default to 15. Other values outside of [5, 20] range will be rejected with
337 # INVALID_ARGUMENT error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700338 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
339 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
340 # the value represents the number of URLs crawled up to now.
341 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
342 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
343 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
344 # the value represents the number of URLs tested up to now. The number of
345 # URLs tested is usually larger than the number URLS crawled because
346 # typically a crawled URL is tested with multiple test payloads.
347 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
348 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
349 # is either finished or stopped by user.
350 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
351 # execution state reaches &quot;FINISHED&quot;.
352 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
353 # If the scan is in queue, the value is 0.
354 # If the scan is running, the value ranges from 0 to 100.
355 # If the scan is finished, the value is 100.
356 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
357 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
358 # The ScanRun IDs are generated by the system.
359 },
360 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
361 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700362 &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 Kimd059ad82020-07-22 17:02:09 -0700368 <code class="details" id="list">list(parent, pageSize=None, pageToken=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 Kim65020912020-05-20 12:08:20 -0700374 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
375If not specified or not positive, the implementation will select a
376reasonable value.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700377 pageToken: string, A token identifying a page of results to be returned. This should be a
378`next_page_token` value returned from a previous List request.
379If unspecified, the first page of results is returned.
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 Kim65020912020-05-20 12:08:20 -0700389 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 # next id: 12
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700392 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
394 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
395 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
397 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700398 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
399 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
400 # and not returned in any response nor included in audit logs.
401 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
402 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
403 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
405 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
406 # and not returned in any response nor included in audit logs.
407 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
408 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700410 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
411 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
412 &quot;A String&quot;,
413 ],
414 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
415 # will be used as a default.
416 &quot;A String&quot;,
417 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700418 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700419 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
420 # refreshed by the server after each run. If unspecified, it will default
421 # to current server time, which means the scan will be scheduled to start
422 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700423 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
424 },
425 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
426 # inclusively. If the field is unspecified or its value is set 0, server will
427 # default to 15. Other values outside of [5, 20] range will be rejected with
428 # INVALID_ARGUMENT error.
429 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
430 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
431 # the value represents the number of URLs crawled up to now.
432 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
433 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
434 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
435 # the value represents the number of URLs tested up to now. The number of
436 # URLs tested is usually larger than the number URLS crawled because
437 # typically a crawled URL is tested with multiple test payloads.
438 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
439 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
440 # is either finished or stopped by user.
441 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
442 # execution state reaches &quot;FINISHED&quot;.
443 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
444 # If the scan is in queue, the value is 0.
445 # If the scan is running, the value ranges from 0 to 100.
446 # If the scan is finished, the value is 100.
447 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
448 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
449 # The ScanRun IDs are generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700450 },
451 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
452 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
453 &quot;A String&quot;,
454 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700455 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700457 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
458 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 }</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;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700490 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
491 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
492 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700493 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
494 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700495 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
496 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
497 # and not returned in any response nor included in audit logs.
498 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
499 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
500 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
502 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
503 # and not returned in any response nor included in audit logs.
504 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
505 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700507 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
508 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
509 &quot;A String&quot;,
510 ],
511 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
512 # will be used as a default.
513 &quot;A String&quot;,
514 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700515 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
517 # refreshed by the server after each run. If unspecified, it will default
518 # to current server time, which means the scan will be scheduled to start
519 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700520 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700522 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
523 # inclusively. If the field is unspecified or its value is set 0, server will
524 # default to 15. Other values outside of [5, 20] range will be rejected with
525 # INVALID_ARGUMENT error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700526 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
527 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
528 # the value represents the number of URLs crawled up to now.
529 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
530 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
531 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
532 # the value represents the number of URLs tested up to now. The number of
533 # URLs tested is usually larger than the number URLS crawled because
534 # typically a crawled URL is tested with multiple test payloads.
535 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
536 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
537 # is either finished or stopped by user.
538 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
539 # execution state reaches &quot;FINISHED&quot;.
540 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
541 # If the scan is in queue, the value is 0.
542 # If the scan is running, the value ranges from 0 to 100.
543 # If the scan is finished, the value is 100.
544 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
545 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
546 # The ScanRun IDs are generated by the system.
547 },
548 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
549 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700550 &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;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700568 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
569 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
570 # generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
572 # authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
574 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
575 # and not returned in any response nor included in audit logs.
576 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
577 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
578 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700579 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
580 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
581 # and not returned in any response nor included in audit logs.
582 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
583 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700585 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
586 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
587 &quot;A String&quot;,
588 ],
589 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE
590 # will be used as a default.
591 &quot;A String&quot;,
592 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700593 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700594 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
595 # refreshed by the server after each run. If unspecified, it will default
596 # to current server time, which means the scan will be scheduled to start
597 # immediately.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700598 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700599 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
601 # inclusively. If the field is unspecified or its value is set 0, server will
602 # default to 15. Other values outside of [5, 20] range will be rejected with
603 # INVALID_ARGUMENT error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700604 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
605 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
606 # the value represents the number of URLs crawled up to now.
607 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
608 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
609 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
610 # the value represents the number of URLs tested up to now. The number of
611 # URLs tested is usually larger than the number URLS crawled because
612 # typically a crawled URL is tested with multiple test payloads.
613 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
614 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
615 # is either finished or stopped by user.
616 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
617 # execution state reaches &quot;FINISHED&quot;.
618 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
619 # If the scan is in queue, the value is 0.
620 # If the scan is running, the value ranges from 0 to 100.
621 # If the scan is finished, the value is 100.
622 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
623 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
624 # The ScanRun IDs are generated by the system.
625 },
626 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
627 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700628 &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 Kim65020912020-05-20 12:08:20 -0700655 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
656 # the value represents the number of URLs crawled up to now.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700657 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
658 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
660 # the value represents the number of URLs tested up to now. The number of
661 # URLs tested is usually larger than the number URLS crawled because
662 # typically a crawled URL is tested with multiple test payloads.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700663 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700664 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
665 # is either finished or stopped by user.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700666 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
667 # execution state reaches &quot;FINISHED&quot;.
668 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
669 # If the scan is in queue, the value is 0.
670 # If the scan is running, the value ranges from 0 to 100.
671 # If the scan is finished, the value is 100.
672 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
673 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
674 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 }</pre>
676</div>
677
678</body></html>