/AWS1/CL_DSR=>LISTADASSESSMENTS()
¶
About ListADAssessments¶
Retrieves a list of directory assessments for the specified directory or all assessments in your account. Use this operation to monitor assessment status and manage multiple assessments.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_directoryid
TYPE /AWS1/DSRDIRECTORYID
/AWS1/DSRDIRECTORYID
¶
The identifier of the directory for which to list assessments. If not specified, all assessments in your account are returned.
iv_nexttoken
TYPE /AWS1/DSRNEXTTOKEN
/AWS1/DSRNEXTTOKEN
¶
The pagination token from a previous request to ListADAssessments. Pass null if this is the first request.
iv_limit
TYPE /AWS1/DSRASSESSMENTLIMIT
/AWS1/DSRASSESSMENTLIMIT
¶
The maximum number of assessment summaries to return.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_dsrlstadassessmentsrs
/AWS1/CL_DSRLSTADASSESSMENTSRS
¶
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_dsr~listadassessments(
iv_directoryid = |string|
iv_limit = 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_assessments( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_assessmentid = lo_row_1->get_assessmentid( ).
lv_directoryid = lo_row_1->get_directoryid( ).
lv_directoryname = lo_row_1->get_dnsname( ).
lv_assessmentstarttime = lo_row_1->get_starttime( ).
lv_lastupdatedatetime = lo_row_1->get_lastupdatedatetime( ).
lv_assessmentstatus = lo_row_1->get_status( ).
LOOP AT lo_row_1->get_customerdnsips( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_ipaddr = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_assessmentreporttype = lo_row_1->get_reporttype( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.