blob: cbb984ed8dc0b368d5fa7e4a5c29aef023d05a86 [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> . <a href="websecurityscanner_v1beta.projects.scanConfigs.scanRuns.html">scanRuns</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1beta.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_v1beta.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_v1beta.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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#close">close()</a></code></p>
94<p class="firstline">Close httplib2 connections.</p>
95<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets a ScanRun.</p>
98<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<p class="firstline">Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
105 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Stops a ScanRun. The stopped ScanRun is returned.</p>
107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 <code class="details" id="get">get(name, x__xgafv=None)</code>
115 <pre>Gets a ScanRun.
116
117Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 name: string, Required. The resource name of the ScanRun to be returned. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 x__xgafv: string, V1 error format.
120 Allowed values
121 1 - v1 error format
122 2 - v2 error format
123
124Returns:
125 An object of the form:
126
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 { # 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 -0700128 &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 -0800129 &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.
130 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
131 &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 -0700132 &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 -0800133 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
134 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
135 &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.
136 &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;.
137 &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.
138 &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.
139 &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.
140 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
141 },
142 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
143 &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.
144 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700145 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 { # 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 -0700147 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
148 },
149 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 }</pre>
151</div>
152
153<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700154 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700155 <pre>Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156
157Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700158 parent: string, Required. The parent resource name, which should be a scan resource name in the format &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700159 pageSize: integer, The maximum number of ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700160 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 -0700161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165
166Returns:
167 An object of the form:
168
169 { # Response for the `ListScanRuns` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;scanRuns&quot;: [ # The list of ScanRuns returned.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 { # 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 -0700172 &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 -0800173 &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.
174 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
175 &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 -0700176 &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 -0800177 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
178 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
179 &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.
180 &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;.
181 &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.
182 &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.
183 &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.
184 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
185 },
186 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
187 &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.
188 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700189 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 { # 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 -0700191 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
192 },
193 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 },
195 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 &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 -0700197 }</pre>
198</div>
199
200<div class="method">
201 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
202 <pre>Retrieves the next page of results.
203
204Args:
205 previous_request: The request for the previous page. (required)
206 previous_response: The response from the request for the previous page. (required)
207
208Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 page. Returns None if there are no more items in the collection.
211 </pre>
212</div>
213
214<div class="method">
215 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
216 <pre>Stops a ScanRun. The stopped ScanRun is returned.
217
218Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700219 name: string, Required. The resource name of the ScanRun to be stopped. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 body: object, The request body.
221 The object takes the form of:
222
223{ # Request for the `StopScanRun` method.
224 }
225
226 x__xgafv: string, V1 error format.
227 Allowed values
228 1 - v1 error format
229 2 - v2 error format
230
231Returns:
232 An object of the form:
233
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 { # 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 -0700235 &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 -0800236 &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.
237 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
238 &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 -0700239 &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 -0800240 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
241 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
242 &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.
243 &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;.
244 &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.
245 &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.
246 &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.
247 &quot;code&quot;: &quot;A String&quot;, # Indicates the reason code for a configuration failure.
248 },
249 &quot;code&quot;: &quot;A String&quot;, # Indicates the error reason code.
250 &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.
251 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700252 &quot;warningTraces&quot;: [ # A list of warnings, if such are encountered during this scan run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 { # 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 -0700254 &quot;code&quot;: &quot;A String&quot;, # Indicates the warning code.
255 },
256 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 }</pre>
258</div>
259
260</body></html>