Skip to content

/AWS1/IF_BDO=>LISTREGISTRIES()

About ListRegistries

Lists all registries in the account. You can optionally filter results by status using the status parameter.

Method Signature

METHODS /AWS1/IF_BDO~LISTREGISTRIES
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/BDOMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/BDONEXTTOKEN OPTIONAL
    !IV_STATUS TYPE /AWS1/BDOREGISTRYSTATUS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdolistregistriesrsp
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/BDOMAXRESULTS /AWS1/BDOMAXRESULTS

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

iv_nexttoken TYPE /AWS1/BDONEXTTOKEN /AWS1/BDONEXTTOKEN

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

iv_status TYPE /AWS1/BDOREGISTRYSTATUS /AWS1/BDOREGISTRYSTATUS

Filter registries by their current status. Possible values include CREATING, READY, UPDATING, CREATE_FAILED, UPDATE_FAILED, DELETING, and DELETE_FAILED.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdolistregistriesrsp /AWS1/CL_BDOLISTREGISTRIESRSP

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(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_status = |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( ).
      lv_registryauthorizertype = lo_row_1->get_authorizertype( ).
      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.