blob: c3cae39603ef18884e33fb42960d68871dd41320 [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> . <a href="websecurityscanner_v1.projects.scanConfigs.scanRuns.findings.html">findings</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
79<p class="firstline">Gets a Finding.</p>
80<p class="toc_element">
81 <code><a href="#list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
82<p class="firstline">List Findings under a given ScanRun.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="get">get(name, x__xgafv=None)</code>
89 <pre>Gets a Finding.
90
91Args:
92 name: string, Required. The resource name of the Finding to be returned. The name follows the
93format of
94&#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}&#x27;. (required)
95 x__xgafv: string, V1 error format.
96 Allowed values
97 1 - v1 error format
98 2 - v2 error format
99
100Returns:
101 An object of the form:
102
103 { # A Finding resource represents a vulnerability instance identified during a
104 # ScanRun.
105 &quot;violatingResource&quot;: { # Information regarding any resource causing the vulnerability such # Output only. An addon containing detailed information regarding any resource causing the
106 # vulnerability such as JavaScript sources, image, audio files, etc.
107 # as JavaScript sources, image, audio files, etc.
108 &quot;contentType&quot;: &quot;A String&quot;, # The MIME type of this resource.
109 &quot;resourceUrl&quot;: &quot;A String&quot;, # URL of this violating resource.
110 },
111 &quot;xss&quot;: { # Information reported for an XSS. # Output only. An addon containing information reported for an XSS, if any.
112 &quot;errorMessage&quot;: &quot;A String&quot;, # An error message generated by a javascript breakage.
113 &quot;stackTraces&quot;: [ # Stack traces leading to the point where the XSS occurred.
114 &quot;A String&quot;,
115 ],
116 &quot;attackVector&quot;: &quot;A String&quot;, # The attack vector of the payload triggering this XSS.
117 &quot;storedXssSeedingUrl&quot;: &quot;A String&quot;, # The reproduction url for the seeding POST request of a Stored XSS.
118 },
119 &quot;severity&quot;: &quot;A String&quot;, # Output only. The severity level of the reported vulnerability.
120 &quot;finalUrl&quot;: &quot;A String&quot;, # Output only. The URL where the browser lands when the vulnerability is detected.
121 &quot;reproductionUrl&quot;: &quot;A String&quot;, # Output only. The URL containing human-readable payload that user can leverage to
122 # reproduce the vulnerability.
123 &quot;body&quot;: &quot;A String&quot;, # Output only. The body of the request that triggered the vulnerability.
124 &quot;form&quot;: { # ! Information about a vulnerability with an HTML. # Output only. An addon containing information reported for a vulnerability with an HTML
125 # form, if any.
126 &quot;actionUri&quot;: &quot;A String&quot;, # ! The URI where to send the form when it&#x27;s submitted.
127 &quot;fields&quot;: [ # ! The names of form fields related to the vulnerability.
128 &quot;A String&quot;,
129 ],
130 },
131 &quot;frameUrl&quot;: &quot;A String&quot;, # Output only. If the vulnerability was originated from nested IFrame, the immediate
132 # parent IFrame is reported.
133 &quot;fuzzedUrl&quot;: &quot;A String&quot;, # Output only. The URL produced by the server-side fuzzer and used in the request that
134 # triggered the vulnerability.
135 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the vulnerability.
136 &quot;trackingId&quot;: &quot;A String&quot;, # Output only. The tracking ID uniquely identifies a vulnerability instance across
137 # multiple ScanRuns.
138 &quot;httpMethod&quot;: &quot;A String&quot;, # Output only. The http method of the request that triggered the vulnerability, in
139 # uppercase.
140 &quot;vulnerableParameters&quot;: { # Information about vulnerable request parameters. # Output only. An addon containing information about request parameters which were found
141 # to be vulnerable.
142 &quot;parameterNames&quot;: [ # The vulnerable parameter names.
143 &quot;A String&quot;,
144 ],
145 },
146 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Finding. The name follows the format of
147 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}&#x27;.
148 # The finding IDs are generated by the system.
149 &quot;vulnerableHeaders&quot;: { # Information about vulnerable or missing HTTP Headers. # Output only. An addon containing information about vulnerable or missing HTTP headers.
150 &quot;headers&quot;: [ # List of vulnerable headers.
151 { # Describes a HTTP Header.
152 &quot;value&quot;: &quot;A String&quot;, # Header value.
153 &quot;name&quot;: &quot;A String&quot;, # Header name.
154 },
155 ],
156 &quot;missingHeaders&quot;: [ # List of missing headers.
157 { # Describes a HTTP Header.
158 &quot;value&quot;: &quot;A String&quot;, # Header value.
159 &quot;name&quot;: &quot;A String&quot;, # Header name.
160 },
161 ],
162 },
163 &quot;outdatedLibrary&quot;: { # Information reported for an outdated library. # Output only. An addon containing information about outdated libraries.
164 &quot;version&quot;: &quot;A String&quot;, # The version number.
165 &quot;libraryName&quot;: &quot;A String&quot;, # The name of the outdated library.
166 &quot;learnMoreUrls&quot;: [ # URLs to learn more information about the vulnerabilities in the library.
167 &quot;A String&quot;,
168 ],
169 },
170 &quot;findingType&quot;: &quot;A String&quot;, # Output only. The type of the Finding.
171 # Detailed and up-to-date information on findings can be found here:
172 # https://cloud.google.com/security-scanner/docs/scan-result-details
173 }</pre>
174</div>
175
176<div class="method">
177 <code class="details" id="list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
178 <pre>List Findings under a given ScanRun.
179
180Args:
181 parent: string, Required. The parent resource name, which should be a scan run resource name in the
182format
183&#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
184 pageSize: integer, The maximum number of Findings to return, can be limited by server.
185If not specified or not positive, the implementation will select a
186reasonable value.
187 filter: string, The filter expression. The expression must be in the format: &lt;field&gt;
188&lt;operator&gt; &lt;value&gt;.
189Supported field: &#x27;finding_type&#x27;.
190Supported operator: &#x27;=&#x27;.
191 pageToken: string, A token identifying a page of results to be returned. This should be a
192`next_page_token` value returned from a previous List request.
193If unspecified, the first page of results is returned.
194 x__xgafv: string, V1 error format.
195 Allowed values
196 1 - v1 error format
197 2 - v2 error format
198
199Returns:
200 An object of the form:
201
202 { # Response for the `ListFindings` method.
203 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
204 # more results in the list.
205 &quot;findings&quot;: [ # The list of Findings returned.
206 { # A Finding resource represents a vulnerability instance identified during a
207 # ScanRun.
208 &quot;violatingResource&quot;: { # Information regarding any resource causing the vulnerability such # Output only. An addon containing detailed information regarding any resource causing the
209 # vulnerability such as JavaScript sources, image, audio files, etc.
210 # as JavaScript sources, image, audio files, etc.
211 &quot;contentType&quot;: &quot;A String&quot;, # The MIME type of this resource.
212 &quot;resourceUrl&quot;: &quot;A String&quot;, # URL of this violating resource.
213 },
214 &quot;xss&quot;: { # Information reported for an XSS. # Output only. An addon containing information reported for an XSS, if any.
215 &quot;errorMessage&quot;: &quot;A String&quot;, # An error message generated by a javascript breakage.
216 &quot;stackTraces&quot;: [ # Stack traces leading to the point where the XSS occurred.
217 &quot;A String&quot;,
218 ],
219 &quot;attackVector&quot;: &quot;A String&quot;, # The attack vector of the payload triggering this XSS.
220 &quot;storedXssSeedingUrl&quot;: &quot;A String&quot;, # The reproduction url for the seeding POST request of a Stored XSS.
221 },
222 &quot;severity&quot;: &quot;A String&quot;, # Output only. The severity level of the reported vulnerability.
223 &quot;finalUrl&quot;: &quot;A String&quot;, # Output only. The URL where the browser lands when the vulnerability is detected.
224 &quot;reproductionUrl&quot;: &quot;A String&quot;, # Output only. The URL containing human-readable payload that user can leverage to
225 # reproduce the vulnerability.
226 &quot;body&quot;: &quot;A String&quot;, # Output only. The body of the request that triggered the vulnerability.
227 &quot;form&quot;: { # ! Information about a vulnerability with an HTML. # Output only. An addon containing information reported for a vulnerability with an HTML
228 # form, if any.
229 &quot;actionUri&quot;: &quot;A String&quot;, # ! The URI where to send the form when it&#x27;s submitted.
230 &quot;fields&quot;: [ # ! The names of form fields related to the vulnerability.
231 &quot;A String&quot;,
232 ],
233 },
234 &quot;frameUrl&quot;: &quot;A String&quot;, # Output only. If the vulnerability was originated from nested IFrame, the immediate
235 # parent IFrame is reported.
236 &quot;fuzzedUrl&quot;: &quot;A String&quot;, # Output only. The URL produced by the server-side fuzzer and used in the request that
237 # triggered the vulnerability.
238 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the vulnerability.
239 &quot;trackingId&quot;: &quot;A String&quot;, # Output only. The tracking ID uniquely identifies a vulnerability instance across
240 # multiple ScanRuns.
241 &quot;httpMethod&quot;: &quot;A String&quot;, # Output only. The http method of the request that triggered the vulnerability, in
242 # uppercase.
243 &quot;vulnerableParameters&quot;: { # Information about vulnerable request parameters. # Output only. An addon containing information about request parameters which were found
244 # to be vulnerable.
245 &quot;parameterNames&quot;: [ # The vulnerable parameter names.
246 &quot;A String&quot;,
247 ],
248 },
249 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Finding. The name follows the format of
250 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}&#x27;.
251 # The finding IDs are generated by the system.
252 &quot;vulnerableHeaders&quot;: { # Information about vulnerable or missing HTTP Headers. # Output only. An addon containing information about vulnerable or missing HTTP headers.
253 &quot;headers&quot;: [ # List of vulnerable headers.
254 { # Describes a HTTP Header.
255 &quot;value&quot;: &quot;A String&quot;, # Header value.
256 &quot;name&quot;: &quot;A String&quot;, # Header name.
257 },
258 ],
259 &quot;missingHeaders&quot;: [ # List of missing headers.
260 { # Describes a HTTP Header.
261 &quot;value&quot;: &quot;A String&quot;, # Header value.
262 &quot;name&quot;: &quot;A String&quot;, # Header name.
263 },
264 ],
265 },
266 &quot;outdatedLibrary&quot;: { # Information reported for an outdated library. # Output only. An addon containing information about outdated libraries.
267 &quot;version&quot;: &quot;A String&quot;, # The version number.
268 &quot;libraryName&quot;: &quot;A String&quot;, # The name of the outdated library.
269 &quot;learnMoreUrls&quot;: [ # URLs to learn more information about the vulnerabilities in the library.
270 &quot;A String&quot;,
271 ],
272 },
273 &quot;findingType&quot;: &quot;A String&quot;, # Output only. The type of the Finding.
274 # Detailed and up-to-date information on findings can be found here:
275 # https://cloud.google.com/security-scanner/docs/scan-result-details
276 },
277 ],
278 }</pre>
279</div>
280
281<div class="method">
282 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
283 <pre>Retrieves the next page of results.
284
285Args:
286 previous_request: The request for the previous page. (required)
287 previous_response: The response from the request for the previous page. (required)
288
289Returns:
290 A request object that you can call &#x27;execute()&#x27; on to request the next
291 page. Returns None if there are no more items in the collection.
292 </pre>
293</div>
294
295</body></html>