Debian Codegraph @

docs/dyn/apigee_v1.organizations.hostSecurityReports.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.hostSecurityReports.html">hostSecurityReports</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of "enqueued" means that the request succeeded.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Get status of a query submitted at host level. If the query is still in progress, the `state` is set to "running" After the query has completed successfully, `state` is set to "completed"</p>
86 <p class="toc_element">
87 <code><a href="#getResult">getResult(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`</p>
89 <p class="toc_element">
90 <code><a href="#getResultView">getResultView(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">After the query is completed, use this API to view the query result when result size is small.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, dataset=None, envgroupHostname=None, from=None, pageSize=None, pageToken=None, status=None, submittedBy=None, to=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Return a list of Security Reports at host level.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of &quot;enqueued&quot; means that the request succeeded.
107
108 Args:
109 parent: string, Required. The parent resource name. Must be of the form `organizations/{org}`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Body structure when user makes a request to create a security report.
114 &quot;csvDelimiter&quot;: &quot;A String&quot;, # Delimiter used in the CSV file, if `outputFormat` is set to `csv`. Defaults to the `,` (comma) character. Supported delimiter characters include comma (`,`), pipe (`|`), and tab (`\t`).
115 &quot;dimensions&quot;: [ # A list of dimensions. https://docs.apigee.com/api-platform/analytics/analytics-reference#dimensions
116 &quot;A String&quot;,
117 ],
118 &quot;displayName&quot;: &quot;A String&quot;, # Security Report display name which users can specify.
119 &quot;envgroupHostname&quot;: &quot;A String&quot;, # Hostname needs to be specified if query intends to run at host level. This field is only allowed when query is submitted by CreateHostSecurityReport where analytics data will be grouped by organization and hostname.
120 &quot;filter&quot;: &quot;A String&quot;, # Boolean expression that can be used to filter data. Filter expressions can be combined using AND/OR terms and should be fully parenthesized to avoid ambiguity. See Analytics metrics, dimensions, and filters reference https://docs.apigee.com/api-platform/analytics/analytics-reference for more information on the fields available to filter on. For more information on the tokens that you use to build filter expressions, see Filter expression syntax. https://docs.apigee.com/api-platform/analytics/asynch-reports-api#filter-expression-syntax
121 &quot;groupByTimeUnit&quot;: &quot;A String&quot;, # Time unit used to group the result set. Valid values include: second, minute, hour, day, week, or month. If a query includes groupByTimeUnit, then the result is an aggregation based on the specified time unit and the resultant timestamp does not include milliseconds precision. If a query omits groupByTimeUnit, then the resultant timestamp includes milliseconds precision.
122 &quot;limit&quot;: 42, # Maximum number of rows that can be returned in the result.
123 &quot;metrics&quot;: [ # A list of Metrics.
124 { # Metric of the Query
125 &quot;aggregationFunction&quot;: &quot;A String&quot;, # Aggregation function: avg, min, max, or sum.
126 &quot;alias&quot;: &quot;A String&quot;, # Alias for the metric. Alias will be used to replace metric name in query results.
127 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name.
128 &quot;operator&quot;: &quot;A String&quot;, # One of `+`, `-`, `/`, `%`, `*`.
129 &quot;value&quot;: &quot;A String&quot;, # Operand value should be provided when operator is set.
130 },
131 ],
132 &quot;mimeType&quot;: &quot;A String&quot;, # Valid values include: `csv` or `json`. Defaults to `json`. Note: Configure the delimiter for CSV output using the csvDelimiter property.
133 &quot;reportDefinitionId&quot;: &quot;A String&quot;, # Report Definition ID.
134 &quot;timeRange&quot;: &quot;&quot;, # Required. Time range for the query. Can use the following predefined strings to specify the time range: `last60minutes` `last24hours` `last7days` Or, specify the timeRange as a structure describing start and end timestamps in the ISO format: yyyy-mm-ddThh:mm:ssZ. Example: &quot;timeRange&quot;: { &quot;start&quot;: &quot;2018-07-29T00:13:00Z&quot;, &quot;end&quot;: &quot;2018-08-01T00:18:00Z&quot; }
135 }
136
137 x__xgafv: string, V1 error format.
138 Allowed values
139 1 - v1 error format
140 2 - v2 error format
141
142 Returns:
143 An object of the form:
144
145 { # SecurityReport saves all the information about the created security report.
146 &quot;created&quot;: &quot;A String&quot;, # Creation time of the query.
147 &quot;displayName&quot;: &quot;A String&quot;, # Display Name specified by the user.
148 &quot;envgroupHostname&quot;: &quot;A String&quot;, # Hostname is available only when query is executed at host level.
149 &quot;error&quot;: &quot;A String&quot;, # Error is set when query fails.
150 &quot;executionTime&quot;: &quot;A String&quot;, # ExecutionTime is available only after the query is completed.
151 &quot;queryParams&quot;: { # Metadata for the security report. # Contains information like metrics, dimenstions etc of the Security Report.
152 &quot;dimensions&quot;: [ # Dimensions of the SecurityReport.
153 &quot;A String&quot;,
154 ],
155 &quot;endTimestamp&quot;: &quot;A String&quot;, # End timestamp of the query range.
156 &quot;metrics&quot;: [ # Metrics of the SecurityReport. Example: [&quot;name:bot_count,func:sum,alias:sum_bot_count&quot;]
157 &quot;A String&quot;,
158 ],
159 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type / Output format.
160 &quot;startTimestamp&quot;: &quot;A String&quot;, # Start timestamp of the query range.
161 &quot;timeUnit&quot;: &quot;A String&quot;, # Query GroupBy time unit. Example: &quot;seconds&quot;, &quot;minute&quot;, &quot;hour&quot;
162 },
163 &quot;reportDefinitionId&quot;: &quot;A String&quot;, # Report Definition ID.
164 &quot;result&quot;: { # Contains informations about the security report results. # Result is available only after the query is completed.
165 &quot;expires&quot;: &quot;A String&quot;, # Output only. Expire_time is set to 7 days after report creation. Query result will be unaccessable after this time. Example: &quot;2021-05-04T13:38:52-07:00&quot;
166 &quot;self&quot;: &quot;A String&quot;, # Self link of the query results. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`
167 },
168 &quot;resultFileSize&quot;: &quot;A String&quot;, # ResultFileSize is available only after the query is completed.
169 &quot;resultRows&quot;: &quot;A String&quot;, # ResultRows is available only after the query is completed.
170 &quot;self&quot;: &quot;A String&quot;, # Self link of the query. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
171 &quot;state&quot;: &quot;A String&quot;, # Query state could be &quot;enqueued&quot;, &quot;running&quot;, &quot;completed&quot;, &quot;expired&quot; and &quot;failed&quot;.
172 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last updated timestamp for the query.
173 }</pre>
174 </div>
175
176 <div class="method">
177 <code class="details" id="get">get(name, x__xgafv=None)</code>
178 <pre>Get status of a query submitted at host level. If the query is still in progress, the `state` is set to &quot;running&quot; After the query has completed successfully, `state` is set to &quot;completed&quot;
179
180 Args:
181 name: string, Required. Name of the security report to get. Must be of the form `organizations/{org}/securityReports/{reportId}`. (required)
182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187 Returns:
188 An object of the form:
189
190 { # SecurityReport saves all the information about the created security report.
191 &quot;created&quot;: &quot;A String&quot;, # Creation time of the query.
192 &quot;displayName&quot;: &quot;A String&quot;, # Display Name specified by the user.
193 &quot;envgroupHostname&quot;: &quot;A String&quot;, # Hostname is available only when query is executed at host level.
194 &quot;error&quot;: &quot;A String&quot;, # Error is set when query fails.
195 &quot;executionTime&quot;: &quot;A String&quot;, # ExecutionTime is available only after the query is completed.
196 &quot;queryParams&quot;: { # Metadata for the security report. # Contains information like metrics, dimenstions etc of the Security Report.
197 &quot;dimensions&quot;: [ # Dimensions of the SecurityReport.
198 &quot;A String&quot;,
199 ],
200 &quot;endTimestamp&quot;: &quot;A String&quot;, # End timestamp of the query range.
201 &quot;metrics&quot;: [ # Metrics of the SecurityReport. Example: [&quot;name:bot_count,func:sum,alias:sum_bot_count&quot;]
202 &quot;A String&quot;,
203 ],
204 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type / Output format.
205 &quot;startTimestamp&quot;: &quot;A String&quot;, # Start timestamp of the query range.
206 &quot;timeUnit&quot;: &quot;A String&quot;, # Query GroupBy time unit. Example: &quot;seconds&quot;, &quot;minute&quot;, &quot;hour&quot;
207 },
208 &quot;reportDefinitionId&quot;: &quot;A String&quot;, # Report Definition ID.
209 &quot;result&quot;: { # Contains informations about the security report results. # Result is available only after the query is completed.
210 &quot;expires&quot;: &quot;A String&quot;, # Output only. Expire_time is set to 7 days after report creation. Query result will be unaccessable after this time. Example: &quot;2021-05-04T13:38:52-07:00&quot;
211 &quot;self&quot;: &quot;A String&quot;, # Self link of the query results. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`
212 },
213 &quot;resultFileSize&quot;: &quot;A String&quot;, # ResultFileSize is available only after the query is completed.
214 &quot;resultRows&quot;: &quot;A String&quot;, # ResultRows is available only after the query is completed.
215 &quot;self&quot;: &quot;A String&quot;, # Self link of the query. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
216 &quot;state&quot;: &quot;A String&quot;, # Query state could be &quot;enqueued&quot;, &quot;running&quot;, &quot;completed&quot;, &quot;expired&quot; and &quot;failed&quot;.
217 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last updated timestamp for the query.
218 }</pre>
219 </div>
220
221 <div class="method">
222 <code class="details" id="getResult">getResult(name, x__xgafv=None)</code>
223 <pre>After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is downloaded to the client as a zipped JSON file. The name of the downloaded file will be: OfflineQueryResult-.zip Example: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
224
225 Args:
226 name: string, Required. Name of the security report result to get. Must be of the form `organizations/{org}/securityReports/{reportId}/result`. (required)
227 x__xgafv: string, V1 error format.
228 Allowed values
229 1 - v1 error format
230 2 - v2 error format
231
232 Returns:
233 An object of the form:
234
235 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can&#x27;t be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
236 &quot;contentType&quot;: &quot;A String&quot;, # The HTTP Content-Type header value specifying the content type of the body.
237 &quot;data&quot;: &quot;A String&quot;, # The HTTP request/response body as raw binary.
238 &quot;extensions&quot;: [ # Application specific response metadata. Must be set in the first response for streaming APIs.
239 {
240 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
241 },
242 ],
243 }</pre>
244 </div>
245
246 <div class="method">
247 <code class="details" id="getResultView">getResultView(name, x__xgafv=None)</code>
248 <pre>After the query is completed, use this API to view the query result when result size is small.
249
250 Args:
251 name: string, Required. Name of the security report result view to get. Must be of the form `organizations/{org}/securityReports/{reportId}/resultView`. (required)
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257 Returns:
258 An object of the form:
259
260 { # The response for security report result view APIs.
261 &quot;code&quot;: 42, # Error code when there is a failure.
262 &quot;error&quot;: &quot;A String&quot;, # Error message when there is a failure.
263 &quot;metadata&quot;: { # Metadata for the security report. # Metadata contains information like metrics, dimenstions etc of the security report.
264 &quot;dimensions&quot;: [ # Dimensions of the SecurityReport.
265 &quot;A String&quot;,
266 ],
267 &quot;endTimestamp&quot;: &quot;A String&quot;, # End timestamp of the query range.
268 &quot;metrics&quot;: [ # Metrics of the SecurityReport. Example: [&quot;name:bot_count,func:sum,alias:sum_bot_count&quot;]
269 &quot;A String&quot;,
270 ],
271 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type / Output format.
272 &quot;startTimestamp&quot;: &quot;A String&quot;, # Start timestamp of the query range.
273 &quot;timeUnit&quot;: &quot;A String&quot;, # Query GroupBy time unit. Example: &quot;seconds&quot;, &quot;minute&quot;, &quot;hour&quot;
274 },
275 &quot;rows&quot;: [ # Rows of security report result. Each row is a JSON object. Example: {sum(message_count): 1, developer_app: &quot;(not set)&quot;,…}
276 &quot;&quot;,
277 ],
278 &quot;state&quot;: &quot;A String&quot;, # State of retrieving ResultView.
279 }</pre>
280 </div>
281
282 <div class="method">
283 <code class="details" id="list">list(parent, dataset=None, envgroupHostname=None, from=None, pageSize=None, pageToken=None, status=None, submittedBy=None, to=None, x__xgafv=None)</code>
284 <pre>Return a list of Security Reports at host level.
285
286 Args:
287 parent: string, Required. The parent resource name. Must be of the form `organizations/{org}`. (required)
288 dataset: string, Filter response list by dataset. Example: `api`, `mint`
289 envgroupHostname: string, Required. Filter response list by hostname.
290 from: string, Filter response list by returning security reports that created after this date time. Time must be in ISO date-time format like &#x27;2011-12-03T10:15:30Z&#x27;.
291 pageSize: integer, The maximum number of security report to return in the list response.
292 pageToken: string, Token returned from the previous list response to fetch the next page.
293 status: string, Filter response list by security report status.
294 submittedBy: string, Filter response list by user who submitted queries.
295 to: string, Filter response list by returning security reports that created before this date time. Time must be in ISO date-time format like &#x27;2011-12-03T10:16:30Z&#x27;.
296 x__xgafv: string, V1 error format.
297 Allowed values
298 1 - v1 error format
299 2 - v2 error format
300
301 Returns:
302 An object of the form:
303
304 { # The response for SecurityReports.
305 &quot;nextPageToken&quot;: &quot;A String&quot;, # If the number of security reports exceeded the page size requested, the token can be used to fetch the next page in a subsequent call. If the response is the last page and there are no more reports to return this field is left empty.
306 &quot;securityReports&quot;: [ # The security reports belong to requested resource name.
307 { # SecurityReport saves all the information about the created security report.
308 &quot;created&quot;: &quot;A String&quot;, # Creation time of the query.
309 &quot;displayName&quot;: &quot;A String&quot;, # Display Name specified by the user.
310 &quot;envgroupHostname&quot;: &quot;A String&quot;, # Hostname is available only when query is executed at host level.
311 &quot;error&quot;: &quot;A String&quot;, # Error is set when query fails.
312 &quot;executionTime&quot;: &quot;A String&quot;, # ExecutionTime is available only after the query is completed.
313 &quot;queryParams&quot;: { # Metadata for the security report. # Contains information like metrics, dimenstions etc of the Security Report.
314 &quot;dimensions&quot;: [ # Dimensions of the SecurityReport.
315 &quot;A String&quot;,
316 ],
317 &quot;endTimestamp&quot;: &quot;A String&quot;, # End timestamp of the query range.
318 &quot;metrics&quot;: [ # Metrics of the SecurityReport. Example: [&quot;name:bot_count,func:sum,alias:sum_bot_count&quot;]
319 &quot;A String&quot;,
320 ],
321 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type / Output format.
322 &quot;startTimestamp&quot;: &quot;A String&quot;, # Start timestamp of the query range.
323 &quot;timeUnit&quot;: &quot;A String&quot;, # Query GroupBy time unit. Example: &quot;seconds&quot;, &quot;minute&quot;, &quot;hour&quot;
324 },
325 &quot;reportDefinitionId&quot;: &quot;A String&quot;, # Report Definition ID.
326 &quot;result&quot;: { # Contains informations about the security report results. # Result is available only after the query is completed.
327 &quot;expires&quot;: &quot;A String&quot;, # Output only. Expire_time is set to 7 days after report creation. Query result will be unaccessable after this time. Example: &quot;2021-05-04T13:38:52-07:00&quot;
328 &quot;self&quot;: &quot;A String&quot;, # Self link of the query results. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd/result`
329 },
330 &quot;resultFileSize&quot;: &quot;A String&quot;, # ResultFileSize is available only after the query is completed.
331 &quot;resultRows&quot;: &quot;A String&quot;, # ResultRows is available only after the query is completed.
332 &quot;self&quot;: &quot;A String&quot;, # Self link of the query. Example: `/organizations/myorg/environments/myenv/securityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd` or following format if query is running at host level: `/organizations/myorg/hostSecurityReports/9cfc0d85-0f30-46d6-ae6f-318d0cb961bd`
333 &quot;state&quot;: &quot;A String&quot;, # Query state could be &quot;enqueued&quot;, &quot;running&quot;, &quot;completed&quot;, &quot;expired&quot; and &quot;failed&quot;.
334 &quot;updated&quot;: &quot;A String&quot;, # Output only. Last updated timestamp for the query.
335 },
336 ],
337 }</pre>
338 </div>
339
340 <div class="method">
341 <code class="details" id="list_next">list_next()</code>
342 <pre>Retrieves the next page of results.
343
344 Args:
345 previous_request: The request for the previous page. (required)
346 previous_response: The response from the request for the previous page. (required)
347
348 Returns:
349 A request object that you can call &#x27;execute()&#x27; on to request the next
350 page. Returns None if there are no more items in the collection.
351 </pre>
352 </div>
353
354 </body></html>