/AWS1/IF_LMC=>GETNETWORKCONNECTOR()¶
About GetNetworkConnector¶
Retrieves the current configuration, state, and metadata of a network connector. The Identifier parameter accepts the connector ID, name, or full ARN. Use this operation to poll connector state after creation or update, or to inspect the current VPC configuration and any failure reasons.
The response includes the full connector configuration, current state, and — if the connector has been updated — the LastUpdateStatus and LastUpdateStatusReasonCode fields that indicate whether the most recent update succeeded or failed.
Method Signature¶
METHODS /AWS1/IF_LMC~GETNETWORKCONNECTOR
IMPORTING
!IV_IDENTIFIER TYPE /AWS1/LMCNETWORKCONNECTORID00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmcgetnetworkcnctrrsp
RAISING
/AWS1/CX_LMCINVPARAMVALUEEX
/AWS1/CX_LMCRESOURCENOTFOUNDEX
/AWS1/CX_LMCSERVICEEXCEPTION
/AWS1/CX_LMCTOOMANYREQUESTSEX
/AWS1/CX_LMCCLIENTEXC
/AWS1/CX_LMCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identifier TYPE /AWS1/LMCNETWORKCONNECTORID00 /AWS1/LMCNETWORKCONNECTORID00¶
A flexible identifier that accepts a network connector ID, name, or ARN
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmcgetnetworkcnctrrsp /AWS1/CL_LMCGETNETWORKCNCTRRSP¶
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->getnetworkconnector( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_networkconnectorarn = lo_result->get_arn( ).
lv_networkconnectorname = lo_result->get_name( ).
lv_networkconnectorid = lo_result->get_id( ).
lv_networkconnectorversion = lo_result->get_version( ).
lo_networkconnectorconfigu = lo_result->get_configuration( ).
IF lo_networkconnectorconfigu IS NOT INITIAL.
lo_networkconnectorvpcegre = lo_networkconnectorconfigu->get_vpcegressconfiguration( ).
IF lo_networkconnectorvpcegre IS NOT INITIAL.
LOOP AT lo_networkconnectorvpcegre->get_subnetids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_networkconnectorsubneti = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_networkconnectorvpcegre->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_networkconnectorsecurit = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_networkprotocol = lo_networkconnectorvpcegre->get_networkprotocol( ).
LOOP AT lo_networkconnectorvpcegre->get_assoccomputerestypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_computeresourcetype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_networkconnectorrolearn = lo_result->get_operatorrole( ).
lv_networkconnectorstate = lo_result->get_state( ).
lv_string = lo_result->get_statereason( ).
lv_networkconnectorstatere = lo_result->get_statereasoncode( ).
lv_networkconnectorlastupd = lo_result->get_lastupdatestatus( ).
lv_networkconnectorlastupd_1 = lo_result->get_lastupdatestatusreason( ).
lv_networkconnectorlastupd_2 = lo_result->get_lastupdatestatusrc( ).
lv_coretimestamp = lo_result->get_lastmodified( ).
ENDIF.