/AWS1/IF_DOA=>REGISTERSERVICE()¶
About RegisterService¶
This operation registers the specified service
Method Signature¶
METHODS /AWS1/IF_DOA~REGISTERSERVICE
IMPORTING
!IV_SERVICE TYPE /AWS1/DOAPOSTREGSVCSUPPSVC OPTIONAL
!IO_SERVICEDETAILS TYPE REF TO /AWS1/CL_DOASERVICEDETAILS OPTIONAL
!IV_KMSKEYARN TYPE /AWS1/DOAKMSKEYARN OPTIONAL
!IV_PRIVATECONNECTIONNAME TYPE /AWS1/DOAPRIVATECONNECTIONNAME OPTIONAL
!IV_NAME TYPE /AWS1/DOASERVICENAME OPTIONAL
!IT_TAGS TYPE /AWS1/CL_DOATAGS_W=>TT_TAGS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_doaregserviceoutput
RAISING
/AWS1/CX_DOAACCESSDENIEDEX
/AWS1/CX_DOACONFLICTEXCEPTION
/AWS1/CX_DOACONTENTSIZEEXCDEX
/AWS1/CX_DOAINTERNALSERVEREX
/AWS1/CX_DOAINVALIDPARAMETEREX
/AWS1/CX_DOARESOURCENOTFOUNDEX
/AWS1/CX_DOASERVICEQUOTAEXCDEX
/AWS1/CX_DOATHROTTLINGEX
/AWS1/CX_DOAVLDTNEXCEPTION
/AWS1/CX_DOACLIENTEXC
/AWS1/CX_DOASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_service TYPE /AWS1/DOAPOSTREGSVCSUPPSVC /AWS1/DOAPOSTREGSVCSUPPSVC¶
Services that can be registered via the post-registration API (excludes OAuth 3LO services).
io_servicedetails TYPE REF TO /AWS1/CL_DOASERVICEDETAILS /AWS1/CL_DOASERVICEDETAILS¶
Service-specific authorization configuration parameters
Optional arguments:¶
iv_kmskeyarn TYPE /AWS1/DOAKMSKEYARN /AWS1/DOAKMSKEYARN¶
The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources.
iv_privateconnectionname TYPE /AWS1/DOAPRIVATECONNECTIONNAME /AWS1/DOAPRIVATECONNECTIONNAME¶
The name of the private connection to use for VPC connectivity.
iv_name TYPE /AWS1/DOASERVICENAME /AWS1/DOASERVICENAME¶
The display name for the service registration.
it_tags TYPE /AWS1/CL_DOATAGS_W=>TT_TAGS TT_TAGS¶
Tags to add to the Service at registration time.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_doaregserviceoutput /AWS1/CL_DOAREGSERVICEOUTPUT¶
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->registerservice(
io_servicedetails = new /aws1/cl_doaservicedetails(
io_azureidentity = new /aws1/cl_doaregdazureiddetails(
it_webidentitytokenaudiences = VALUE /aws1/cl_doawebidtokaudnclst_w=>tt_webidentitytokenaudnclist(
( new /aws1/cl_doawebidtokaudnclst_w( |string| ) )
)
iv_clientid = |string|
iv_tenantid = |string|
iv_webidentityrolearn = |string|
)
io_dynatrace = new /aws1/cl_doadynaservicedetails(
io_authorizationconfig = new /aws1/cl_doadynasvcauthconfig(
io_oauthclientcredentials = new /aws1/cl_doadynoauthclicreds00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
)
)
iv_accounturn = |string|
)
io_eventchannel = new /aws1/cl_doaeventchnldetails( |string| )
io_gitlab = new /aws1/cl_doagitlabdetails(
iv_groupid = |string|
iv_targeturl = |string|
iv_tokentype = |string|
iv_tokenvalue = |string|
)
io_mcpserver = new /aws1/cl_doamcpserverdetails(
io_authorizationconfig = new /aws1/cl_doamcpserverauthcfg(
io_apikey = new /aws1/cl_doamcpserverapikeycfg(
iv_apikeyheader = |string|
iv_apikeyname = |string|
iv_apikeyvalue = |string|
)
io_authorizationdiscovery = new /aws1/cl_doamcpsrvauthdisccfg( |string| )
io_bearertoken = new /aws1/cl_doamcpsrvbrertokencfg(
iv_authorizationheader = |string|
iv_tokenname = |string|
iv_tokenvalue = |string|
)
io_oauth3lo = new /aws1/cl_doamcpsrvoauth3locfg(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_authorizationurl = |string|
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
iv_returntoendpoint = |string|
iv_supportcodechallenge = ABAP_TRUE
)
io_oauthclientcredentials = new /aws1/cl_doamcpsrvoauthclicr00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
)
)
iv_description = |string|
iv_endpoint = |string|
iv_name = |string|
)
io_mcpserverdatadog = new /aws1/cl_doadatadogsvcdetails(
io_authorizationconfig = new /aws1/cl_doadatadogauthconfig( new /aws1/cl_doamcpsrvauthdisccfg( |string| ) )
iv_description = |string|
iv_endpoint = |string|
iv_name = |string|
)
io_mcpservergrafana = new /aws1/cl_doagrafanasvcdetails(
io_authorizationconfig = new /aws1/cl_doamcpserverauthcfg(
io_apikey = new /aws1/cl_doamcpserverapikeycfg(
iv_apikeyheader = |string|
iv_apikeyname = |string|
iv_apikeyvalue = |string|
)
io_authorizationdiscovery = new /aws1/cl_doamcpsrvauthdisccfg( |string| )
io_bearertoken = new /aws1/cl_doamcpsrvbrertokencfg(
iv_authorizationheader = |string|
iv_tokenname = |string|
iv_tokenvalue = |string|
)
io_oauth3lo = new /aws1/cl_doamcpsrvoauth3locfg(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_authorizationurl = |string|
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
iv_returntoendpoint = |string|
iv_supportcodechallenge = ABAP_TRUE
)
io_oauthclientcredentials = new /aws1/cl_doamcpsrvoauthclicr00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
)
)
iv_description = |string|
iv_endpoint = |string|
iv_name = |string|
)
io_mcpservernewrelic = new /aws1/cl_doanewrelicsvcdetails(
io_authorizationconfig = new /aws1/cl_doanewrelicsvcauthcfg(
io_apikey = new /aws1/cl_doanewrelicapikeycfg(
it_alertpolicyids = VALUE /aws1/cl_doanewrelicalertply00=>tt_newrelicalertpolicyids(
( new /aws1/cl_doanewrelicalertply00( |string| ) )
)
it_applicationids = VALUE /aws1/cl_doanewrelicappids_w=>tt_newrelicapplicationids(
( new /aws1/cl_doanewrelicappids_w( |string| ) )
)
it_entityguids = VALUE /aws1/cl_doanewrelicentguids_w=>tt_newrelicentityguids(
( new /aws1/cl_doanewrelicentguids_w( |string| ) )
)
iv_accountid = |string|
iv_apikey = |string|
iv_region = |string|
)
)
)
io_mcpserversplunk = new /aws1/cl_doamcpserverdetails(
io_authorizationconfig = new /aws1/cl_doamcpserverauthcfg(
io_apikey = new /aws1/cl_doamcpserverapikeycfg(
iv_apikeyheader = |string|
iv_apikeyname = |string|
iv_apikeyvalue = |string|
)
io_authorizationdiscovery = new /aws1/cl_doamcpsrvauthdisccfg( |string| )
io_bearertoken = new /aws1/cl_doamcpsrvbrertokencfg(
iv_authorizationheader = |string|
iv_tokenname = |string|
iv_tokenvalue = |string|
)
io_oauth3lo = new /aws1/cl_doamcpsrvoauth3locfg(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_authorizationurl = |string|
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
iv_returntoendpoint = |string|
iv_supportcodechallenge = ABAP_TRUE
)
io_oauthclientcredentials = new /aws1/cl_doamcpsrvoauthclicr00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
it_scopes = VALUE /aws1/cl_doascopes_w=>tt_scopes(
( new /aws1/cl_doascopes_w( |string| ) )
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
iv_exchangeurl = |string|
)
)
iv_description = |string|
iv_endpoint = |string|
iv_name = |string|
)
io_pagerduty = new /aws1/cl_doapagerdutydetails(
io_authorizationconfig = new /aws1/cl_doapagerdutyauthcfg(
io_oauthclientcredentials = new /aws1/cl_doapagerdutyoauthcl00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
)
)
it_scopes = VALUE /aws1/cl_doapagerdutyscopes_w=>tt_pagerdutyscopes(
( new /aws1/cl_doapagerdutyscopes_w( |string| ) )
)
)
io_servicenow = new /aws1/cl_doasvcnowsvcdetails(
io_authorizationconfig = new /aws1/cl_doasvcnowsvcauthcfg(
io_oauthclientcredentials = new /aws1/cl_doasvcnowoauthclicr00(
it_exchangeparameters = VALUE /aws1/cl_doaexchangeparams_w=>tt_exchangeparameters(
(
VALUE /aws1/cl_doaexchangeparams_w=>ts_exchangeparameters_maprow(
value = new /aws1/cl_doaexchangeparams_w( |string| )
key = |string|
)
)
)
iv_clientid = |string|
iv_clientname = |string|
iv_clientsecret = |string|
)
)
iv_instanceurl = |string|
)
)
it_tags = VALUE /aws1/cl_doatags_w=>tt_tags(
(
VALUE /aws1/cl_doatags_w=>ts_tags_maprow(
value = new /aws1/cl_doatags_w( |string| )
key = |string|
)
)
)
iv_kmskeyarn = |string|
iv_name = |string|
iv_privateconnectionname = |string|
iv_service = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_serviceid = lo_result->get_serviceid( ).
lo_additionalserviceregist = lo_result->get_additionalstep( ).
IF lo_additionalserviceregist IS NOT INITIAL.
lo_oauthadditionalstepdeta = lo_additionalserviceregist->get_oauth( ).
IF lo_oauthadditionalstepdeta IS NOT INITIAL.
lv_string = lo_oauthadditionalstepdeta->get_authorizationurl( ).
ENDIF.
ENDIF.
lv_kmskeyarn = lo_result->get_kmskeyarn( ).
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.