Skip to content

/AWS1/IF_TCE=>GETREGISTRY()

About GetRegistry

Gets a registry by identifier (ARN or ID)

Method Signature

METHODS /AWS1/IF_TCE~GETREGISTRY
  IMPORTING
    !IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcegetregresponse
  RAISING
    /AWS1/CX_TCEACCESSDENIEDEX
    /AWS1/CX_TCEINTERNALSERVEREX
    /AWS1/CX_TCERESOURCENOTFOUNDEX
    /AWS1/CX_TCETHROTTLINGEX
    /AWS1/CX_TCEVLDTNEXCEPTION
    /AWS1/CX_TCECLIENTEXC
    /AWS1/CX_TCESERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_registryid TYPE /AWS1/TCEREGISTRYIDENTIFIER /AWS1/TCEREGISTRYIDENTIFIER

The identifier of the registry to retrieve (ARN or ID)

RETURNING

oo_output TYPE REF TO /aws1/cl_tcegetregresponse /AWS1/CL_TCEGETREGRESPONSE

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->getregistry( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_registryname = lo_result->get_name( ).
  lv_description = lo_result->get_description( ).
  lv_registryid = lo_result->get_registryid( ).
  lv_registryarn = lo_result->get_registryarn( ).
  lo_discoveryconfiguration = lo_result->get_discoveryconfiguration( ).
  IF lo_discoveryconfiguration IS NOT INITIAL.
    lo_authorizerconfiguration = lo_discoveryconfiguration->get_authorizerconfiguration( ).
    IF lo_authorizerconfiguration IS NOT INITIAL.
      lo_customjwtauthorizerconf = lo_authorizerconfiguration->get_customjwtauthorizer( ).
      IF lo_customjwtauthorizerconf IS NOT INITIAL.
        lv_discoveryurl = lo_customjwtauthorizerconf->get_discoveryurl( ).
        LOOP AT lo_customjwtauthorizerconf->get_allowedaudience( ) into lo_row.
          lo_row_1 = lo_row.
          IF lo_row_1 IS NOT INITIAL.
            lv_allowedaudience = lo_row_1->get_value( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_customjwtauthorizerconf->get_allowedclients( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_allowedclient = lo_row_3->get_value( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_customjwtauthorizerconf->get_allowedscopes( ) into lo_row_4.
          lo_row_5 = lo_row_4.
          IF lo_row_5 IS NOT INITIAL.
            lv_allowedscopetype = lo_row_5->get_value( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_customjwtauthorizerconf->get_customclaims( ) into lo_row_6.
          lo_row_7 = lo_row_6.
          IF lo_row_7 IS NOT INITIAL.
            lv_inboundtokenclaimnamety = lo_row_7->get_inboundtokenclaimname( ).
            lv_inboundtokenclaimvaluet = lo_row_7->get_indbtokenclaimvaluetype( ).
            lo_authorizingclaimmatchva = lo_row_7->get_authzclaimmatchvalue( ).
            IF lo_authorizingclaimmatchva IS NOT INITIAL.
              lo_claimmatchvaluetype = lo_authorizingclaimmatchva->get_claimmatchvalue( ).
              IF lo_claimmatchvaluetype IS NOT INITIAL.
                lv_matchvaluestring = lo_claimmatchvaluetype->get_matchvaluestring( ).
                LOOP AT lo_claimmatchvaluetype->get_matchvaluestringlist( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchvaluestring = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lv_claimmatchoperatortype = lo_authorizingclaimmatchva->get_claimmatchoperator( ).
            ENDIF.
          ENDIF.
        ENDLOOP.
        lo_privateendpoint = lo_customjwtauthorizerconf->get_privateendpoint( ).
        IF lo_privateendpoint IS NOT INITIAL.
          lo_selfmanagedlatticeresou = lo_privateendpoint->get_selfmanagedlatticeres( ).
          IF lo_selfmanagedlatticeresou IS NOT INITIAL.
            lv_resourceconfigurationid = lo_selfmanagedlatticeresou->get_resourceconfidentifier( ).
          ENDIF.
          lo_managedvpcresource = lo_privateendpoint->get_managedvpcresource( ).
          IF lo_managedvpcresource IS NOT INITIAL.
            lv_vpcidentifier = lo_managedvpcresource->get_vpcidentifier( ).
            LOOP AT lo_managedvpcresource->get_subnetids( ) into lo_row_10.
              lo_row_11 = lo_row_10.
              IF lo_row_11 IS NOT INITIAL.
                lv_subnetid = lo_row_11->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
            LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_12.
              lo_row_13 = lo_row_12.
              IF lo_row_13 IS NOT INITIAL.
                lv_securitygroupidentifier = lo_row_13->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_14.
              lv_key = ls_row_14-key.
              lo_value = ls_row_14-value.
              IF lo_value IS NOT INITIAL.
                lv_tagvalue = lo_value->get_value( ).
              ENDIF.
            ENDLOOP.
            lv_routingdomain = lo_managedvpcresource->get_routingdomain( ).
          ENDIF.
        ENDIF.
        LOOP AT lo_customjwtauthorizerconf->get_privateendpointoverrides( ) into lo_row_15.
          lo_row_16 = lo_row_15.
          IF lo_row_16 IS NOT INITIAL.
            lv_privateendpointoverride = lo_row_16->get_domain( ).
            lo_privateendpoint = lo_row_16->get_privateendpoint( ).
            IF lo_privateendpoint IS NOT INITIAL.
              lo_selfmanagedlatticeresou = lo_privateendpoint->get_selfmanagedlatticeres( ).
              IF lo_selfmanagedlatticeresou IS NOT INITIAL.
                lv_resourceconfigurationid = lo_selfmanagedlatticeresou->get_resourceconfidentifier( ).
              ENDIF.
              lo_managedvpcresource = lo_privateendpoint->get_managedvpcresource( ).
              IF lo_managedvpcresource IS NOT INITIAL.
                lv_vpcidentifier = lo_managedvpcresource->get_vpcidentifier( ).
                LOOP AT lo_managedvpcresource->get_subnetids( ) into lo_row_10.
                  lo_row_11 = lo_row_10.
                  IF lo_row_11 IS NOT INITIAL.
                    lv_subnetid = lo_row_11->get_value( ).
                  ENDIF.
                ENDLOOP.
                lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
                LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_12.
                  lo_row_13 = lo_row_12.
                  IF lo_row_13 IS NOT INITIAL.
                    lv_securitygroupidentifier = lo_row_13->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_14.
                  lv_key = ls_row_14-key.
                  lo_value = ls_row_14-value.
                  IF lo_value IS NOT INITIAL.
                    lv_tagvalue = lo_value->get_value( ).
                  ENDIF.
                ENDLOOP.
                lv_routingdomain = lo_managedvpcresource->get_routingdomain( ).
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
    lv_registryauthorizertype = lo_discoveryconfiguration->get_authorizertype( ).
  ENDIF.
  lo_approvalconfiguration = lo_result->get_approvalconfiguration( ).
  IF lo_approvalconfiguration IS NOT INITIAL.
    LOOP AT lo_approvalconfiguration->get_autoapprovalrules( ) into lo_row_17.
      lo_row_18 = lo_row_17.
      IF lo_row_18 IS NOT INITIAL.
        lv_autoapprovalrule = lo_row_18->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv_registrystatus = lo_result->get_status( ).
  lv_string = lo_result->get_statusreason( ).
  lv_datetimestamp = lo_result->get_createdat( ).
  lv_datetimestamp = lo_result->get_updatedat( ).
ENDIF.