/AWS1/IF_BUG=>CREATEGATEWAY()¶
About CreateGateway¶
Creates a backup gateway. After you create a gateway, you can associate it with a server
using the AssociateGatewayToServer operation.
Method Signature¶
METHODS /AWS1/IF_BUG~CREATEGATEWAY
IMPORTING
!IV_ACTIVATIONKEY TYPE /AWS1/BUGACTIVATIONKEY OPTIONAL
!IV_GATEWAYDISPLAYNAME TYPE /AWS1/BUGNAME OPTIONAL
!IV_GATEWAYTYPE TYPE /AWS1/BUGGATEWAYTYPE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_BUGTAG=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bugcreategwoutput
RAISING
/AWS1/CX_BUGINTERNALSERVEREX
/AWS1/CX_BUGTHROTTLINGEX
/AWS1/CX_BUGVALIDATIONEX
/AWS1/CX_BUGCLIENTEXC
/AWS1/CX_BUGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_activationkey TYPE /AWS1/BUGACTIVATIONKEY /AWS1/BUGACTIVATIONKEY¶
The activation key of the created gateway.
iv_gatewaydisplayname TYPE /AWS1/BUGNAME /AWS1/BUGNAME¶
The display name of the created gateway.
iv_gatewaytype TYPE /AWS1/BUGGATEWAYTYPE /AWS1/BUGGATEWAYTYPE¶
The type of created gateway.
Optional arguments:¶
it_tags TYPE /AWS1/CL_BUGTAG=>TT_TAGS TT_TAGS¶
A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bugcreategwoutput /AWS1/CL_BUGCREATEGWOUTPUT¶
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->creategateway(
it_tags = VALUE /aws1/cl_bugtag=>tt_tags(
(
new /aws1/cl_bugtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_activationkey = |string|
iv_gatewaydisplayname = |string|
iv_gatewaytype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_gatewayarn = lo_result->get_gatewayarn( ).
ENDIF.