/AWS1/IF_MDX=>BATCHGETROUTERNETWORKIFACE()¶
About BatchGetRouterNetworkInterface¶
Retrieves information about multiple router network interfaces in AWS Elemental MediaConnect.
Method Signature¶
METHODS /AWS1/IF_MDX~BATCHGETROUTERNETWORKIFACE
IMPORTING
!IT_ARNS TYPE /AWS1/CL_MDXRTRNETINTFARNLST_W=>TT_ROUTERNETWORKIFACEARNLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdxbtcgetrtrnetifrsp
RAISING
/AWS1/CX_MDXBADREQUESTEX
/AWS1/CX_MDXCONFLICTEXCEPTION
/AWS1/CX_MDXINTERNALSERVERER00
/AWS1/CX_MDXSERVICEUNAVAILEX
/AWS1/CX_MDXTOOMANYREQUESTSEX
/AWS1/CX_MDXCLIENTEXC
/AWS1/CX_MDXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_arns TYPE /AWS1/CL_MDXRTRNETINTFARNLST_W=>TT_ROUTERNETWORKIFACEARNLIST TT_ROUTERNETWORKIFACEARNLIST¶
The Amazon Resource Names (ARNs) of the router network interfaces you want to retrieve information about.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdxbtcgetrtrnetifrsp /AWS1/CL_MDXBTCGETRTRNETIFRSP¶
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->batchgetrouternetworkiface(
it_arns = VALUE /aws1/cl_mdxrtrnetintfarnlst_w=>tt_routernetworkifacearnlist(
( new /aws1/cl_mdxrtrnetintfarnlst_w( |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_routernetworkinterfaces( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_name( ).
lv_routernetworkinterfacea = lo_row_1->get_arn( ).
lv_string = lo_row_1->get_id( ).
lv_routernetworkinterfaces = lo_row_1->get_state( ).
lv_routernetworkinterfacet = lo_row_1->get_networkinterfacetype( ).
lo_routernetworkinterfacec = lo_row_1->get_configuration( ).
IF lo_routernetworkinterfacec IS NOT INITIAL.
lo_publicrouternetworkinte = lo_routernetworkinterfacec->get_public( ).
IF lo_publicrouternetworkinte IS NOT INITIAL.
LOOP AT lo_publicrouternetworkinte->get_allowrules( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_cidr( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_vpcrouternetworkinterfa = lo_routernetworkinterfacec->get_vpc( ).
IF lo_vpcrouternetworkinterfa IS NOT INITIAL.
LOOP AT lo_vpcrouternetworkinterfa->get_securitygroupids( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_vpcrouternetworkinterfa->get_subnetid( ).
ENDIF.
ENDIF.
lv_integer = lo_row_1->get_associatedoutputcount( ).
lv_integer = lo_row_1->get_associatedinputcount( ).
lv_string = lo_row_1->get_regionname( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
LOOP AT lo_row_1->get_tags( ) into ls_row_6.
lv_key = ls_row_6-key.
lo_value = ls_row_6-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_errors( ) into lo_row_7.
lo_row_8 = lo_row_7.
IF lo_row_8 IS NOT INITIAL.
lv_routernetworkinterfacea = lo_row_8->get_arn( ).
lv_string = lo_row_8->get_code( ).
lv_string = lo_row_8->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.