blob: 3824a361bc11679d54427441fc02f21ca2a7cfe1 [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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
123 &quot;A String&quot;,
124 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 &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.
126 &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
127 &quot;A String&quot;,
128 ],
129 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131 &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.
132 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 },
134 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
136 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
137 &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.
138 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
139 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
141 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 },
144 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 &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.
146 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
147 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
148 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
149 &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.
150 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
151 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
152 &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.
153 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
154 },
155 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700156 }
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
168 &quot;A String&quot;,
169 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 &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.
171 &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
172 &quot;A String&quot;,
173 ],
174 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 &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.
177 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700178 },
179 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
181 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
182 &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.
183 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
184 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
186 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 },
189 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 &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.
191 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
192 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
193 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
194 &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.
195 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
196 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
197 &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.
198 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
199 },
200 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700201 }</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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700237 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
238 &quot;A String&quot;,
239 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700240 &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.
241 &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
242 &quot;A String&quot;,
243 ],
244 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700245 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 &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.
247 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700248 },
249 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700250 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
251 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
252 &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.
253 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
254 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
256 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700257 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 },
259 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 &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.
261 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
262 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
263 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
264 &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.
265 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
266 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
267 &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.
268 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
269 },
270 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 }</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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700291 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
295 &quot;A String&quot;,
296 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700297 &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.
298 &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
299 &quot;A String&quot;,
300 ],
301 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700302 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700303 &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.
304 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 },
306 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
308 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
309 &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.
310 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
311 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700312 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
313 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700314 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 },
316 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700317 &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.
318 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
319 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
320 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
321 &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.
322 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
323 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
324 &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.
325 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
326 },
327 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kim65020912020-05-20 12:08:20 -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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
358 &quot;A String&quot;,
359 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700360 &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.
361 &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
362 &quot;A String&quot;,
363 ],
364 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700365 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700366 &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.
367 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700368 },
369 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700370 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
371 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
372 &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.
373 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
374 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700375 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
376 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700377 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 },
379 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700380 &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.
381 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
382 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
383 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
384 &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.
385 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
386 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
387 &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.
388 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
389 },
390 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700391 }
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700403 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
404 &quot;A String&quot;,
405 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700406 &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.
407 &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
408 &quot;A String&quot;,
409 ],
410 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700411 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700412 &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.
413 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700414 },
415 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700416 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
417 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
418 &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.
419 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
420 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700421 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
422 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 },
425 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700426 &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.
427 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
428 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
429 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
430 &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.
431 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
432 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
433 &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.
434 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
435 },
436 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700437 }</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
461 &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.
462 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
463 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
464 &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.
465 &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.
466 &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.
467 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
468 &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.
469 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700470 &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 -0700471 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700473 &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.
474 &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.
475 &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.
476 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700477 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700478 { # 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 -0700479 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
480 },
481 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700482 &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 Kim65020912020-05-20 12:08:20 -0700483 }</pre>
484</div>
485
486</body></html>