Skip to content

/AWS1/CL_IOX=>GETCLOUDCONNECTOR()

About GetCloudConnector

Gets all the information about a connector for a connector developer.

Method Signature

IMPORTING

Required arguments:

iv_identifier TYPE /AWS1/IOXCLOUDCONNECTORID /AWS1/IOXCLOUDCONNECTORID

The identifier of the C2C connector.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioxgetcloudcnctorrsp /AWS1/CL_IOXGETCLOUDCNCTORRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

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->/aws1/if_iox~getcloudconnector( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_displayname = lo_result->get_name( ).
  lo_endpointconfig = lo_result->get_endpointconfig( ).
  IF lo_endpointconfig IS NOT INITIAL.
    lo_lambdaconfig = lo_endpointconfig->get_lambda( ).
    IF lo_lambdaconfig IS NOT INITIAL.
      lv_lambdaarn = lo_lambdaconfig->get_arn( ).
    ENDIF.
  ENDIF.
  lv_cloudconnectordescripti = lo_result->get_description( ).
  lv_endpointtype = lo_result->get_endpointtype( ).
  lv_cloudconnectorid = lo_result->get_id( ).
  lv_cloudconnectortype = lo_result->get_type( ).
ENDIF.

GetCloudConnector happy path for TP Link to get connector resource

DATA(lo_result) = lo_client->/aws1/if_iox~getcloudconnector( |123456789012| ).

GetCloudConnector happy path for Ring to pending status

GetCloudConnector happy path for Ring to pending status

DATA(lo_result) = lo_client->/aws1/if_iox~getcloudconnector( |123456789012| ).

GetCloudConnector error Id for Ring connector which does not exist

GetCloudConnector error Id for Ring connector which does not exist

DATA(lo_result) = lo_client->/aws1/if_iox~getcloudconnector( |123456789012| ).