/AWS1/IF_IN2=>LISTCISSCANS()¶
About ListCisScans¶
Returns a CIS scan list.
Method Signature¶
METHODS /AWS1/IF_IN2~LISTCISSCANS
IMPORTING
!IO_FILTERCRITERIA TYPE REF TO /AWS1/CL_IN2LSTCISSCANSFILTC00 OPTIONAL
!IV_DETAILLEVEL TYPE /AWS1/IN2LISTCISSCANSDETLEVEL OPTIONAL
!IV_SORTBY TYPE /AWS1/IN2LISTCISSCANSSORTBY OPTIONAL
!IV_SORTORDER TYPE /AWS1/IN2CISSORTORDER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/IN2NEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/IN2LISTCISSCANSMAXRSLTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2listcisscansrsp
RAISING
/AWS1/CX_IN2ACCESSDENIEDEX
/AWS1/CX_IN2INTERNALSERVEREX
/AWS1/CX_IN2THROTTLINGEX
/AWS1/CX_IN2VALIDATIONEX
/AWS1/CX_IN2CLIENTEXC
/AWS1/CX_IN2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_filtercriteria TYPE REF TO /AWS1/CL_IN2LSTCISSCANSFILTC00 /AWS1/CL_IN2LSTCISSCANSFILTC00¶
The CIS scan filter criteria.
iv_detaillevel TYPE /AWS1/IN2LISTCISSCANSDETLEVEL /AWS1/IN2LISTCISSCANSDETLEVEL¶
The detail applied to the CIS scan.
iv_sortby TYPE /AWS1/IN2LISTCISSCANSSORTBY /AWS1/IN2LISTCISSCANSSORTBY¶
The CIS scans sort by order.
iv_sortorder TYPE /AWS1/IN2CISSORTORDER /AWS1/IN2CISSORTORDER¶
The CIS scans sort 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/IN2LISTCISSCANSMAXRSLTS /AWS1/IN2LISTCISSCANSMAXRSLTS¶
The maximum number of results to be returned.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_in2listcisscansrsp /AWS1/CL_IN2LISTCISSCANSRSP¶
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->listcisscans(
io_filtercriteria = new /aws1/cl_in2lstcisscansfiltc00(
it_failedchecksfilters = VALUE /aws1/cl_in2cisnumberfilter=>tt_cisnumberfilterlist(
(
new /aws1/cl_in2cisnumberfilter(
iv_lowerinclusive = 123
iv_upperinclusive = 123
)
)
)
it_scanarnfilters = VALUE /aws1/cl_in2cisstringfilter=>tt_cisscanarnfilterlist(
(
new /aws1/cl_in2cisstringfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_scanatfilters = VALUE /aws1/cl_in2cisdatefilter=>tt_cisscandatefilterlist(
(
new /aws1/cl_in2cisdatefilter(
iv_earliestscanstarttime = '20150101000000.0000000'
iv_latestscanstarttime = '20150101000000.0000000'
)
)
)
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_scanstatusfilters = VALUE /aws1/cl_in2cisscanstatfilter=>tt_cisscanstatusfilterlist(
(
new /aws1/cl_in2cisscanstatfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_scheduledbyfilters = VALUE /aws1/cl_in2cisstringfilter=>tt_cisscheduledbyfilterlist(
(
new /aws1/cl_in2cisstringfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_targetaccountidfilters = VALUE /aws1/cl_in2cisstringfilter=>tt_accountidfilterlist(
(
new /aws1/cl_in2cisstringfilter(
iv_comparison = |string|
iv_value = |string|
)
)
)
it_targetresourceidfilters = VALUE /aws1/cl_in2cisstringfilter=>tt_resourceidfilterlist(
(
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_detaillevel = |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_scans( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_cisscanarn = lo_row_1->get_scanarn( ).
lv_cisscanconfigurationarn = lo_row_1->get_scanconfigurationarn( ).
lv_cisscanstatus = lo_row_1->get_status( ).
lv_cisscanname = lo_row_1->get_scanname( ).
lv_timestamp = lo_row_1->get_scandate( ).
lv_integer = lo_row_1->get_failedchecks( ).
lv_integer = lo_row_1->get_totalchecks( ).
lo_cistargets = lo_row_1->get_targets( ).
IF lo_cistargets IS NOT INITIAL.
LOOP AT lo_cistargets->get_accountids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_accountid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_cistargets->get_targetresourcetags( ) into ls_row_4.
lv_key = ls_row_4-key.
LOOP AT ls_row_4-value into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_targetresourcetagsvalue = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDLOOP.
ENDIF.
lv_string = lo_row_1->get_scheduledby( ).
lv_cissecuritylevel = lo_row_1->get_securitylevel( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
Sample ListCisScans Call¶
Sample ListCisScans Call
DATA(lo_result) = lo_client->listcisscans( ).