Skip to content

/AWS1/IF_BDO=>GETREGISTRYRECORD()

About GetRegistryRecord

Retrieves information about a specific registry record.

Method Signature

METHODS /AWS1/IF_BDO~GETREGISTRYRECORD
  IMPORTING
    !IV_REGISTRYID TYPE /AWS1/BDOREGISTRYIDENTIFIER OPTIONAL
    !IV_RECORDID TYPE /AWS1/BDORECORDIDENTIFIER OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdogetregrecordrsp
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOCONFLICTEXCEPTION
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDORESOURCENOTFOUNDEX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_registryid TYPE /AWS1/BDOREGISTRYIDENTIFIER /AWS1/BDOREGISTRYIDENTIFIER

The identifier of the registry containing the record. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.

iv_recordid TYPE /AWS1/BDORECORDIDENTIFIER /AWS1/BDORECORDIDENTIFIER

The identifier of the registry record to retrieve. You can specify either the Amazon Resource Name (ARN) or the ID of the record.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdogetregrecordrsp /AWS1/CL_BDOGETREGRECORDRSP

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->getregistryrecord(
  iv_recordid = |string|
  iv_registryid = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_registryarn = lo_result->get_registryarn( ).
  lv_registryrecordarn = lo_result->get_recordarn( ).
  lv_registryrecordid = lo_result->get_recordid( ).
  lv_registryrecordname = lo_result->get_name( ).
  lv_description = lo_result->get_description( ).
  lv_descriptortype = lo_result->get_descriptortype( ).
  lo_descriptors = lo_result->get_descriptors( ).
  IF lo_descriptors IS NOT INITIAL.
    lo_mcpdescriptor = lo_descriptors->get_mcp( ).
    IF lo_mcpdescriptor IS NOT INITIAL.
      lo_serverdefinition = lo_mcpdescriptor->get_server( ).
      IF lo_serverdefinition IS NOT INITIAL.
        lv_schemaversion = lo_serverdefinition->get_schemaversion( ).
        lv_inlinecontent = lo_serverdefinition->get_inlinecontent( ).
      ENDIF.
      lo_toolsdefinition = lo_mcpdescriptor->get_tools( ).
      IF lo_toolsdefinition IS NOT INITIAL.
        lv_schemaversion = lo_toolsdefinition->get_protocolversion( ).
        lv_inlinecontent = lo_toolsdefinition->get_inlinecontent( ).
      ENDIF.
    ENDIF.
    lo_a2adescriptor = lo_descriptors->get_a2a( ).
    IF lo_a2adescriptor IS NOT INITIAL.
      lo_agentcarddefinition = lo_a2adescriptor->get_agentcard( ).
      IF lo_agentcarddefinition IS NOT INITIAL.
        lv_schemaversion = lo_agentcarddefinition->get_schemaversion( ).
        lv_inlinecontent = lo_agentcarddefinition->get_inlinecontent( ).
      ENDIF.
    ENDIF.
    lo_customdescriptor = lo_descriptors->get_custom( ).
    IF lo_customdescriptor IS NOT INITIAL.
      lv_inlinecontent = lo_customdescriptor->get_inlinecontent( ).
    ENDIF.
    lo_agentskillsdescriptor = lo_descriptors->get_agentskills( ).
    IF lo_agentskillsdescriptor IS NOT INITIAL.
      lo_skillmddefinition = lo_agentskillsdescriptor->get_skillmd( ).
      IF lo_skillmddefinition IS NOT INITIAL.
        lv_inlinecontent = lo_skillmddefinition->get_inlinecontent( ).
      ENDIF.
      lo_skilldefinition = lo_agentskillsdescriptor->get_skilldefinition( ).
      IF lo_skilldefinition IS NOT INITIAL.
        lv_schemaversion = lo_skilldefinition->get_schemaversion( ).
        lv_inlinecontent = lo_skilldefinition->get_inlinecontent( ).
      ENDIF.
    ENDIF.
  ENDIF.
  lv_registryrecordversion = lo_result->get_recordversion( ).
  lv_registryrecordstatus = lo_result->get_status( ).
  lv_datetimestamp = lo_result->get_createdat( ).
  lv_datetimestamp = lo_result->get_updatedat( ).
  lv_string = lo_result->get_statusreason( ).
  lv_synchronizationtype = lo_result->get_synchronizationtype( ).
  lo_synchronizationconfigur = lo_result->get_syncconfiguration( ).
  IF lo_synchronizationconfigur IS NOT INITIAL.
    lo_fromurlsynchronizationc = lo_synchronizationconfigur->get_fromurl( ).
    IF lo_fromurlsynchronizationc IS NOT INITIAL.
      lv_mcpserverurl = lo_fromurlsynchronizationc->get_url( ).
      LOOP AT lo_fromurlsynchronizationc->get_credentialproviderconfs( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_registryrecordcredentia = lo_row_1->get_credentialprovidertype( ).
          lo_registryrecordcredentia_1 = lo_row_1->get_credentialprovider( ).
          IF lo_registryrecordcredentia_1 IS NOT INITIAL.
            lo_registryrecordoauthcred = lo_registryrecordcredentia_1->get_oauthcredentialprovider( ).
            IF lo_registryrecordoauthcred IS NOT INITIAL.
              lv_credentialproviderarn = lo_registryrecordoauthcred->get_providerarn( ).
              lv_registryrecordoauthgran = lo_registryrecordoauthcred->get_granttype( ).
              LOOP AT lo_registryrecordoauthcred->get_scopes( ) into lo_row_2.
                lo_row_3 = lo_row_2.
                IF lo_row_3 IS NOT INITIAL.
                  lv_string = lo_row_3->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_registryrecordoauthcred->get_customparameters( ) into ls_row_4.
                lv_key = ls_row_4-key.
                lo_value = ls_row_4-value.
                IF lo_value IS NOT INITIAL.
                  lv_string = lo_value->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
            lo_registryrecordiamcreden = lo_registryrecordcredentia_1->get_iamcredentialprovider( ).
            IF lo_registryrecordiamcreden IS NOT INITIAL.
              lv_iamrolearn = lo_registryrecordiamcreden->get_rolearn( ).
              lv_iamsigningservicename = lo_registryrecordiamcreden->get_service( ).
              lv_iamsigningregion = lo_registryrecordiamcreden->get_region( ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDIF.