/AWS1/CL_GLU=>LISTSESSIONS()
¶
About ListSessions¶
Retrieve a list of sessions.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/GLUORCHESTRATIONTOKEN
/AWS1/GLUORCHESTRATIONTOKEN
¶
The token for the next set of results, or null if there are no more result.
iv_maxresults
TYPE /AWS1/GLUPAGESIZE
/AWS1/GLUPAGESIZE
¶
The maximum number of results.
it_tags
TYPE /AWS1/CL_GLUTAGSMAP_W=>TT_TAGSMAP
TT_TAGSMAP
¶
Tags belonging to the session.
iv_requestorigin
TYPE /AWS1/GLUORCHESTRATIONNAMESTR
/AWS1/GLUORCHESTRATIONNAMESTR
¶
The origin of the request.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_glulistsessionsrsp
/AWS1/CL_GLULISTSESSIONSRSP
¶
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_glu~listsessions(
it_tags = VALUE /aws1/cl_glutagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_glutagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_glutagsmap_w( |string| )
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_requestorigin = |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_ids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_namestring = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_sessions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_namestring = lo_row_3->get_id( ).
lv_timestampvalue = lo_row_3->get_createdon( ).
lv_sessionstatus = lo_row_3->get_status( ).
lv_descriptionstring = lo_row_3->get_errormessage( ).
lv_descriptionstring = lo_row_3->get_description( ).
lv_orchestrationrolearn = lo_row_3->get_role( ).
lo_sessioncommand = lo_row_3->get_command( ).
IF lo_sessioncommand IS NOT INITIAL.
lv_namestring = lo_sessioncommand->get_name( ).
lv_pythonversionstring = lo_sessioncommand->get_pythonversion( ).
ENDIF.
LOOP AT lo_row_3->get_defaultarguments( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_orchestrationargumentsv = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_connectionslist = lo_row_3->get_connections( ).
IF lo_connectionslist IS NOT INITIAL.
LOOP AT lo_connectionslist->get_connections( ) into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_connectionstring = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_doublevalue = lo_row_3->get_progress( ).
lv_nullabledouble = lo_row_3->get_maxcapacity( ).
lv_namestring = lo_row_3->get_securityconfiguration( ).
lv_glueversionstring = lo_row_3->get_glueversion( ).
lv_nullableinteger = lo_row_3->get_numberofworkers( ).
lv_workertype = lo_row_3->get_workertype( ).
lv_timestampvalue = lo_row_3->get_completedon( ).
lv_nullabledouble = lo_row_3->get_executiontime( ).
lv_nullabledouble = lo_row_3->get_dpuseconds( ).
lv_idletimeout = lo_row_3->get_idletimeout( ).
lv_namestring = lo_row_3->get_profilename( ).
ENDIF.
ENDLOOP.
lv_orchestrationtoken = lo_result->get_nexttoken( ).
ENDIF.