Skip to content

/AWS1/CL_GUP=>GETFINDINGSREPORTACCTSUMMARY()

About GetFindingsReportAccountSummary

Returns a list of FindingsReportSummary objects that contain analysis results for all profiling groups in your AWS account.

Method Signature

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/GUPPAGINATIONTOKEN /AWS1/GUPPAGINATIONTOKEN

The nextToken value returned from a previous paginated GetFindingsReportAccountSummary request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value.

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

iv_maxresults TYPE /AWS1/GUPMAXRESULTS /AWS1/GUPMAXRESULTS

The maximum number of results returned by GetFindingsReportAccountSummary in paginated output. When this parameter is used, GetFindingsReportAccountSummary only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another GetFindingsReportAccountSummary request with the returned nextToken value.

iv_dailyreportsonly TYPE /AWS1/GUPBOOLEAN /AWS1/GUPBOOLEAN

A Boolean value indicating whether to only return reports from daily profiles. If set to True, only analysis data from daily profiles is returned. If set to False, analysis data is returned from smaller time windows (for example, one hour).

RETURNING

oo_output TYPE REF TO /aws1/cl_gupgetfndsrptacctsu01 /AWS1/CL_GUPGETFNDSRPTACCTSU01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_gup~getfindingsreportacctsummary(
  iv_dailyreportsonly = ABAP_TRUE
  iv_maxresults = 123
  iv_nexttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_reportsummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_findingsreportid = lo_row_1->get_id( ).
      lv_string = lo_row_1->get_profilinggroupname( ).
      lv_timestamp = lo_row_1->get_profilestarttime( ).
      lv_timestamp = lo_row_1->get_profileendtime( ).
      lv_integer = lo_row_1->get_totalnumberoffindings( ).
    ENDIF.
  ENDLOOP.
  lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.