Skip to content

/AWS1/IF_MDX=>LISTROUTERNETWORKINTERFACES()

About ListRouterNetworkInterfaces

Retrieves a list of router network interfaces in AWS Elemental MediaConnect.

Method Signature

METHODS /AWS1/IF_MDX~LISTROUTERNETWORKINTERFACES
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/MDXINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/MDXSTRING OPTIONAL
    !IT_FILTERS TYPE /AWS1/CL_MDXROUTERNETIFACEFILT=>TT_ROUTERNETIFACEFILTERLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdxlstrtrnetifacesrsp
  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

Optional arguments:

iv_maxresults TYPE /AWS1/MDXINTEGER /AWS1/MDXINTEGER

The maximum number of router network interfaces to return in the response.

iv_nexttoken TYPE /AWS1/MDXSTRING /AWS1/MDXSTRING

A token used to retrieve the next page of results.

it_filters TYPE /AWS1/CL_MDXROUTERNETIFACEFILT=>TT_ROUTERNETIFACEFILTERLIST TT_ROUTERNETIFACEFILTERLIST

The filters to apply when retrieving the list of router network interfaces.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdxlstrtrnetifacesrsp /AWS1/CL_MDXLSTRTRNETIFACESRSP

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->listrouternetworkinterfaces(
  it_filters = VALUE /aws1/cl_mdxrouternetifacefilt=>tt_routernetifacefilterlist(
    (
      new /aws1/cl_mdxrouternetifacefilt(
        it_namecontains = VALUE /aws1/cl_mdxstringlist_w=>tt_stringlist(
          ( new /aws1/cl_mdxstringlist_w( |string| ) )
        )
        it_networkinterfacetypes = VALUE /aws1/cl_mdxrtrnetiftypelist_w=>tt_routernetworkifacetypelist(
          ( new /aws1/cl_mdxrtrnetiftypelist_w( |string| ) )
        )
        it_regionnames = VALUE /aws1/cl_mdxstringlist_w=>tt_stringlist(
          ( new /aws1/cl_mdxstringlist_w( |string| ) )
        )
      )
    )
  )
  iv_maxresults = 123
  iv_nexttoken = |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_routernetworkinterfacet = lo_row_1->get_networkinterfacetype( ).
      lv_integer = lo_row_1->get_associatedoutputcount( ).
      lv_integer = lo_row_1->get_associatedinputcount( ).
      lv_routernetworkinterfaces = lo_row_1->get_state( ).
      lv_string = lo_row_1->get_regionname( ).
      lv_timestamp = lo_row_1->get_createdat( ).
      lv_timestamp = lo_row_1->get_updatedat( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.