Skip to content

/AWS1/IF_TCE=>LISTREGISTRIES()

About ListRegistries

Lists the registries in the caller's account and Region, with optional filtering by status and discovery authorizer type

Method Signature

METHODS /AWS1/IF_TCE~LISTREGISTRIES
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/TCEMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/TCENEXTTOKEN OPTIONAL
    !IT_FILTERS TYPE /AWS1/CL_TCEREGISTRYFILTER=>TT_REGISTRYFILTERLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcelistregistriesrsp
  RAISING
    /AWS1/CX_TCEACCESSDENIEDEX
    /AWS1/CX_TCEINTERNALSERVEREX
    /AWS1/CX_TCETHROTTLINGEX
    /AWS1/CX_TCEVLDTNEXCEPTION
    /AWS1/CX_TCECLIENTEXC
    /AWS1/CX_TCESERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/TCEMAXRESULTS /AWS1/TCEMAXRESULTS

Maximum number of results to return

iv_nexttoken TYPE /AWS1/TCENEXTTOKEN /AWS1/TCENEXTTOKEN

Token for pagination

it_filters TYPE /AWS1/CL_TCEREGISTRYFILTER=>TT_REGISTRYFILTERLIST TT_REGISTRYFILTERLIST

Filters to apply to the registry list

RETURNING

oo_output TYPE REF TO /aws1/cl_tcelistregistriesrsp /AWS1/CL_TCELISTREGISTRIESRSP

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->listregistries(
  it_filters = VALUE /aws1/cl_tceregistryfilter=>tt_registryfilterlist(
    (
      new /aws1/cl_tceregistryfilter(
        it_values = VALUE /aws1/cl_tcefiltervalues_w=>tt_filtervalues(
          ( new /aws1/cl_tcefiltervalues_w( |string| ) )
        )
        iv_name = |string|
      )
    )
  )
  iv_maxresults = 123
  iv_nexttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_registries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_registryname = lo_row_1->get_name( ).
      lv_description = lo_row_1->get_description( ).
      lv_registryid = lo_row_1->get_registryid( ).
      lv_registryarn = lo_row_1->get_registryarn( ).
      lo_discoveryconfiguration = lo_row_1->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_2.
              lo_row_3 = lo_row_2.
              IF lo_row_3 IS NOT INITIAL.
                lv_allowedaudience = lo_row_3->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_customjwtauthorizerconf->get_allowedclients( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                lv_allowedclient = lo_row_5->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_customjwtauthorizerconf->get_allowedscopes( ) into lo_row_6.
              lo_row_7 = lo_row_6.
              IF lo_row_7 IS NOT INITIAL.
                lv_allowedscopetype = lo_row_7->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_customjwtauthorizerconf->get_customclaims( ) into lo_row_8.
              lo_row_9 = lo_row_8.
              IF lo_row_9 IS NOT INITIAL.
                lv_inboundtokenclaimnamety = lo_row_9->get_inboundtokenclaimname( ).
                lv_inboundtokenclaimvaluet = lo_row_9->get_indbtokenclaimvaluetype( ).
                lo_authorizingclaimmatchva = lo_row_9->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_10.
                      lo_row_11 = lo_row_10.
                      IF lo_row_11 IS NOT INITIAL.
                        lv_matchvaluestring = lo_row_11->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_12.
                  lo_row_13 = lo_row_12.
                  IF lo_row_13 IS NOT INITIAL.
                    lv_subnetid = lo_row_13->get_value( ).
                  ENDIF.
                ENDLOOP.
                lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
                LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_14.
                  lo_row_15 = lo_row_14.
                  IF lo_row_15 IS NOT INITIAL.
                    lv_securitygroupidentifier = lo_row_15->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_16.
                  lv_key = ls_row_16-key.
                  lo_value = ls_row_16-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_17.
              lo_row_18 = lo_row_17.
              IF lo_row_18 IS NOT INITIAL.
                lv_privateendpointoverride = lo_row_18->get_domain( ).
                lo_privateendpoint = lo_row_18->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_12.
                      lo_row_13 = lo_row_12.
                      IF lo_row_13 IS NOT INITIAL.
                        lv_subnetid = lo_row_13->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    lv_endpointipaddresstype = lo_managedvpcresource->get_endpointipaddresstype( ).
                    LOOP AT lo_managedvpcresource->get_securitygroupids( ) into lo_row_14.
                      lo_row_15 = lo_row_14.
                      IF lo_row_15 IS NOT INITIAL.
                        lv_securitygroupidentifier = lo_row_15->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_managedvpcresource->get_tags( ) into ls_row_16.
                      lv_key = ls_row_16-key.
                      lo_value = ls_row_16-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.
      lv_registrystatus = lo_row_1->get_status( ).
      lv_string = lo_row_1->get_statusreason( ).
      lv_datetimestamp = lo_row_1->get_createdat( ).
      lv_datetimestamp = lo_row_1->get_updatedat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.