/AWS1/IF_MPB=>CREATEINBOUNDEXTERNALLINK()¶
About CreateInboundExternalLink¶
Creates an inbound external link.
Method Signature¶
METHODS /AWS1/IF_MPB~CREATEINBOUNDEXTERNALLINK
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/MPBSTRING OPTIONAL
!IV_GATEWAYID TYPE /AWS1/MPBGATEWAYID OPTIONAL
!IO_ATTRIBUTES TYPE REF TO /AWS1/CL_MPBLINKATTRIBUTES OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MPBTAGSMAP_W=>TT_TAGSMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mpbcreindbexternall01
RAISING
/AWS1/CX_MPBACCESSDENIEDEX
/AWS1/CX_MPBCONFLICTEXCEPTION
/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.
Optional arguments:¶
io_attributes TYPE REF TO /AWS1/CL_MPBLINKATTRIBUTES /AWS1/CL_MPBLINKATTRIBUTES¶
Attributes of the link.
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_mpbcreindbexternall01 /AWS1/CL_MPBCREINDBEXTERNALL01¶
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->createinboundexternallink(
io_attributes = new /aws1/cl_mpblinkattributes(
it_respondererrormasking = VALUE /aws1/cl_mpbrsrerrmskforhttp00=>tt_respondererrormasking(
(
new /aws1/cl_mpbrsrerrmskforhttp00(
it_loggingtypes = VALUE /aws1/cl_mpbrsrerrmsklogtype00=>tt_resperrormaskinglogtypes(
( new /aws1/cl_mpbrsrerrmsklogtype00( |string| ) )
)
iv_action = |string|
iv_httpcode = |string|
iv_responseloggingpercentage = '0.1'
)
)
)
iv_customerprovidedid = |string|
)
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|
).
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( ).
lv_domainname = lo_result->get_domainname( ).
ENDIF.
Create an inbound external link¶
Create an inbound external link for a responder gateway
DATA(lo_result) = lo_client->createinboundexternallink(
iv_clienttoken = |randomClientToken|
iv_gatewayid = |rtb-gw-12345678|
).