/AWS1/IF_BDO=>LISTREGISTRYRECORDS()¶
About ListRegistryRecords¶
Lists registry records within a registry. You can optionally filter results using the name, status, and descriptorType parameters. When multiple filters are specified, they are combined using AND logic.
Method Signature¶
METHODS /AWS1/IF_BDO~LISTREGISTRYRECORDS
IMPORTING
!IV_REGISTRYID TYPE /AWS1/BDOREGISTRYIDENTIFIER OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BDOMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BDONEXTTOKEN OPTIONAL
!IV_NAME TYPE /AWS1/BDOREGISTRYRECORDNAME OPTIONAL
!IV_STATUS TYPE /AWS1/BDOREGISTRYRECORDSTATUS OPTIONAL
!IV_DESCRIPTORTYPE TYPE /AWS1/BDODESCRIPTORTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdolistregrecordsrsp
RAISING
/AWS1/CX_BDOACCESSDENIEDEX
/AWS1/CX_BDOCONFLICTEXCEPTION
/AWS1/CX_BDOINTERNALSERVEREX
/AWS1/CX_BDORESOURCENOTFOUNDEX
/AWS1/CX_BDOTHROTTLINGEX
/AWS1/CX_BDOVALIDATIONEX
/AWS1/CX_BDOCLIENTEXC
/AWS1/CX_BDOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_registryid TYPE /AWS1/BDOREGISTRYIDENTIFIER /AWS1/BDOREGISTRYIDENTIFIER¶
The identifier of the registry to list records from. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.
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
nextTokenfield 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
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
iv_name TYPE /AWS1/BDOREGISTRYRECORDNAME /AWS1/BDOREGISTRYRECORDNAME¶
Filter registry records by name.
iv_status TYPE /AWS1/BDOREGISTRYRECORDSTATUS /AWS1/BDOREGISTRYRECORDSTATUS¶
Filter registry records by their current status. Possible values include
CREATING,DRAFT,APPROVED,PENDING_APPROVAL,REJECTED,DEPRECATED,UPDATING,CREATE_FAILED, andUPDATE_FAILED.
iv_descriptortype TYPE /AWS1/BDODESCRIPTORTYPE /AWS1/BDODESCRIPTORTYPE¶
Filter registry records by their descriptor type. Possible values are
MCP,A2A,CUSTOM, andAGENT_SKILLS.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdolistregrecordsrsp /AWS1/CL_BDOLISTREGRECORDSRSP¶
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(
iv_descriptortype = |string|
iv_maxresults = 123
iv_name = |string|
iv_nexttoken = |string|
iv_registryid = |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_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_descriptortype = lo_row_1->get_descriptortype( ).
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.