/AWS1/IF_TCE=>LISTREGISTRYRECORDS()¶
About ListRegistryRecords¶
Lists the registry records within a registry, with optional filtering by name, status, and record type
Method Signature¶
METHODS /AWS1/IF_TCE~LISTREGISTRYRECORDS
IMPORTING
!IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TCEMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/TCENEXTTOKEN OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_TCEREGRECORDFILTER=>TT_REGISTRYRECORDFILTERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcelistregrecordsrsp
RAISING
/AWS1/CX_TCEACCESSDENIEDEX
/AWS1/CX_TCECONFLICTEXCEPTION
/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 list records from (ARN or ID)
Optional arguments:¶
iv_maxresults TYPE /AWS1/TCEMAXRESULTS /AWS1/TCEMAXRESULTS¶
Maximum number of records to return
iv_nexttoken TYPE /AWS1/TCENEXTTOKEN /AWS1/TCENEXTTOKEN¶
Token for pagination
it_filters TYPE /AWS1/CL_TCEREGRECORDFILTER=>TT_REGISTRYRECORDFILTERLIST TT_REGISTRYRECORDFILTERLIST¶
Filters to apply to the registry record list
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tcelistregrecordsrsp /AWS1/CL_TCELISTREGRECORDSRSP¶
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->listregistryrecords(
it_filters = VALUE /aws1/cl_tceregrecordfilter=>tt_registryrecordfilterlist(
(
new /aws1/cl_tceregrecordfilter(
it_values = VALUE /aws1/cl_tcefiltervalues_w=>tt_filtervalues(
( new /aws1/cl_tcefiltervalues_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_registryrecorddisplayna = lo_row_1->get_displayname( ).
lv_description = lo_row_1->get_description( ).
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_nexttoken = lo_result->get_nexttoken( ).
ENDIF.