blob: 6f08d62ebfff14581cd23a3895336639a74df88d [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_v1alpha.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1alpha.projects.html">projects</a> . <a href="websecurityscanner_v1alpha.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1alpha.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 Botb6971b02020-11-26 17:16:03 -080095 <code><a href="#list">list(parent, pageSize=None, pageToken=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
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121{ # A ScanConfig resource contains the configurations to launch a scan. next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800122 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
123 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
124 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
125 &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.
126 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800127 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
129 &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.
130 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800131 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800132 },
133 &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
134 &quot;A String&quot;,
135 ],
136 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
137 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
138 &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.
139 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
140 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
141 &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.
142 &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.
143 &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;.
144 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
145 &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.
146 &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.
147 },
148 &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.
149 &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.
150 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
151 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
152 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately.
153 },
154 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
155 &quot;A String&quot;,
156 ],
157 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
158 &quot;A String&quot;,
159 ],
160 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
161}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162
163 x__xgafv: string, V1 error format.
164 Allowed values
165 1 - v1 error format
166 2 - v2 error format
167
168Returns:
169 An object of the form:
170
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 { # A ScanConfig resource contains the configurations to launch a scan. next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800172 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
173 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
174 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
175 &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.
176 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
177 },
178 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
179 &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.
180 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
181 },
182 },
183 &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
184 &quot;A String&quot;,
185 ],
186 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
187 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
188 &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.
189 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
190 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
191 &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.
192 &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.
193 &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;.
194 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
195 &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.
196 &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.
197 },
198 &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.
199 &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.
200 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
201 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
202 &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.
203 },
204 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
205 &quot;A String&quot;,
206 ],
207 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
208 &quot;A String&quot;,
209 ],
210 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
211}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212</div>
213
214<div class="method">
215 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
216 <pre>Deletes an existing ScanConfig and its child resources.
217
218Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700219 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 -0700220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225Returns:
226 An object of the form:
227
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700228 { # 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 `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800229}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230</div>
231
232<div class="method">
233 <code class="details" id="get">get(name, x__xgafv=None)</code>
234 <pre>Gets a ScanConfig.
235
236Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700237 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 -0700238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243Returns:
244 An object of the form:
245
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 { # A ScanConfig resource contains the configurations to launch a scan. next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800247 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
248 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
249 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
250 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs.
251 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
252 },
253 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
254 &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.
255 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
256 },
257 },
258 &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
259 &quot;A String&quot;,
260 ],
261 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
262 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
263 &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.
264 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
265 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
266 &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.
267 &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.
268 &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;.
269 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
270 &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.
271 &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.
272 },
273 &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.
274 &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.
275 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
276 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
277 &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.
278 },
279 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
280 &quot;A String&quot;,
281 ],
282 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
283 &quot;A String&quot;,
284 ],
285 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
286}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287</div>
288
289<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800290 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 <pre>Lists ScanConfigs under a given project.
292
293Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700294 parent: string, Required. The parent resource name, which should be a project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700295 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800296 pageToken: string, A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 x__xgafv: string, V1 error format.
298 Allowed values
299 1 - v1 error format
300 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301
302Returns:
303 An object of the form:
304
305 { # Response for the `ListScanConfigs` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800306 &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.
307 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
308 { # A ScanConfig resource contains the configurations to launch a scan. next id: 12
309 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
310 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
311 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
312 &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.
313 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800314 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800315 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
316 &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.
317 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
318 },
319 },
320 &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
321 &quot;A String&quot;,
322 ],
323 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
324 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
325 &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.
326 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
327 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
328 &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.
329 &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.
330 &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;.
331 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
332 &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.
333 &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.
334 },
335 &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.
336 &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.
337 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
338 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
339 &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.
340 },
341 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
342 &quot;A String&quot;,
343 ],
344 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
345 &quot;A String&quot;,
346 ],
347 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
348 },
349 ],
350}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700351</div>
352
353<div class="method">
354 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
355 <pre>Retrieves the next page of results.
356
357Args:
358 previous_request: The request for the previous page. (required)
359 previous_response: The response from the request for the previous page. (required)
360
361Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363 page. Returns None if there are no more items in the collection.
364 </pre>
365</div>
366
367<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700368 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
370
371Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700372 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 -0700373 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 The object takes the form of:
375
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700376{ # A ScanConfig resource contains the configurations to launch a scan. next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800377 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
378 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
379 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
380 &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.
381 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800382 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
384 &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.
385 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800386 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 },
388 &quot;blacklistPatterns&quot;: [ # The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
389 &quot;A String&quot;,
390 ],
391 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
392 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
393 &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.
394 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
395 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
396 &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.
397 &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.
398 &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;.
399 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
400 &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.
401 &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.
402 },
403 &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.
404 &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.
405 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
406 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
407 &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.
408 },
409 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
410 &quot;A String&quot;,
411 ],
412 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
413 &quot;A String&quot;,
414 ],
415 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
416}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700418 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 Kim715bd7f2019-06-14 16:50:42 -0700419 x__xgafv: string, V1 error format.
420 Allowed values
421 1 - v1 error format
422 2 - v2 error format
423
424Returns:
425 An object of the form:
426
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427 { # A ScanConfig resource contains the configurations to launch a scan. next id: 12
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800428 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the authentication configuration during scanning.
429 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
430 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
431 &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.
432 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
433 },
434 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
435 &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.
436 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
437 },
438 },
439 &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
440 &quot;A String&quot;,
441 ],
442 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
443 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
444 &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.
445 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
446 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
447 &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.
448 &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.
449 &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;.
450 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
451 &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.
452 &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.
453 },
454 &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.
455 &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.
456 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
457 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
458 &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.
459 },
460 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
461 &quot;A String&quot;,
462 ],
463 &quot;targetPlatforms&quot;: [ # Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
464 &quot;A String&quot;,
465 ],
466 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
467}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700468</div>
469
470<div class="method">
471 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
472 <pre>Start a ScanRun according to the given ScanConfig.
473
474Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 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 -0700476 body: object, The request body.
477 The object takes the form of:
478
479{ # Request for the `StartScanRun` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800480}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700481
482 x__xgafv: string, V1 error format.
483 Allowed values
484 1 - v1 error format
485 2 - v2 error format
486
487Returns:
488 An object of the form:
489
490 { # A ScanRun is a output-only resource representing an actual run of the scan.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800491 &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.
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;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.
495 &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.
496 &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;.
497 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
498 &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.
499 &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.
500}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501</div>
502
503</body></html>