/AWS1/CL_APR=>LISTOPERATIONS()
¶
About ListOperations¶
Return a list of operations that occurred on an App Runner service.
The resulting list of OperationSummary objects is sorted in reverse chronological order. The first object on the list represents the last started operation.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_servicearn
TYPE /AWS1/APRAPPRUNNERRESOURCEARN
/AWS1/APRAPPRUNNERRESOURCEARN
¶
The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/APRSTRING
/AWS1/APRSTRING
¶
A token from a previous result page. It's used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don't specify
NextToken
, the request retrieves the first result page.
iv_maxresults
TYPE /AWS1/APRLISTOPSMAXRESULTS
/AWS1/APRLISTOPSMAXRESULTS
¶
The maximum number of results to include in each response (result page). It's used for a paginated request.
If you don't specify
MaxResults
, the request retrieves all available results in a single response.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_aprlistopsresponse
/AWS1/CL_APRLISTOPSRESPONSE
¶
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_apr~listoperations(
iv_maxresults = 123
iv_nexttoken = |string|
iv_servicearn = |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_operationsummarylist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_uuid = lo_row_1->get_id( ).
lv_operationtype = lo_row_1->get_type( ).
lv_operationstatus = lo_row_1->get_status( ).
lv_apprunnerresourcearn = lo_row_1->get_targetarn( ).
lv_timestamp = lo_row_1->get_startedat( ).
lv_timestamp = lo_row_1->get_endedat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.