/AWS1/CL_IN2=>LISTCISSCANCONFIGURATIONS()
¶
About ListCisScanConfigurations¶
Lists CIS scan configurations.
Method Signature¶
IMPORTING¶
Optional arguments:¶
io_filtercriteria
TYPE REF TO /AWS1/CL_IN2LSTCISSCANCONFSF00
/AWS1/CL_IN2LSTCISSCANCONFSF00
¶
The CIS scan configuration filter criteria.
iv_sortby
TYPE /AWS1/IN2CISSCANCONFSSORTBY
/AWS1/IN2CISSCANCONFSSORTBY
¶
The CIS scan configuration sort by order.
iv_sortorder
TYPE /AWS1/IN2CISSORTORDER
/AWS1/IN2CISSORTORDER
¶
The CIS scan configuration sort order order.
iv_nexttoken
TYPE /AWS1/IN2NEXTTOKEN
/AWS1/IN2NEXTTOKEN
¶
The pagination token from a previous request that's used to retrieve the next page of results.
iv_maxresults
TYPE /AWS1/IN2LSTCISSCANCONFSMAXRSS
/AWS1/IN2LSTCISSCANCONFSMAXRSS
¶
The maximum number of CIS scan configurations to be returned in a single page of results.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_in2lstcisscanconfsrsp
/AWS1/CL_IN2LSTCISSCANCONFSRSP
¶
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_in2~listcisscanconfigurations(
io_filtercriteria = new /aws1/cl_in2lstcisscanconfsf00(
it_scanconfarnfilters = VALUE /aws1/cl_in2cisstringfilter=>tt_cisscanconfarnfilterlist(
(
new /aws1/cl_in2cisstringfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_scannamefilters = VALUE /aws1/cl_in2cisstringfilter=>tt_cisscannamefilterlist(
(
new /aws1/cl_in2cisstringfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_targetresourcetagfilters = VALUE /aws1/cl_in2tagfilter=>tt_resourcetagfilterlist(
(
new /aws1/cl_in2tagfilter(
iv_comparison = |string|
iv_key = |string|
iv_value = |string|
)
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_sortby = |string|
iv_sortorder = |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_scanconfigurations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_cisscanconfigurationarn = lo_row_1->get_scanconfigurationarn( ).
lv_cisownerid = lo_row_1->get_ownerid( ).
lv_cisscanname = lo_row_1->get_scanname( ).
lv_cissecuritylevel = lo_row_1->get_securitylevel( ).
lo_schedule = lo_row_1->get_schedule( ).
IF lo_schedule IS NOT INITIAL.
lo_onetimeschedule = lo_schedule->get_onetime( ).
IF lo_onetimeschedule IS NOT INITIAL.
ENDIF.
lo_dailyschedule = lo_schedule->get_daily( ).
IF lo_dailyschedule IS NOT INITIAL.
lo_time = lo_dailyschedule->get_starttime( ).
IF lo_time IS NOT INITIAL.
lv_timeofday = lo_time->get_timeofday( ).
lv_timezone = lo_time->get_timezone( ).
ENDIF.
ENDIF.
lo_weeklyschedule = lo_schedule->get_weekly( ).
IF lo_weeklyschedule IS NOT INITIAL.
lo_time = lo_weeklyschedule->get_starttime( ).
IF lo_time IS NOT INITIAL.
lv_timeofday = lo_time->get_timeofday( ).
lv_timezone = lo_time->get_timezone( ).
ENDIF.
LOOP AT lo_weeklyschedule->get_days( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_day = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_monthlyschedule = lo_schedule->get_monthly( ).
IF lo_monthlyschedule IS NOT INITIAL.
lo_time = lo_monthlyschedule->get_starttime( ).
IF lo_time IS NOT INITIAL.
lv_timeofday = lo_time->get_timeofday( ).
lv_timezone = lo_time->get_timezone( ).
ENDIF.
lv_day = lo_monthlyschedule->get_day( ).
ENDIF.
ENDIF.
lo_cistargets = lo_row_1->get_targets( ).
IF lo_cistargets IS NOT INITIAL.
LOOP AT lo_cistargets->get_accountids( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_accountid = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_cistargets->get_targetresourcetags( ) into ls_row_6.
lv_key = ls_row_6-key.
LOOP AT ls_row_6-value into lo_row_7.
lo_row_8 = lo_row_7.
IF lo_row_8 IS NOT INITIAL.
lv_targetresourcetagsvalue = lo_row_8->get_value( ).
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_tags( ) into ls_row_9.
lv_key_1 = ls_row_9-key.
lo_value = ls_row_9-value.
IF lo_value IS NOT INITIAL.
lv_mapvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
Sample ListCisScanConfigurations Call¶
Sample ListCisScanConfigurations Call
DATA(lo_result) = lo_client->/aws1/if_in2~listcisscanconfigurations( ).