/AWS1/IF_FRM=>LISTRESOURCESCANS()¶
About ListResourceScans¶
List the resource scans from newest to oldest. By default it will return up to 10 resource scans.
Method Signature¶
METHODS /AWS1/IF_FRM~LISTRESOURCESCANS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/FRMNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/FRMRESRCSCANNERMAXRSLTS OPTIONAL
!IV_SCANTYPEFILTER TYPE /AWS1/FRMSCANTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_frmlistresrcscansout
RAISING
/AWS1/CX_FRMCLIENTEXC
/AWS1/CX_FRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/FRMNEXTTOKEN /AWS1/FRMNEXTTOKEN¶
The token for the next set of items to return. (You received this token from a previous call.)
iv_maxresults TYPE /AWS1/FRMRESRCSCANNERMAXRSLTS /AWS1/FRMRESRCSCANNERMAXRSLTS¶
If the number of available results exceeds this maximum, the response includes a
NextTokenvalue that you can use for theNextTokenparameter 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->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.