/AWS1/IF_TCR=>LISTDSCVREGISTRYRECORDS()¶
About ListDiscoverableRegistryRecords¶
Lists the discoverable registry records in a registry. You can optionally filter and paginate the results.
Method Signature¶
METHODS /AWS1/IF_TCR~LISTDSCVREGISTRYRECORDS
IMPORTING
!IV_REGISTRYID TYPE /AWS1/TCRREGISTRYIDENTIFIER OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TCRINTEGER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/TCRSTRING OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_TCRREGRECORDFILTER=>TT_REGISTRYRECORDFILTERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcrlistdscvregrecsrsp
RAISING
/AWS1/CX_TCRACCESSDENIEDEX
/AWS1/CX_TCRINTERNALSERVEREX
/AWS1/CX_TCRRESOURCENOTFOUNDEX
/AWS1/CX_TCRTHROTTLINGEX
/AWS1/CX_TCRUNAUTHEXCEPTION
/AWS1/CX_TCRVLDTNEXCEPTION
/AWS1/CX_TCRCLIENTEXC
/AWS1/CX_TCRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_registryid TYPE /AWS1/TCRREGISTRYIDENTIFIER /AWS1/TCRREGISTRYIDENTIFIER¶
Registry identifier that accepts either ARN or ID format
Optional arguments:¶
iv_maxresults TYPE /AWS1/TCRINTEGER /AWS1/TCRINTEGER¶
The maximum number of records to return in a single page. Valid values are 1 through 100.
iv_nexttoken TYPE /AWS1/TCRSTRING /AWS1/TCRSTRING¶
The pagination token returned by a previous request. Use this value to retrieve the next page of results.
it_filters TYPE /AWS1/CL_TCRREGRECORDFILTER=>TT_REGISTRYRECORDFILTERLIST TT_REGISTRYRECORDFILTERLIST¶
The filters to apply to the discoverable registry record list.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tcrlistdscvregrecsrsp /AWS1/CL_TCRLISTDSCVREGRECSRSP¶
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->listdscvregistryrecords(
it_filters = VALUE /aws1/cl_tcrregrecordfilter=>tt_registryrecordfilterlist(
(
new /aws1/cl_tcrregrecordfilter(
it_values = VALUE /aws1/cl_tcrdscvfiltervalues_w=>tt_discoverablefiltervalues(
( new /aws1/cl_tcrdscvfiltervalues_w( |string| ) )
)
iv_name = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_registryid = |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_registryrecords( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_registryarn = lo_row_1->get_registryarn( ).
lv_registryrecordarn = lo_row_1->get_recordarn( ).
lv_registryrecordid = lo_row_1->get_recordid( ).
lv_registryrecordname = lo_row_1->get_name( ).
lv_description = lo_row_1->get_description( ).
lv_registryrecorddisplayna = lo_row_1->get_displayname( ).
lv_recordtype = lo_row_1->get_recordtype( ).
lv_registryrecordversion = lo_row_1->get_recordversion( ).
lv_registryrecordstatus = lo_row_1->get_status( ).
lv_datetimestamp = lo_row_1->get_createdat( ).
lv_datetimestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.