/AWS1/IF_BDO=>GETAGENTRUNTIME()
¶
About GetAgentRuntime¶
Gets an Amazon Secure Agent.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_agentruntimeid
TYPE /AWS1/BDOAGENTRUNTIMEID
/AWS1/BDOAGENTRUNTIMEID
¶
The unique identifier of the agent runtime to retrieve.
Optional arguments:¶
iv_agentruntimeversion
TYPE /AWS1/BDOAGENTRUNTIMEVERSION
/AWS1/BDOAGENTRUNTIMEVERSION
¶
The version of the agent runtime to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdogetagentruntimersp
/AWS1/CL_BDOGETAGENTRUNTIMERSP
¶
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_bdo~getagentruntime(
iv_agentruntimeid = |string|
iv_agentruntimeversion = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_agentruntimearn = lo_result->get_agentruntimearn( ).
lo_workloadidentitydetails = lo_result->get_workloadidentitydetails( ).
IF lo_workloadidentitydetails IS NOT INITIAL.
lv_workloadidentityarn = lo_workloadidentitydetails->get_workloadidentityarn( ).
ENDIF.
lv_agentruntimename = lo_result->get_agentruntimename( ).
lv_description = lo_result->get_description( ).
lv_agentruntimeid = lo_result->get_agentruntimeid( ).
lv_agentruntimeversion = lo_result->get_agentruntimeversion( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_datetimestamp = lo_result->get_lastupdatedat( ).
lv_rolearn = lo_result->get_rolearn( ).
lo_agentartifact = lo_result->get_agentruntimeartifact( ).
IF lo_agentartifact IS NOT INITIAL.
lo_containerconfiguration = lo_agentartifact->get_containerconfiguration( ).
IF lo_containerconfiguration IS NOT INITIAL.
lv_runtimecontaineruri = lo_containerconfiguration->get_containeruri( ).
ENDIF.
ENDIF.
lo_networkconfiguration = lo_result->get_networkconfiguration( ).
IF lo_networkconfiguration IS NOT INITIAL.
lv_networkmode = lo_networkconfiguration->get_networkmode( ).
ENDIF.
lo_protocolconfiguration = lo_result->get_protocolconfiguration( ).
IF lo_protocolconfiguration IS NOT INITIAL.
lv_serverprotocol = lo_protocolconfiguration->get_serverprotocol( ).
ENDIF.
LOOP AT lo_result->get_environmentvariables( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_environmentvariablevalu = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_authorizerconfiguration = lo_result->get_authorizerconfiguration( ).
IF lo_authorizerconfiguration IS NOT INITIAL.
lo_customjwtauthorizerconf = lo_authorizerconfiguration->get_customjwtauthorizer( ).
IF lo_customjwtauthorizerconf IS NOT INITIAL.
lv_discoveryurl = lo_customjwtauthorizerconf->get_discoveryurl( ).
LOOP AT lo_customjwtauthorizerconf->get_allowedaudience( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lv_allowedaudience = lo_row_2->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customjwtauthorizerconf->get_allowedclients( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_allowedclient = lo_row_4->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_agentstatus = lo_result->get_status( ).
ENDIF.