blob: 3b0337bd03177322b7ddf516971e64d0e4452456 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets a Finding.</p>
83<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070085<p class="firstline">List Findings under a given ScanRun.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code class="details" id="get">get(name, x__xgafv=None)</code>
97 <pre>Gets a Finding.
98
99Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 name: string, Required. The resource name of the Finding to be returned. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}&#x27;. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 { # A Finding resource represents a vulnerability instance identified during a ScanRun.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700110 &quot;vulnerableHeaders&quot;: { # Information about vulnerable or missing HTTP Headers. # Output only. An addon containing information about vulnerable or missing HTTP headers.
111 &quot;missingHeaders&quot;: [ # List of missing headers.
112 { # Describes a HTTP Header.
113 &quot;value&quot;: &quot;A String&quot;, # Header value.
114 &quot;name&quot;: &quot;A String&quot;, # Header name.
115 },
116 ],
117 &quot;headers&quot;: [ # List of vulnerable headers.
118 { # Describes a HTTP Header.
119 &quot;value&quot;: &quot;A String&quot;, # Header value.
120 &quot;name&quot;: &quot;A String&quot;, # Header name.
121 },
122 ],
123 },
124 &quot;form&quot;: { # ! Information about a vulnerability with an HTML. # Output only. An addon containing information reported for a vulnerability with an HTML form, if any.
125 &quot;fields&quot;: [ # ! The names of form fields related to the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;A String&quot;,
127 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700128 &quot;actionUri&quot;: &quot;A String&quot;, # ! The URI where to send the form when it&#x27;s submitted.
129 },
130 &quot;trackingId&quot;: &quot;A String&quot;, # Output only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.
131 &quot;findingType&quot;: &quot;A String&quot;, # Output only. The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
132 &quot;finalUrl&quot;: &quot;A String&quot;, # Output only. The URL where the browser lands when the vulnerability is detected.
133 &quot;reproductionUrl&quot;: &quot;A String&quot;, # Output only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability.
134 &quot;violatingResource&quot;: { # Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. # Output only. An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
135 &quot;resourceUrl&quot;: &quot;A String&quot;, # URL of this violating resource.
136 &quot;contentType&quot;: &quot;A String&quot;, # The MIME type of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 &quot;outdatedLibrary&quot;: { # Information reported for an outdated library. # Output only. An addon containing information about outdated libraries.
139 &quot;version&quot;: &quot;A String&quot;, # The version number.
140 &quot;learnMoreUrls&quot;: [ # URLs to learn more information about the vulnerabilities in the library.
141 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700142 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700143 &quot;libraryName&quot;: &quot;A String&quot;, # The name of the outdated library.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 &quot;body&quot;: &quot;A String&quot;, # Output only. The body of the request that triggered the vulnerability.
146 &quot;vulnerableParameters&quot;: { # Information about vulnerable request parameters. # Output only. An addon containing information about request parameters which were found to be vulnerable.
147 &quot;parameterNames&quot;: [ # The vulnerable parameter names.
148 &quot;A String&quot;,
149 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700150 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 &quot;xss&quot;: { # Information reported for an XSS. # Output only. An addon containing information reported for an XSS, if any.
152 &quot;stackTraces&quot;: [ # Stack traces leading to the point where the XSS occurred.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;A String&quot;,
154 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700155 &quot;storedXssSeedingUrl&quot;: &quot;A String&quot;, # The reproduction url for the seeding POST request of a Stored XSS.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700156 &quot;errorMessage&quot;: &quot;A String&quot;, # An error message generated by a javascript breakage.
157 &quot;attackVector&quot;: &quot;A String&quot;, # The attack vector of the payload triggering this XSS.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700159 &quot;frameUrl&quot;: &quot;A String&quot;, # Output only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160 &quot;httpMethod&quot;: &quot;A String&quot;, # Output only. The http method of the request that triggered the vulnerability, in uppercase.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700161 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Finding. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}&#x27;. The finding IDs are generated by the system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 &quot;fuzzedUrl&quot;: &quot;A String&quot;, # Output only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the vulnerability.
164 &quot;severity&quot;: &quot;A String&quot;, # Output only. The severity level of the reported vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 }</pre>
166</div>
167
168<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700169 <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 <pre>List Findings under a given ScanRun.
171
172Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700173 parent: string, Required. The parent resource name, which should be a scan run resource name in the format &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;. (required)
174 filter: string, The filter expression. The expression must be in the format: . Supported field: &#x27;finding_type&#x27;. Supported operator: &#x27;=&#x27;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700175 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 Kim673ec5c2020-11-16 11:05:03 -0700176 pageSize: integer, The maximum number of Findings to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 x__xgafv: string, V1 error format.
178 Allowed values
179 1 - v1 error format
180 2 - v2 error format
181
182Returns:
183 An object of the form:
184
185 { # Response for the `ListFindings` method.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700186 &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 Kim65020912020-05-20 12:08:20 -0700187 &quot;findings&quot;: [ # The list of Findings returned.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 { # A Finding resource represents a vulnerability instance identified during a ScanRun.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700189 &quot;vulnerableHeaders&quot;: { # Information about vulnerable or missing HTTP Headers. # Output only. An addon containing information about vulnerable or missing HTTP headers.
190 &quot;missingHeaders&quot;: [ # List of missing headers.
191 { # Describes a HTTP Header.
192 &quot;value&quot;: &quot;A String&quot;, # Header value.
193 &quot;name&quot;: &quot;A String&quot;, # Header name.
194 },
195 ],
196 &quot;headers&quot;: [ # List of vulnerable headers.
197 { # Describes a HTTP Header.
198 &quot;value&quot;: &quot;A String&quot;, # Header value.
199 &quot;name&quot;: &quot;A String&quot;, # Header name.
200 },
201 ],
202 },
203 &quot;form&quot;: { # ! Information about a vulnerability with an HTML. # Output only. An addon containing information reported for a vulnerability with an HTML form, if any.
204 &quot;fields&quot;: [ # ! The names of form fields related to the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;A String&quot;,
206 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 &quot;actionUri&quot;: &quot;A String&quot;, # ! The URI where to send the form when it&#x27;s submitted.
208 },
209 &quot;trackingId&quot;: &quot;A String&quot;, # Output only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.
210 &quot;findingType&quot;: &quot;A String&quot;, # Output only. The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
211 &quot;finalUrl&quot;: &quot;A String&quot;, # Output only. The URL where the browser lands when the vulnerability is detected.
212 &quot;reproductionUrl&quot;: &quot;A String&quot;, # Output only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability.
213 &quot;violatingResource&quot;: { # Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. # Output only. An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
214 &quot;resourceUrl&quot;: &quot;A String&quot;, # URL of this violating resource.
215 &quot;contentType&quot;: &quot;A String&quot;, # The MIME type of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 &quot;outdatedLibrary&quot;: { # Information reported for an outdated library. # Output only. An addon containing information about outdated libraries.
218 &quot;version&quot;: &quot;A String&quot;, # The version number.
219 &quot;learnMoreUrls&quot;: [ # URLs to learn more information about the vulnerabilities in the library.
220 &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700221 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 &quot;libraryName&quot;: &quot;A String&quot;, # The name of the outdated library.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700224 &quot;body&quot;: &quot;A String&quot;, # Output only. The body of the request that triggered the vulnerability.
225 &quot;vulnerableParameters&quot;: { # Information about vulnerable request parameters. # Output only. An addon containing information about request parameters which were found to be vulnerable.
226 &quot;parameterNames&quot;: [ # The vulnerable parameter names.
227 &quot;A String&quot;,
228 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700229 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 &quot;xss&quot;: { # Information reported for an XSS. # Output only. An addon containing information reported for an XSS, if any.
231 &quot;stackTraces&quot;: [ # Stack traces leading to the point where the XSS occurred.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;A String&quot;,
233 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700234 &quot;storedXssSeedingUrl&quot;: &quot;A String&quot;, # The reproduction url for the seeding POST request of a Stored XSS.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700235 &quot;errorMessage&quot;: &quot;A String&quot;, # An error message generated by a javascript breakage.
236 &quot;attackVector&quot;: &quot;A String&quot;, # The attack vector of the payload triggering this XSS.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700238 &quot;frameUrl&quot;: &quot;A String&quot;, # Output only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 &quot;httpMethod&quot;: &quot;A String&quot;, # Output only. The http method of the request that triggered the vulnerability, in uppercase.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700240 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the Finding. The name follows the format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}&#x27;. The finding IDs are generated by the system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700241 &quot;fuzzedUrl&quot;: &quot;A String&quot;, # Output only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700242 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the vulnerability.
243 &quot;severity&quot;: &quot;A String&quot;, # Output only. The severity level of the reported vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 },
245 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 }</pre>
247</div>
248
249<div class="method">
250 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
251 <pre>Retrieves the next page of results.
252
253Args:
254 previous_request: The request for the previous page. (required)
255 previous_response: The response from the request for the previous page. (required)
256
257Returns:
258 A request object that you can call &#x27;execute()&#x27; on to request the next
259 page. Returns None if there are no more items in the collection.
260 </pre>
261</div>
262
263</body></html>