blob: f48949d42e77d7224c7fccbe8a02e1e260174716 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="websecurityscanner_v1.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1.projects.html">projects</a> . <a href="websecurityscanner_v1.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.html">scanRuns()</a></code>
79</p>
80<p class="firstline">Returns the scanRuns Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Creates a new ScanConfig.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets a ScanConfig.</p>
91<p class="toc_element">
92 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Lists ScanConfigs under a given project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
98 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
100<p class="toc_element">
101 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
103<h3>Method Details</h3>
104<div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a new ScanConfig.
107
108Args:
109 parent: string, Required. The parent resource name where the scan is created, which should be a
110project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700115 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
117 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
118 # refreshed by the server after each run. If unspecified, it will default
119 # to current server time, which means the scan will be scheduled to start
120 # immediately.
121 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
122 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
124 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
126 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
127 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
128 # and not returned in any response nor included in audit logs.
129 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
130 },
131 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
132 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
133 # and not returned in any response nor included in audit logs.
134 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
135 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700136 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
137 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
138 # account is added in Identity-Aware-Proxy (IAP) access policies.
139 # service account is added in Identity-Aware-Proxy (IAP) access policies.
140 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
141 # Identity-Aware-Proxy (IAP).
142 },
143 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
146 &quot;A String&quot;,
147 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700148 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
149 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
150 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
151 &quot;A String&quot;,
152 ],
153 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
154 # only.
155 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
156 # inclusively. If the field is unspecified or its value is set 0, server will
157 # default to 15. Other values outside of [5, 20] range will be rejected with
158 # INVALID_ARGUMENT error.
159 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
160 # Command Center.
161 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
163 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
164 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700165 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
166 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167}
168
169 x__xgafv: string, V1 error format.
170 Allowed values
171 1 - v1 error format
172 2 - v2 error format
173
174Returns:
175 An object of the form:
176
177 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700178 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
180 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
181 # refreshed by the server after each run. If unspecified, it will default
182 # to current server time, which means the scan will be scheduled to start
183 # immediately.
184 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
185 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
187 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700188 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
189 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
190 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
191 # and not returned in any response nor included in audit logs.
192 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
193 },
194 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
195 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
196 # and not returned in any response nor included in audit logs.
197 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
198 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
200 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
201 # account is added in Identity-Aware-Proxy (IAP) access policies.
202 # service account is added in Identity-Aware-Proxy (IAP) access policies.
203 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
204 # Identity-Aware-Proxy (IAP).
205 },
206 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
209 &quot;A String&quot;,
210 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700211 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
212 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
213 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
214 &quot;A String&quot;,
215 ],
216 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
217 # only.
218 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
219 # inclusively. If the field is unspecified or its value is set 0, server will
220 # default to 15. Other values outside of [5, 20] range will be rejected with
221 # INVALID_ARGUMENT error.
222 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
223 # Command Center.
224 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
226 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
227 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
229 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 }</pre>
231</div>
232
233<div class="method">
234 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
235 <pre>Deletes an existing ScanConfig and its child resources.
236
237Args:
238 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the
239format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245Returns:
246 An object of the form:
247
248 { # A generic empty message that you can re-use to avoid defining duplicated
249 # empty messages in your APIs. A typical example is to use it as the request
250 # or the response type of an API method. For instance:
251 #
252 # service Foo {
253 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
254 # }
255 #
256 # The JSON representation for `Empty` is empty JSON object `{}`.
257 }</pre>
258</div>
259
260<div class="method">
261 <code class="details" id="get">get(name, x__xgafv=None)</code>
262 <pre>Gets a ScanConfig.
263
264Args:
265 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the
266format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
267 x__xgafv: string, V1 error format.
268 Allowed values
269 1 - v1 error format
270 2 - v2 error format
271
272Returns:
273 An object of the form:
274
275 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700276 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
278 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
279 # refreshed by the server after each run. If unspecified, it will default
280 # to current server time, which means the scan will be scheduled to start
281 # immediately.
282 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
283 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
285 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700286 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
287 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
288 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
289 # and not returned in any response nor included in audit logs.
290 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
291 },
292 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
293 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
294 # and not returned in any response nor included in audit logs.
295 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
298 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
299 # account is added in Identity-Aware-Proxy (IAP) access policies.
300 # service account is added in Identity-Aware-Proxy (IAP) access policies.
301 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
302 # Identity-Aware-Proxy (IAP).
303 },
304 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
307 &quot;A String&quot;,
308 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700309 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
310 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
311 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
312 &quot;A String&quot;,
313 ],
314 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
315 # only.
316 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
317 # inclusively. If the field is unspecified or its value is set 0, server will
318 # default to 15. Other values outside of [5, 20] range will be rejected with
319 # INVALID_ARGUMENT error.
320 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
321 # Command Center.
322 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
324 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
325 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700326 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
327 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 }</pre>
329</div>
330
331<div class="method">
332 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
333 <pre>Lists ScanConfigs under a given project.
334
335Args:
336 parent: string, Required. The parent resource name, which should be a project resource name in the
337format &#x27;projects/{projectId}&#x27;. (required)
338 pageToken: string, A token identifying a page of results to be returned. This should be a
339`next_page_token` value returned from a previous List request.
340If unspecified, the first page of results is returned.
341 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
342If not specified or not positive, the implementation will select a
343reasonable value.
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348
349Returns:
350 An object of the form:
351
352 { # Response for the `ListScanConfigs` method.
353 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
354 # more results in the list.
355 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
356 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700357 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
359 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
360 # refreshed by the server after each run. If unspecified, it will default
361 # to current server time, which means the scan will be scheduled to start
362 # immediately.
363 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
364 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
366 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700367 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
368 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
369 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
370 # and not returned in any response nor included in audit logs.
371 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
372 },
373 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
374 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
375 # and not returned in any response nor included in audit logs.
376 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
377 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
379 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
380 # account is added in Identity-Aware-Proxy (IAP) access policies.
381 # service account is added in Identity-Aware-Proxy (IAP) access policies.
382 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
383 # Identity-Aware-Proxy (IAP).
384 },
385 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
388 &quot;A String&quot;,
389 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700390 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
391 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
392 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
393 &quot;A String&quot;,
394 ],
395 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
396 # only.
397 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
398 # inclusively. If the field is unspecified or its value is set 0, server will
399 # default to 15. Other values outside of [5, 20] range will be rejected with
400 # INVALID_ARGUMENT error.
401 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
402 # Command Center.
403 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
405 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
406 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700407 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
408 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 },
410 ],
411 }</pre>
412</div>
413
414<div class="method">
415 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
416 <pre>Retrieves the next page of results.
417
418Args:
419 previous_request: The request for the previous page. (required)
420 previous_response: The response from the request for the previous page. (required)
421
422Returns:
423 A request object that you can call &#x27;execute()&#x27; on to request the next
424 page. Returns None if there are no more items in the collection.
425 </pre>
426</div>
427
428<div class="method">
429 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
430 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
431
432Args:
433 name: string, The resource name of the ScanConfig. The name follows the format of
434&#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
435generated by the system. (required)
436 body: object, The request body.
437 The object takes the form of:
438
439{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700440 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
442 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
443 # refreshed by the server after each run. If unspecified, it will default
444 # to current server time, which means the scan will be scheduled to start
445 # immediately.
446 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
447 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
449 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700450 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
451 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
452 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
453 # and not returned in any response nor included in audit logs.
454 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
455 },
456 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
457 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
458 # and not returned in any response nor included in audit logs.
459 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
460 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
462 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
463 # account is added in Identity-Aware-Proxy (IAP) access policies.
464 # service account is added in Identity-Aware-Proxy (IAP) access policies.
465 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
466 # Identity-Aware-Proxy (IAP).
467 },
468 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700470 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
471 &quot;A String&quot;,
472 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700473 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
474 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
475 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
476 &quot;A String&quot;,
477 ],
478 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
479 # only.
480 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
481 # inclusively. If the field is unspecified or its value is set 0, server will
482 # default to 15. Other values outside of [5, 20] range will be rejected with
483 # INVALID_ARGUMENT error.
484 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
485 # Command Center.
486 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700487 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
488 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
489 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700490 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
491 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492}
493
494 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
495see
496https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
497 x__xgafv: string, V1 error format.
498 Allowed values
499 1 - v1 error format
500 2 - v2 error format
501
502Returns:
503 An object of the form:
504
505 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700506 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
508 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
509 # refreshed by the server after each run. If unspecified, it will default
510 # to current server time, which means the scan will be scheduled to start
511 # immediately.
512 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
513 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700514 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
515 # authentication configuration during scanning.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
517 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
518 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
519 # and not returned in any response nor included in audit logs.
520 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
521 },
522 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
523 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
524 # and not returned in any response nor included in audit logs.
525 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
526 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700527 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
528 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner # Authentication configuration when Web-Security-Scanner service
529 # account is added in Identity-Aware-Proxy (IAP) access policies.
530 # service account is added in Identity-Aware-Proxy (IAP) access policies.
531 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by
532 # Identity-Aware-Proxy (IAP).
533 },
534 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700535 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
537 &quot;A String&quot;,
538 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700539 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
540 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in
541 # https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
542 &quot;A String&quot;,
543 ],
544 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output
545 # only.
546 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
547 # inclusively. If the field is unspecified or its value is set 0, server will
548 # default to 15. Other values outside of [5, 20] range will be rejected with
549 # INVALID_ARGUMENT error.
550 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security
551 # Command Center.
552 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
554 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
555 # generated by the system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700556 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature.
557 # If enabled, the scanner will access applications from static IP addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 }</pre>
559</div>
560
561<div class="method">
562 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
563 <pre>Start a ScanRun according to the given ScanConfig.
564
565Args:
566 name: string, Required. The resource name of the ScanConfig to be used. The name follows the
567format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
568 body: object, The request body.
569 The object takes the form of:
570
571{ # Request for the `StartScanRun` method.
572 }
573
574 x__xgafv: string, V1 error format.
575 Allowed values
576 1 - v1 error format
577 2 - v2 error format
578
579Returns:
580 An object of the form:
581
582 { # A ScanRun is a output-only resource representing an actual run of the scan.
583 # Next id: 12
Bu Sun Kim65020912020-05-20 12:08:20 -0700584 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
585 # scan&#x27;s termination and more details, if such are available.
586 # Defines an error trace message for a ScanRun.
587 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
588 # message encountered during scan configuration validation that is performed
589 # before each scan run.
590 # APIs when scan configuration validation fails. It is also reported as part of
591 # a ScanRunErrorTrace message if scan validation fails due to a scan
592 # configuration error.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700593 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
Bu Sun Kim65020912020-05-20 12:08:20 -0700594 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
595 # for example &quot;scan_config.max_qps&quot;. This field is provided for
596 # troubleshooting purposes only and its actual value can change in the
597 # future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700599 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
601 # common HTTP error code, if such is available. For example, if this code is
602 # 404, the scan has encountered too many NOT_FOUND responses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700604 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
605 # the value represents the number of URLs tested up to now. The number of
606 # URLs tested is usually larger than the number URLS crawled because
607 # typically a crawled URL is tested with multiple test payloads.
608 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
609 # the value represents the number of URLs crawled up to now.
610 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
611 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
612 # If the scan is in queue, the value is 0.
613 # If the scan is running, the value ranges from 0 to 100.
614 # If the scan is finished, the value is 100.
615 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
616 # is either finished or stopped by user.
617 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
618 { # Output only.
619 # Defines a warning trace message for ScanRun. Warning traces provide customers
620 # with useful information that helps make the scanning process more effective.
621 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
622 },
623 ],
624 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
625 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
626 # execution state reaches &quot;FINISHED&quot;.
627 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
628 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
629 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
630 # The ScanRun IDs are generated by the system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700631 }</pre>
632</div>
633
634</body></html>