blob: 35ab418442a30e86749a8c94a14e5532e2ecc606 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070086 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Creates a new ScanConfig.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets a ScanConfig.</p>
94<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070096<p class="firstline">Lists ScanConfigs under a given project.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
103<p class="toc_element">
104 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
105<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
106<h3>Method Details</h3>
107<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110</div>
111
112<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
114 <pre>Creates a new ScanConfig.
115
116Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 parent: string, Required. The parent resource name where the scan is created, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 body: object, The request body.
119 The object takes the form of:
120
121{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800122 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
123 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
124 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
125 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
126 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
127 },
128 },
129 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
130 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
131 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
132 },
133 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
134 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
135 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
136 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 },
138 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800139 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
140 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
141 &quot;A String&quot;,
142 ],
143 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
144 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
145 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
146 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
147 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
148 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
149 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
150 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800152 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
153 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
154 &quot;A String&quot;,
155 ],
156 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700157
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163Returns:
164 An object of the form:
165
166 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800167 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
168 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
169 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
170 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
171 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
172 },
173 },
174 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
175 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
176 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
177 },
178 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
179 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
180 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
181 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 },
183 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800184 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
185 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
186 &quot;A String&quot;,
187 ],
188 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
189 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
190 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
191 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
192 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
193 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
194 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
195 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800197 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
198 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
199 &quot;A String&quot;,
200 ],
201 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700202</div>
203
204<div class="method">
205 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
206 <pre>Deletes an existing ScanConfig and its child resources.
207
208Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215Returns:
216 An object of the form:
217
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700218 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 }</pre>
220</div>
221
222<div class="method">
223 <code class="details" id="get">get(name, x__xgafv=None)</code>
224 <pre>Gets a ScanConfig.
225
226Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233Returns:
234 An object of the form:
235
236 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800237 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
238 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
239 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
240 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
241 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
242 },
243 },
244 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
245 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
246 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
247 },
248 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
249 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
250 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
251 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 },
253 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800254 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
255 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
256 &quot;A String&quot;,
257 ],
258 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
259 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
260 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
261 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
262 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
263 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
264 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
265 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700266 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800267 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
268 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
269 &quot;A String&quot;,
270 ],
271 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700272</div>
273
274<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700275 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700276 <pre>Lists ScanConfigs under a given project.
277
278Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700279 parent: string, Required. The parent resource name, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
280 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
281 pageToken: string, A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 x__xgafv: string, V1 error format.
283 Allowed values
284 1 - v1 error format
285 2 - v2 error format
286
287Returns:
288 An object of the form:
289
290 { # Response for the `ListScanConfigs` method.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800291 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
293 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800294 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
295 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
296 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
297 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
298 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
299 },
300 },
301 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
302 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
303 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
304 },
305 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
306 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
307 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
308 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700309 },
310 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800311 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
312 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
313 &quot;A String&quot;,
314 ],
315 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
316 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
317 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
318 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
319 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
320 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
321 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
322 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800324 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
325 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
326 &quot;A String&quot;,
327 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700328 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 ],
330 }</pre>
331</div>
332
333<div class="method">
334 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
335 <pre>Retrieves the next page of results.
336
337Args:
338 previous_request: The request for the previous page. (required)
339 previous_response: The response from the request for the previous page. (required)
340
341Returns:
342 A request object that you can call &#x27;execute()&#x27; on to request the next
343 page. Returns None if there are no more items in the collection.
344 </pre>
345</div>
346
347<div class="method">
348 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
349 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
350
351Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700352 name: string, The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 body: object, The request body.
354 The object takes the form of:
355
356{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800357 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
358 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
359 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
360 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
361 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
362 },
363 },
364 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
365 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
366 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
367 },
368 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
369 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
370 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
371 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 },
373 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800374 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
375 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
376 &quot;A String&quot;,
377 ],
378 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
379 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
380 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
381 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
382 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
383 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
384 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
385 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700386 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800387 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
388 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
389 &quot;A String&quot;,
390 ],
391 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700392
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700393 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 x__xgafv: string, V1 error format.
395 Allowed values
396 1 - v1 error format
397 2 - v2 error format
398
399Returns:
400 An object of the form:
401
402 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800403 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
404 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
405 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
406 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
407 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
408 },
409 },
410 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
411 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
412 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.
413 },
414 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
415 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
416 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
417 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 },
419 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800420 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
421 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
422 &quot;A String&quot;,
423 ],
424 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
425 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
426 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
427 &quot;staticIpScan&quot;: True or False, # Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
428 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are generated by the system.
429 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
430 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
431 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700432 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800433 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
434 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
435 &quot;A String&quot;,
436 ],
437 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700438</div>
439
440<div class="method">
441 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
442 <pre>Start a ScanRun according to the given ScanConfig.
443
444Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700445 name: string, Required. The resource name of the ScanConfig to be used. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 body: object, The request body.
447 The object takes the form of:
448
449{ # Request for the `StartScanRun` method.
450 }
451
452 x__xgafv: string, V1 error format.
453 Allowed values
454 1 - v1 error format
455 2 - v2 error format
456
457Returns:
458 An object of the form:
459
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700461 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700462 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800463 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. The ScanRun IDs are generated by the system.
464 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700465 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700466 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700467 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700468 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
469 },
470 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700471 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.
472 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800473 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
474 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
475 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # Output only. If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
476 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
477 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
478 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails. It is also reported as part of a ScanRunErrorTrace message if scan validation fails due to a scan configuration error. # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
479 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error, for example &quot;scan_config.max_qps&quot;. This field is provided for troubleshooting purposes only and its actual value can change in the future.
480 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
481 },
482 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 }</pre>
484</div>
485
486</body></html>