Skip to content

/AWS1/CL_FRM=>LISTRESOURCESCANS()

About ListResourceScans

List the resource scans from newest to oldest. By default it will return up to 10 resource scans.

Method Signature

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/FRMNEXTTOKEN /AWS1/FRMNEXTTOKEN

A string that identifies the next page of resource scan results.

iv_maxresults TYPE /AWS1/FRMRESRCSCANNERMAXRSLTS /AWS1/FRMRESRCSCANNERMAXRSLTS

If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.

iv_scantypefilter TYPE /AWS1/FRMSCANTYPE /AWS1/FRMSCANTYPE

The scan type that you want to get summary information about. The default is FULL.

RETURNING

oo_output TYPE REF TO /aws1/cl_frmlistresrcscansout /AWS1/CL_FRMLISTRESRCSCANSOUT

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_frm~listresourcescans(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_scantypefilter = |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_resourcescansummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_resourcescanid = lo_row_1->get_resourcescanid( ).
      lv_resourcescanstatus = lo_row_1->get_status( ).
      lv_resourcescanstatusreaso = lo_row_1->get_statusreason( ).
      lv_timestamp = lo_row_1->get_starttime( ).
      lv_timestamp = lo_row_1->get_endtime( ).
      lv_percentagecompleted = lo_row_1->get_percentagecompleted( ).
      lv_scantype = lo_row_1->get_scantype( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.