Skip to content

/AWS1/IF_LMC=>LISTNETWORKCONNECTORS()

About ListNetworkConnectors

Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the Marker parameter from a previous response to retrieve the next page of results.

Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use GetNetworkConnector.

Method Signature

METHODS /AWS1/IF_LMC~LISTNETWORKCONNECTORS
  IMPORTING
    !IV_STATE TYPE /AWS1/LMCNETWORKCONNECTORSTATE OPTIONAL
    !IV_MARKER TYPE /AWS1/LMCSTRING OPTIONAL
    !IV_MAXITEMS TYPE /AWS1/LMCMAXHUNDREDLISTITEMS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmclistnetworkcnctrsp
  RAISING
    /AWS1/CX_LMCINVPARAMVALUEEX
    /AWS1/CX_LMCSERVICEEXCEPTION
    /AWS1/CX_LMCTOOMANYREQUESTSEX
    /AWS1/CX_LMCCLIENTEXC
    /AWS1/CX_LMCSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_state TYPE /AWS1/LMCNETWORKCONNECTORSTATE /AWS1/LMCNETWORKCONNECTORSTATE

Optional filter to return only connectors in the specified state (for example, ACTIVE or FAILED).

iv_marker TYPE /AWS1/LMCSTRING /AWS1/LMCSTRING

The pagination token from a previous ListNetworkConnectors response. Use this value to retrieve the next page of results.

iv_maxitems TYPE /AWS1/LMCMAXHUNDREDLISTITEMS /AWS1/LMCMAXHUNDREDLISTITEMS

The maximum number of connectors to return per page. Valid range: 1 to 100.

RETURNING

oo_output TYPE REF TO /aws1/cl_lmclistnetworkcnctrsp /AWS1/CL_LMCLISTNETWORKCNCTRSP

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->listnetworkconnectors(
  iv_marker = |string|
  iv_maxitems = 123
  iv_state = |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_networkconnectors( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_networkconnectorarn = lo_row_1->get_arn( ).
      lv_networkconnectorname = lo_row_1->get_name( ).
      lv_networkconnectorid = lo_row_1->get_id( ).
      lv_networkconnectortype = lo_row_1->get_type( ).
      lv_networkconnectorstate = lo_row_1->get_state( ).
      lv_coretimestamp = lo_row_1->get_lastmodified( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nextmarker( ).
ENDIF.