blob: 1dd0f2060aaabc6156c91b50ca03ec1b86648724 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="websecurityscanner_v1beta.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1beta.projects.html">projects</a> . <a href="websecurityscanner_v1beta.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1beta.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">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080095 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 <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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800122 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800123 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800124 &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.
125 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
126 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
127 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
128 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
129 &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.
130 },
131 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
132 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
133 &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.
134 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800135 },
136 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800137 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
138 &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.
139 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
140 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
141 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800142 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
143 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
144 &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.
145 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &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.
148 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
149 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
150 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
151 &quot;progressPercent&quot;: 42, # 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.
152 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
153 &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. # 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.
154 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
155 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
156 },
157 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
158 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
159 },
160 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
161 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
162 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
163 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
164 },
165 ],
166 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
167 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
168 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
169 &quot;name&quot;: &quot;A String&quot;, # 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.
170 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
171 },
172 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
173 &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
174 &quot;A String&quot;,
175 ],
176 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
177 &quot;A String&quot;,
178 ],
179 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
180 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
181 &quot;A String&quot;,
182 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800183 }
184
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190Returns:
191 An object of the form:
192
193 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800194 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800195 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800196 &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.
197 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
198 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
199 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
200 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
201 &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.
202 },
203 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
204 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
205 &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.
206 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800207 },
208 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800209 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
210 &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.
211 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
212 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
213 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
215 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
216 &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.
217 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800218 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800219 &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.
220 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
221 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
222 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
223 &quot;progressPercent&quot;: 42, # 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.
224 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
225 &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. # 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.
226 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
227 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
228 },
229 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
230 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
231 },
232 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
233 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
234 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
235 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
236 },
237 ],
238 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
239 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
240 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
241 &quot;name&quot;: &quot;A String&quot;, # 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.
242 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
243 },
244 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
245 &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
246 &quot;A String&quot;,
247 ],
248 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
249 &quot;A String&quot;,
250 ],
251 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
252 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
253 &quot;A String&quot;,
254 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800255 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700256</div>
257
258<div class="method">
259 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
260 <pre>Deletes an existing ScanConfig and its child resources.
261
262Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700263 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 Kim715bd7f2019-06-14 16:50:42 -0700264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
268
269Returns:
270 An object of the form:
271
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700272 { # 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 Kim715bd7f2019-06-14 16:50:42 -0700273 }</pre>
274</div>
275
276<div class="method">
277 <code class="details" id="get">get(name, x__xgafv=None)</code>
278 <pre>Gets a ScanConfig.
279
280Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700281 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 Kim715bd7f2019-06-14 16:50:42 -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 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800291 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800292 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 &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.
294 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
295 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
296 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
297 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
298 &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.
299 },
300 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
301 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
302 &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.
303 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800304 },
305 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800306 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
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.
309 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
310 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800311 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
312 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
313 &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.
314 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800315 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800316 &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.
317 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
318 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
319 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
320 &quot;progressPercent&quot;: 42, # 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.
321 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
322 &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. # 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.
323 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
324 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
325 },
326 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
327 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
328 },
329 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
330 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
331 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
332 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
333 },
334 ],
335 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
336 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
337 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
338 &quot;name&quot;: &quot;A String&quot;, # 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.
339 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
340 },
341 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
342 &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
343 &quot;A String&quot;,
344 ],
345 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
346 &quot;A String&quot;,
347 ],
348 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
349 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
350 &quot;A String&quot;,
351 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800352 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353</div>
354
355<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800356 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 <pre>Lists ScanConfigs under a given project.
358
359Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700360 parent: string, Required. The parent resource name, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800361 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800362 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700367
368Returns:
369 An object of the form:
370
371 { # Response for the `ListScanConfigs` method.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800372 &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 -0700373 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800375 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800376 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800377 &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.
378 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
379 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
380 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
381 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
382 &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.
383 },
384 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
385 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
386 &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.
387 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800388 },
389 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800390 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
391 &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.
392 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
393 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
394 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800395 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
396 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
397 &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.
398 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700399 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800400 &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.
401 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
402 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
403 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
404 &quot;progressPercent&quot;: 42, # 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.
405 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
406 &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. # 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.
407 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
408 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
409 },
410 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
411 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
412 },
413 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
414 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
415 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
416 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
417 },
418 ],
419 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
420 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
421 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
422 &quot;name&quot;: &quot;A String&quot;, # 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.
423 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
424 },
425 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
426 &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
427 &quot;A String&quot;,
428 ],
429 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
430 &quot;A String&quot;,
431 ],
432 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
433 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
434 &quot;A String&quot;,
435 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700436 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700437 ],
438 }</pre>
439</div>
440
441<div class="method">
442 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
443 <pre>Retrieves the next page of results.
444
445Args:
446 previous_request: The request for the previous page. (required)
447 previous_response: The response from the request for the previous page. (required)
448
449Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 page. Returns None if there are no more items in the collection.
452 </pre>
453</div>
454
455<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700456 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700457 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
458
459Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700461 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 The object takes the form of:
463
464{ # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800465 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800466 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800467 &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.
468 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
469 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
470 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
471 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
472 &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.
473 },
474 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
475 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
476 &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.
477 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800478 },
479 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800480 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
481 &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.
482 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
483 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
484 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800485 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
486 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
487 &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.
488 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800489 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800490 &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.
491 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
492 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
493 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
494 &quot;progressPercent&quot;: 42, # 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.
495 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
496 &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. # 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.
497 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
498 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
499 },
500 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
501 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
502 },
503 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
504 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
505 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
506 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
507 },
508 ],
509 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
510 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
511 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
512 &quot;name&quot;: &quot;A String&quot;, # 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.
513 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
514 },
515 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
516 &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
517 &quot;A String&quot;,
518 ],
519 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
520 &quot;A String&quot;,
521 ],
522 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
523 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
524 &quot;A String&quot;,
525 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800526 }
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700527
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700528 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 Kimd059ad82020-07-22 17:02:09 -0700529 x__xgafv: string, V1 error format.
530 Allowed values
531 1 - v1 error format
532 2 - v2 error format
533
534Returns:
535 An object of the form:
536
537 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800538 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800539 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800540 &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.
541 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
542 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
543 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
544 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
545 &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.
546 },
547 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
548 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
549 &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.
550 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800551 },
552 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800553 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
554 &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.
555 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
556 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
557 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800558 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
559 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
560 &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.
561 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800562 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800563 &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.
564 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
565 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
566 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
567 &quot;progressPercent&quot;: 42, # 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.
568 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
569 &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. # 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.
570 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
571 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
572 },
573 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
574 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
575 },
576 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
577 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
578 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
579 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
580 },
581 ],
582 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
583 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
584 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
585 &quot;name&quot;: &quot;A String&quot;, # 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.
586 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
587 },
588 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
589 &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
590 &quot;A String&quot;,
591 ],
592 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
593 &quot;A String&quot;,
594 ],
595 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
596 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
597 &quot;A String&quot;,
598 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800599 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600</div>
601
602<div class="method">
603 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
604 <pre>Start a ScanRun according to the given ScanConfig.
605
606Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700607 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 Kim715bd7f2019-06-14 16:50:42 -0700608 body: object, The request body.
609 The object takes the form of:
610
611{ # Request for the `StartScanRun` method.
612 }
613
614 x__xgafv: string, V1 error format.
615 Allowed values
616 1 - v1 error format
617 2 - v2 error format
618
619Returns:
620 An object of the form:
621
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700622 { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800623 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800624 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
625 &quot;progressPercent&quot;: 42, # 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.
626 &quot;errorTrace&quot;: { # Output only. Defines an error trace message for a ScanRun. # If result_state is an ERROR, this field provides the primary reason for scan&#x27;s termination and more details, if such are available.
627 &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. # 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.
628 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
629 &quot;fieldName&quot;: &quot;A String&quot;, # 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.
630 },
631 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
632 &quot;mostCommonHttpErrorCode&quot;: 42, # 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.
633 },
634 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the execution state reaches &quot;FINISHED&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700635 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700636 { # 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 Kimd059ad82020-07-22 17:02:09 -0700637 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
638 },
639 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800640 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800641 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800642 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800643 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800644 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 }</pre>
646</div>
647
648</body></html>