blob: 4499c162c5dace23179fa4fb5b21292ece399d27 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="websecurityscanner_v1.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1.projects.html">projects</a> . <a href="websecurityscanner_v1.projects.scanConfigs.html">scanConfigs</a> . <a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.html">scanRuns</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.crawledUrls.html">crawledUrls()</a></code>
79</p>
80<p class="firstline">Returns the crawledUrls Resource.</p>
81
82<p class="toc_element">
83 <code><a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.findingTypeStats.html">findingTypeStats()</a></code>
84</p>
85<p class="firstline">Returns the findingTypeStats Resource.</p>
86
87<p class="toc_element">
88 <code><a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.findings.html">findings()</a></code>
89</p>
90<p class="firstline">Returns the findings Resource.</p>
91
92<p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets a ScanRun.</p>
95<p class="toc_element">
96 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Lists ScanRuns under a given ScanConfig, in descending order of ScanRun</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Stops a ScanRun. The stopped ScanRun is returned.</p>
104<h3>Method Details</h3>
105<div class="method">
106 <code class="details" id="get">get(name, x__xgafv=None)</code>
107 <pre>Gets a ScanRun.
108
109Args:
110 name: string, Required. The resource name of the ScanRun to be returned. The name follows the
111format of
112&#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
113 x__xgafv: string, V1 error format.
114 Allowed values
115 1 - v1 error format
116 2 - v2 error format
117
118Returns:
119 An object of the form:
120
121 { # A ScanRun is a output-only resource representing an actual run of the scan.
122 # Next id: 12
123 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
124 # If the scan is in queue, the value is 0.
125 # If the scan is running, the value ranges from 0 to 100.
126 # If the scan is finished, the value is 100.
127 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
128 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
129 # is either finished or stopped by user.
130 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
131 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
132 # the value represents the number of URLs crawled up to now.
133 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
134 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
135 # the value represents the number of URLs tested up to now. The number of
136 # URLs tested is usually larger than the number URLS crawled because
137 # typically a crawled URL is tested with multiple test payloads.
138 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
139 { # Output only.
140 # Defines a warning trace message for ScanRun. Warning traces provide customers
141 # with useful information that helps make the scanning process more effective.
142 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
143 },
144 ],
145 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
146 # execution state reaches &quot;FINISHED&quot;.
147 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
148 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
149 # The ScanRun IDs are generated by the system.
150 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
151 # scan&#x27;s termination and more details, if such are available.
152 # Defines an error trace message for a ScanRun.
153 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
154 # message encountered during scan configuration validation that is performed
155 # before each scan run.
156 # APIs when scan configuration validation fails. It is also reported as part of
157 # a ScanRunErrorTrace message if scan validation fails due to a scan
158 # configuration error.
159 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
160 # for example &quot;scan_config.max_qps&quot;. This field is provided for
161 # troubleshooting purposes only and its actual value can change in the
162 # future.
163 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
164 },
165 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
166 # common HTTP error code, if such is available. For example, if this code is
167 # 404, the scan has encountered too many NOT_FOUND responses.
168 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
169 },
170 }</pre>
171</div>
172
173<div class="method">
174 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
175 <pre>Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
176stop time.
177
178Args:
179 parent: string, Required. The parent resource name, which should be a scan resource name in the
180format &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
181 pageToken: string, A token identifying a page of results to be returned. This should be a
182`next_page_token` value returned from a previous List request.
183If unspecified, the first page of results is returned.
184 pageSize: integer, The maximum number of ScanRuns to return, can be limited by server.
185If not specified or not positive, the implementation will select a
186reasonable value.
187 x__xgafv: string, V1 error format.
188 Allowed values
189 1 - v1 error format
190 2 - v2 error format
191
192Returns:
193 An object of the form:
194
195 { # Response for the `ListScanRuns` method.
196 &quot;scanRuns&quot;: [ # The list of ScanRuns returned.
197 { # A ScanRun is a output-only resource representing an actual run of the scan.
198 # Next id: 12
199 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
200 # If the scan is in queue, the value is 0.
201 # If the scan is running, the value ranges from 0 to 100.
202 # If the scan is finished, the value is 100.
203 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
204 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
205 # is either finished or stopped by user.
206 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
207 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
208 # the value represents the number of URLs crawled up to now.
209 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
210 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
211 # the value represents the number of URLs tested up to now. The number of
212 # URLs tested is usually larger than the number URLS crawled because
213 # typically a crawled URL is tested with multiple test payloads.
214 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
215 { # Output only.
216 # Defines a warning trace message for ScanRun. Warning traces provide customers
217 # with useful information that helps make the scanning process more effective.
218 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
219 },
220 ],
221 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
222 # execution state reaches &quot;FINISHED&quot;.
223 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
224 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
225 # The ScanRun IDs are generated by the system.
226 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
227 # scan&#x27;s termination and more details, if such are available.
228 # Defines an error trace message for a ScanRun.
229 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
230 # message encountered during scan configuration validation that is performed
231 # before each scan run.
232 # APIs when scan configuration validation fails. It is also reported as part of
233 # a ScanRunErrorTrace message if scan validation fails due to a scan
234 # configuration error.
235 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
236 # for example &quot;scan_config.max_qps&quot;. This field is provided for
237 # troubleshooting purposes only and its actual value can change in the
238 # future.
239 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
240 },
241 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
242 # common HTTP error code, if such is available. For example, if this code is
243 # 404, the scan has encountered too many NOT_FOUND responses.
244 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
245 },
246 },
247 ],
248 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
249 # more results in the list.
250 }</pre>
251</div>
252
253<div class="method">
254 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
255 <pre>Retrieves the next page of results.
256
257Args:
258 previous_request: The request for the previous page. (required)
259 previous_response: The response from the request for the previous page. (required)
260
261Returns:
262 A request object that you can call &#x27;execute()&#x27; on to request the next
263 page. Returns None if there are no more items in the collection.
264 </pre>
265</div>
266
267<div class="method">
268 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
269 <pre>Stops a ScanRun. The stopped ScanRun is returned.
270
271Args:
272 name: string, Required. The resource name of the ScanRun to be stopped. The name follows the
273format of
274&#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
275 body: object, The request body.
276 The object takes the form of:
277
278{ # Request for the `StopScanRun` method.
279 }
280
281 x__xgafv: string, V1 error format.
282 Allowed values
283 1 - v1 error format
284 2 - v2 error format
285
286Returns:
287 An object of the form:
288
289 { # A ScanRun is a output-only resource representing an actual run of the scan.
290 # Next id: 12
291 &quot;progressPercent&quot;: 42, # Output only. The percentage of total completion ranging from 0 to 100.
292 # If the scan is in queue, the value is 0.
293 # If the scan is running, the value ranges from 0 to 100.
294 # If the scan is finished, the value is 100.
295 &quot;executionState&quot;: &quot;A String&quot;, # Output only. The execution state of the ScanRun.
296 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun reached termination state - that the ScanRun
297 # is either finished or stopped by user.
298 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the ScanRun started.
299 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
300 # the value represents the number of URLs crawled up to now.
301 &quot;hasVulnerabilities&quot;: True or False, # Output only. Whether the scan run has found any vulnerabilities.
302 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
303 # the value represents the number of URLs tested up to now. The number of
304 # URLs tested is usually larger than the number URLS crawled because
305 # typically a crawled URL is tested with multiple test payloads.
306 &quot;warningTraces&quot;: [ # Output only. A list of warnings, if such are encountered during this scan run.
307 { # Output only.
308 # Defines a warning trace message for ScanRun. Warning traces provide customers
309 # with useful information that helps make the scanning process more effective.
310 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the warning code.
311 },
312 ],
313 &quot;resultState&quot;: &quot;A String&quot;, # Output only. The result state of the ScanRun. This field is only available after the
314 # execution state reaches &quot;FINISHED&quot;.
315 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the ScanRun. The name follows the format of
316 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
317 # The ScanRun IDs are generated by the system.
318 &quot;errorTrace&quot;: { # Output only. # Output only. If result_state is an ERROR, this field provides the primary reason for
319 # scan&#x27;s termination and more details, if such are available.
320 # Defines an error trace message for a ScanRun.
321 &quot;scanConfigError&quot;: { # Defines a custom error message used by CreateScanConfig and UpdateScanConfig # Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
322 # message encountered during scan configuration validation that is performed
323 # before each scan run.
324 # APIs when scan configuration validation fails. It is also reported as part of
325 # a ScanRunErrorTrace message if scan validation fails due to a scan
326 # configuration error.
327 &quot;fieldName&quot;: &quot;A String&quot;, # Output only. Indicates the full name of the ScanConfig field that triggers this error,
328 # for example &quot;scan_config.max_qps&quot;. This field is provided for
329 # troubleshooting purposes only and its actual value can change in the
330 # future.
331 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the reason code for a configuration failure.
332 },
333 &quot;mostCommonHttpErrorCode&quot;: 42, # Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
334 # common HTTP error code, if such is available. For example, if this code is
335 # 404, the scan has encountered too many NOT_FOUND responses.
336 &quot;code&quot;: &quot;A String&quot;, # Output only. Indicates the error reason code.
337 },
338 }</pre>
339</div>
340
341</body></html>