Skip to content

/AWS1/IF_MDX=>GETROUTERNETWORKINTERFACE()

About GetRouterNetworkInterface

Retrieves information about a specific router network interface in AWS Elemental MediaConnect.

Method Signature

METHODS /AWS1/IF_MDX~GETROUTERNETWORKINTERFACE
  IMPORTING
    !IV_ARN TYPE /AWS1/MDXROUTERNETWORKIFACEARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdxgetrtrnetifacersp
  RAISING
    /AWS1/CX_MDXBADREQUESTEX
    /AWS1/CX_MDXCONFLICTEXCEPTION
    /AWS1/CX_MDXFORBIDDENEXCEPTION
    /AWS1/CX_MDXINTERNALSERVERER00
    /AWS1/CX_MDXNOTFOUNDEXCEPTION
    /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:

iv_arn TYPE /AWS1/MDXROUTERNETWORKIFACEARN /AWS1/MDXROUTERNETWORKIFACEARN

The Amazon Resource Name (ARN) of the router network interface that you want to retrieve information about.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdxgetrtrnetifacersp /AWS1/CL_MDXGETRTRNETIFACERSP

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->getrouternetworkinterface( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_routernetworkinterface = lo_result->get_routernetworkinterface( ).
  IF lo_routernetworkinterface IS NOT INITIAL.
    lv_string = lo_routernetworkinterface->get_name( ).
    lv_routernetworkinterfacea = lo_routernetworkinterface->get_arn( ).
    lv_string = lo_routernetworkinterface->get_id( ).
    lv_routernetworkinterfaces = lo_routernetworkinterface->get_state( ).
    lv_routernetworkinterfacet = lo_routernetworkinterface->get_networkinterfacetype( ).
    lo_routernetworkinterfacec = lo_routernetworkinterface->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.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_string = lo_row_1->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_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_string = lo_vpcrouternetworkinterfa->get_subnetid( ).
      ENDIF.
    ENDIF.
    lv_integer = lo_routernetworkinterface->get_associatedoutputcount( ).
    lv_integer = lo_routernetworkinterface->get_associatedinputcount( ).
    lv_string = lo_routernetworkinterface->get_regionname( ).
    lv_timestamp = lo_routernetworkinterface->get_createdat( ).
    lv_timestamp = lo_routernetworkinterface->get_updatedat( ).
    LOOP AT lo_routernetworkinterface->get_tags( ) into ls_row_4.
      lv_key = ls_row_4-key.
      lo_value = ls_row_4-value.
      IF lo_value IS NOT INITIAL.
        lv_string = lo_value->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.