Skip to content

/AWS1/IF_DOA=>ENABLEOPERATORAPP()

About EnableOperatorApp

Enable the Operator App to access the given AgentSpace

Method Signature

METHODS /AWS1/IF_DOA~ENABLEOPERATORAPP
  IMPORTING
    !IV_AGENTSPACEID TYPE /AWS1/DOAAGENTSPACEID OPTIONAL
    !IV_AUTHFLOW TYPE /AWS1/DOAAUTHFLOW OPTIONAL
    !IV_OPERATORAPPROLEARN TYPE /AWS1/DOAROLEARN OPTIONAL
    !IV_IDCINSTANCEARN TYPE /AWS1/DOASTRING OPTIONAL
    !IV_ISSUERURL TYPE /AWS1/DOASTRING OPTIONAL
    !IV_IDPCLIENTID TYPE /AWS1/DOAIDPCLIENTID OPTIONAL
    !IV_IDPCLIENTSECRET TYPE /AWS1/DOAIDPCLIENTSECRET OPTIONAL
    !IV_PROVIDER TYPE /AWS1/DOASTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_doaenableopappoutput
  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_DOAIDCENTERSERVICEEX
    /AWS1/CX_DOAVLDTNEXCEPTION
    /AWS1/CX_DOACLIENTEXC
    /AWS1/CX_DOASERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_agentspaceid TYPE /AWS1/DOAAGENTSPACEID /AWS1/DOAAGENTSPACEID

The unique identifier of the AgentSpace

iv_authflow TYPE /AWS1/DOAAUTHFLOW /AWS1/DOAAUTHFLOW

The authentication flow configured for the operator App. e.g. iam or idc

iv_operatorapprolearn TYPE /AWS1/DOAROLEARN /AWS1/DOAROLEARN

The IAM role end users assume to access AIDevOps APIs

Optional arguments:

iv_idcinstancearn TYPE /AWS1/DOASTRING /AWS1/DOASTRING

The IdC instance Arn used to create an IdC auth application

iv_issuerurl TYPE /AWS1/DOASTRING /AWS1/DOASTRING

The OIDC issuer URL of the external Identity Provider

iv_idpclientid TYPE /AWS1/DOAIDPCLIENTID /AWS1/DOAIDPCLIENTID

The OIDC client ID for the IdP application

iv_idpclientsecret TYPE /AWS1/DOAIDPCLIENTSECRET /AWS1/DOAIDPCLIENTSECRET

The OIDC client secret for the IdP application

iv_provider TYPE /AWS1/DOASTRING /AWS1/DOASTRING

The Identity Provider name (e.g., Entra, Okta, Google)

RETURNING

oo_output TYPE REF TO /aws1/cl_doaenableopappoutput /AWS1/CL_DOAENABLEOPAPPOUTPUT

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->enableoperatorapp(
  iv_agentspaceid = |string|
  iv_authflow = |string|
  iv_idcinstancearn = |string|
  iv_idpclientid = |string|
  iv_idpclientsecret = |string|
  iv_issuerurl = |string|
  iv_operatorapprolearn = |string|
  iv_provider = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_agentspaceid = lo_result->get_agentspaceid( ).
  lo_iamauthconfiguration = lo_result->get_iam( ).
  IF lo_iamauthconfiguration IS NOT INITIAL.
    lv_string = lo_iamauthconfiguration->get_operatorapprolearn( ).
    lv_timestamp = lo_iamauthconfiguration->get_createdat( ).
    lv_timestamp = lo_iamauthconfiguration->get_updatedat( ).
  ENDIF.
  lo_idcauthconfiguration = lo_result->get_idc( ).
  IF lo_idcauthconfiguration IS NOT INITIAL.
    lv_string = lo_idcauthconfiguration->get_operatorapprolearn( ).
    lv_string = lo_idcauthconfiguration->get_idcinstancearn( ).
    lv_string = lo_idcauthconfiguration->get_idcapplicationarn( ).
    lv_timestamp = lo_idcauthconfiguration->get_createdat( ).
    lv_timestamp = lo_idcauthconfiguration->get_updatedat( ).
  ENDIF.
  lo_idpauthconfiguration = lo_result->get_idp( ).
  IF lo_idpauthconfiguration IS NOT INITIAL.
    lv_string = lo_idpauthconfiguration->get_issuerurl( ).
    lv_string = lo_idpauthconfiguration->get_clientid( ).
    lv_string = lo_idpauthconfiguration->get_operatorapprolearn( ).
    lv_string = lo_idpauthconfiguration->get_provider( ).
    lv_timestamp = lo_idpauthconfiguration->get_createdat( ).
    lv_timestamp = lo_idpauthconfiguration->get_updatedat( ).
  ENDIF.
ENDIF.