/AWS1/IF_IOT=>LISTAUDITMIGACTIONSEXECS()¶
About ListAuditMitigationActionsExecutions¶
Gets the status of audit mitigation action tasks that were executed.
Requires permission to access the ListAuditMitigationActionsExecutions action.
Method Signature¶
METHODS /AWS1/IF_IOT~LISTAUDITMIGACTIONSEXECS
IMPORTING
!IV_TASKID TYPE /AWS1/IOTMIGACTIONSTASKID OPTIONAL
!IV_ACTIONSTATUS TYPE /AWS1/IOTAUDITMIGACTSEXECSTAT OPTIONAL
!IV_FINDINGID TYPE /AWS1/IOTFINDINGID OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/IOTMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/IOTNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotlstaudmigactexsrsp
RAISING
/AWS1/CX_IOTINTERNALFAILUREEX
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_taskid TYPE /AWS1/IOTMIGACTIONSTASKID /AWS1/IOTMIGACTIONSTASKID¶
Specify this filter to limit results to actions for a specific audit mitigation actions task.
iv_findingid TYPE /AWS1/IOTFINDINGID /AWS1/IOTFINDINGID¶
Specify this filter to limit results to those that were applied to a specific audit finding.
Optional arguments:¶
iv_actionstatus TYPE /AWS1/IOTAUDITMIGACTSEXECSTAT /AWS1/IOTAUDITMIGACTSEXECSTAT¶
Specify this filter to limit results to those with a specific status.
iv_maxresults TYPE /AWS1/IOTMAXRESULTS /AWS1/IOTMAXRESULTS¶
The maximum number of results to return at one time. The default is 25.
iv_nexttoken TYPE /AWS1/IOTNEXTTOKEN /AWS1/IOTNEXTTOKEN¶
The token for the next set of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotlstaudmigactexsrsp /AWS1/CL_IOTLSTAUDMIGACTEXSRSP¶
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->listauditmigactionsexecs(
iv_actionstatus = |string|
iv_findingid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_taskid = |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_actionsexecutions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_mitigationactionstaskid = lo_row_1->get_taskid( ).
lv_findingid = lo_row_1->get_findingid( ).
lv_mitigationactionname = lo_row_1->get_actionname( ).
lv_mitigationactionid = lo_row_1->get_actionid( ).
lv_auditmitigationactionse = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_starttime( ).
lv_timestamp = lo_row_1->get_endtime( ).
lv_errorcode = lo_row_1->get_errorcode( ).
lv_errormessage = lo_row_1->get_message( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.