Skip to content

/AWS1/IF_MPB=>CREATEOUTBOUNDEXTERNALLINK()

Creates an outbound external link.

Method Signature

METHODS /AWS1/IF_MPB~CREATEOUTBOUNDEXTERNALLINK
  IMPORTING
    !IV_CLIENTTOKEN TYPE /AWS1/MPBSTRING OPTIONAL
    !IV_GATEWAYID TYPE /AWS1/MPBGATEWAYID OPTIONAL
    !IV_PUBLICENDPOINT TYPE /AWS1/MPBURL OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_MPBTAGSMAP_W=>TT_TAGSMAP OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpbcreoutboundexter01
  RAISING
    /AWS1/CX_MPBACCESSDENIEDEX
    /AWS1/CX_MPBINTERNALSERVEREX
    /AWS1/CX_MPBRESOURCENOTFOUNDEX
    /AWS1/CX_MPBSERVICEQUOTAEXCDEX
    /AWS1/CX_MPBTHROTTLINGEX
    /AWS1/CX_MPBVALIDATIONEX
    /AWS1/CX_MPBCLIENTEXC
    /AWS1/CX_MPBSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_clienttoken TYPE /AWS1/MPBSTRING /AWS1/MPBSTRING

The unique client token.

iv_gatewayid TYPE /AWS1/MPBGATEWAYID /AWS1/MPBGATEWAYID

The unique identifier of the gateway.

iv_publicendpoint TYPE /AWS1/MPBURL /AWS1/MPBURL

The public endpoint of the link.

Optional arguments:

it_tags TYPE /AWS1/CL_MPBTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP

A map of the key-value pairs of the tag or tags to assign to the resource.

RETURNING

oo_output TYPE REF TO /aws1/cl_mpbcreoutboundexter01 /AWS1/CL_MPBCREOUTBOUNDEXTER01

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->createoutboundexternallink(
  it_tags = VALUE /aws1/cl_mpbtagsmap_w=>tt_tagsmap(
    (
      VALUE /aws1/cl_mpbtagsmap_w=>ts_tagsmap_maprow(
        key = |string|
        value = new /aws1/cl_mpbtagsmap_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_gatewayid = |string|
  iv_publicendpoint = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_gatewayid = lo_result->get_gatewayid( ).
  lv_linkid = lo_result->get_linkid( ).
  lv_linkstatus = lo_result->get_status( ).
ENDIF.

Create an outbound external link for a requester gateway to connect to external public responder endpoints

DATA(lo_result) = lo_client->createoutboundexternallink(
  iv_clienttoken = |12345678-1234-1234-1234-123456789012|
  iv_gatewayid = |rtb-gw-12345678|
  iv_publicendpoint = |https://external-responder.example.com|
).