blob: 77fdceb6054792b65c6f171a660fa7f81aea3fa0 [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 Botc2228be2020-11-24 15:48: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 Botc2228be2020-11-24 15:48:03 -0800122 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
125 &quot;iapTestServiceAccountInfo&quot;: { # Describes authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. # Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies.
126 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 },
128 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700129 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
130 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800132 &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.
133 },
134 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
135 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
136 &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 Kim673ec5c2020-11-16 11:05:03 -0700137 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700139 &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
140 &quot;A String&quot;,
141 ],
142 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
143 &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 Botc2228be2020-11-24 15:48:03 -0800144 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
145 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
146 &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.
147 },
148 &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.
149 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
150 &quot;A String&quot;,
151 ],
152 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700153 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700154 &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 Botc2228be2020-11-24 15:48:03 -0800155 &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.
156 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
157 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700158 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800159 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
160 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
161 &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.
162 &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;.
163 &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.
164 &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.
165 &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.
166 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
167 },
168 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
169 &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.
170 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
172 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
173 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
174 },
175 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800177 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
178 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
180 &quot;A String&quot;,
181 ],
182 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184
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 Botc2228be2020-11-24 15:48:03 -0800194 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
197 &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.
198 &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 -0700199 },
200 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700201 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
202 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800204 &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.
205 },
206 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
207 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
208 &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 Kim673ec5c2020-11-16 11:05:03 -0700209 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700210 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700211 &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
212 &quot;A String&quot;,
213 ],
214 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
215 &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 Botc2228be2020-11-24 15:48:03 -0800216 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
217 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
218 &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.
219 },
220 &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.
221 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
222 &quot;A String&quot;,
223 ],
224 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700226 &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 Botc2228be2020-11-24 15:48:03 -0800227 &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.
228 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
229 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700230 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800231 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
232 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
233 &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.
234 &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;.
235 &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.
236 &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.
237 &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.
238 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
239 },
240 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
241 &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.
242 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
244 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
245 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
246 },
247 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700248 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800249 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
250 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700251 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
252 &quot;A String&quot;,
253 ],
254 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 }</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 Botc2228be2020-11-24 15:48:03 -0800291 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700292 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
294 &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.
295 &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 -0700296 },
297 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700298 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
299 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700300 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800301 &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.
302 },
303 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
304 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
305 &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 Kim673ec5c2020-11-16 11:05:03 -0700306 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700308 &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
309 &quot;A String&quot;,
310 ],
311 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
312 &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 Botc2228be2020-11-24 15:48:03 -0800313 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
314 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
315 &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.
316 },
317 &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.
318 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
319 &quot;A String&quot;,
320 ],
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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 &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 Botc2228be2020-11-24 15:48:03 -0800324 &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.
325 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
326 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700327 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800328 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
329 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
330 &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.
331 &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;.
332 &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.
333 &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.
334 &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.
335 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
336 },
337 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
338 &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.
339 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700340 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
341 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
342 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
343 },
344 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700345 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800346 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
347 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700348 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
349 &quot;A String&quot;,
350 ],
351 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700352 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353</div>
354
355<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48: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)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700361 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 Botc2228be2020-11-24 15:48: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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 { # A ScanConfig resource contains the configurations to launch a scan.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800374 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700375 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700376 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
377 &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.
378 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
379 },
380 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700381 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
382 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700383 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800384 &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.
385 },
386 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
387 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
388 &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 Kim673ec5c2020-11-16 11:05:03 -0700389 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700390 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700391 &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
392 &quot;A String&quot;,
393 ],
394 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
395 &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 Botc2228be2020-11-24 15:48:03 -0800396 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
397 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
398 &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.
399 },
400 &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.
401 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
402 &quot;A String&quot;,
403 ],
404 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700405 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700406 &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 Botc2228be2020-11-24 15:48:03 -0800407 &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.
408 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
409 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700410 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800411 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
412 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
413 &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.
414 &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;.
415 &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.
416 &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.
417 &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.
418 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
419 },
420 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
421 &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.
422 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
424 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
425 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
426 },
427 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800429 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
430 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700431 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
432 &quot;A String&quot;,
433 ],
434 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700435 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800437 &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 Kim715bd7f2019-06-14 16:50:42 -0700438 }</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 Botc2228be2020-11-24 15:48:03 -0800465 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700466 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700467 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
468 &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.
469 &quot;targetAudienceClientId&quot;: &quot;A String&quot;, # Required. Describes OAuth2 Client ID of resources protected by Identity-Aware-Proxy(IAP).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700470 },
471 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700472 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
473 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700474 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800475 &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.
476 },
477 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
478 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
479 &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 Kim673ec5c2020-11-16 11:05:03 -0700480 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700482 &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
483 &quot;A String&quot;,
484 ],
485 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
486 &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 Botc2228be2020-11-24 15:48:03 -0800487 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
488 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
489 &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.
490 },
491 &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.
492 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
493 &quot;A String&quot;,
494 ],
495 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700496 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700497 &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 Botc2228be2020-11-24 15:48:03 -0800498 &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.
499 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
500 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700501 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800502 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
503 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
504 &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.
505 &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;.
506 &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.
507 &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.
508 &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.
509 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
510 },
511 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
512 &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.
513 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700514 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
515 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
516 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
517 },
518 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700519 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800520 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
521 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700522 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
523 &quot;A String&quot;,
524 ],
525 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700526}
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 Botc2228be2020-11-24 15:48:03 -0800538 &quot;managedScan&quot;: True or False, # Whether the scan config is managed by Web Security Scanner, output only.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700539 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700540 &quot;iapCredential&quot;: { # Describes authentication configuration for Identity-Aware-Proxy (IAP). # Authentication using Identity-Aware-Proxy (IAP).
541 &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.
542 &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 -0700543 },
544 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700545 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
546 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700547 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800548 &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.
549 },
550 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
551 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
552 &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 Kim673ec5c2020-11-16 11:05:03 -0700553 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700554 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700555 &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
556 &quot;A String&quot;,
557 ],
558 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
559 &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 Botc2228be2020-11-24 15:48:03 -0800560 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
561 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
562 &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.
563 },
564 &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.
565 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
566 &quot;A String&quot;,
567 ],
568 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12 # Latest ScanRun if available.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700570 &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 Botc2228be2020-11-24 15:48:03 -0800571 &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.
572 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
573 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700574 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800575 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
576 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
577 &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.
578 &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;.
579 &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.
580 &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.
581 &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.
582 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
583 },
584 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
585 &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.
586 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700587 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
588 { # Output only. Defines a warning trace message for ScanRun. Warning traces provide customers with useful information that helps make the scanning process more effective.
589 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
590 },
591 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700592 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800593 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
594 &quot;riskLevel&quot;: &quot;A String&quot;, # The risk level selected for the scan
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700595 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
596 &quot;A String&quot;,
597 ],
598 &quot;exportToSecurityCommandCenter&quot;: &quot;A String&quot;, # Controls export of scan configurations and results to Security Command Center.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 }</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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700623 &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 Botc2228be2020-11-24 15:48:03 -0800624 &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.
625 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
626 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700627 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800628 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
629 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
630 &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.
631 &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;.
632 &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.
633 &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.
634 &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.
635 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
636 },
637 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
638 &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.
639 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700640 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700641 { # 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 -0700642 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
643 },
644 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 }</pre>
646</div>
647
648</body></html>