/AWS1/IF_TCE=>GETREGISTRYRECORD()¶
About GetRegistryRecord¶
Retrieves the details of a registry record
Method Signature¶
METHODS /AWS1/IF_TCE~GETREGISTRYRECORD
IMPORTING
!IV_REGISTRYID TYPE /AWS1/TCEREGISTRYIDENTIFIER OPTIONAL
!IV_RECORDID TYPE /AWS1/TCERECORDIDENTIFIER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tcegetregrecordrsp
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 containing the record (ARN or ID)
iv_recordid TYPE /AWS1/TCERECORDIDENTIFIER /AWS1/TCERECORDIDENTIFIER¶
The identifier of the registry record to retrieve (ARN or ID)
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tcegetregrecordrsp /AWS1/CL_TCEGETREGRECORDRSP¶
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->getregistryrecord(
iv_recordid = |string|
iv_registryid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_registryarn = lo_result->get_registryarn( ).
lv_registryrecordarn = lo_result->get_recordarn( ).
lv_registryrecordid = lo_result->get_recordid( ).
lv_registryrecordname = lo_result->get_name( ).
lv_registryrecorddisplayna = lo_result->get_displayname( ).
lv_description = lo_result->get_description( ).
lv_recordtype = lo_result->get_recordtype( ).
lo_descriptors = lo_result->get_descriptors( ).
IF lo_descriptors IS NOT INITIAL.
lo_mcpserverdescriptor = lo_descriptors->get_mcpserver( ).
IF lo_mcpserverdescriptor IS NOT INITIAL.
lv_descriptordata = lo_mcpserverdescriptor->get_data( ).
lv_dataschemaversion = lo_mcpserverdescriptor->get_dataschemaversion( ).
lo_mcpserveradditionaldata = lo_mcpserverdescriptor->get_additionaldata( ).
IF lo_mcpserveradditionaldata IS NOT INITIAL.
lo_mcptoolsdescriptor = lo_mcpserveradditionaldata->get_tools( ).
IF lo_mcptoolsdescriptor IS NOT INITIAL.
lv_descriptordata = lo_mcptoolsdescriptor->get_data( ).
lv_dataschemaversion = lo_mcptoolsdescriptor->get_dataschemaversion( ).
ENDIF.
ENDIF.
lo_descriptorsource = lo_mcpserverdescriptor->get_source( ).
IF lo_descriptorsource IS NOT INITIAL.
lo_descriptorsourcefromurl = lo_descriptorsource->get_fromurl( ).
IF lo_descriptorsourcefromurl IS NOT INITIAL.
lv_descriptorsourceurl = lo_descriptorsourcefromurl->get_url( ).
LOOP AT lo_descriptorsourcefromurl->get_credentialproviderconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_registryrecordcredentia = lo_row_1->get_credentialprovidertype( ).
lo_registryrecordcredentia_1 = lo_row_1->get_credentialprovider( ).
IF lo_registryrecordcredentia_1 IS NOT INITIAL.
lo_registryrecordoauthcred = lo_registryrecordcredentia_1->get_oauthcredentialprovider( ).
IF lo_registryrecordoauthcred IS NOT INITIAL.
lv_credentialproviderarn = lo_registryrecordoauthcred->get_providerarn( ).
lv_registryrecordoauthgran = lo_registryrecordoauthcred->get_granttype( ).
LOOP AT lo_registryrecordoauthcred->get_scopes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_registryrecordoauthcred->get_customparameters( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_registryrecordiamcreden = lo_registryrecordcredentia_1->get_iamcredentialprovider( ).
IF lo_registryrecordiamcreden IS NOT INITIAL.
lv_iamrolearn = lo_registryrecordiamcreden->get_rolearn( ).
lv_iamsigningservicename = lo_registryrecordiamcreden->get_service( ).
lv_iamsigningregion = lo_registryrecordiamcreden->get_region( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
lo_a2aagentcarddescriptor = lo_descriptors->get_a2aagentcard( ).
IF lo_a2aagentcarddescriptor IS NOT INITIAL.
lv_descriptordata = lo_a2aagentcarddescriptor->get_data( ).
lv_dataschemaversion = lo_a2aagentcarddescriptor->get_dataschemaversion( ).
lo_descriptorsource = lo_a2aagentcarddescriptor->get_source( ).
IF lo_descriptorsource IS NOT INITIAL.
lo_descriptorsourcefromurl = lo_descriptorsource->get_fromurl( ).
IF lo_descriptorsourcefromurl IS NOT INITIAL.
lv_descriptorsourceurl = lo_descriptorsourcefromurl->get_url( ).
LOOP AT lo_descriptorsourcefromurl->get_credentialproviderconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_registryrecordcredentia = lo_row_1->get_credentialprovidertype( ).
lo_registryrecordcredentia_1 = lo_row_1->get_credentialprovider( ).
IF lo_registryrecordcredentia_1 IS NOT INITIAL.
lo_registryrecordoauthcred = lo_registryrecordcredentia_1->get_oauthcredentialprovider( ).
IF lo_registryrecordoauthcred IS NOT INITIAL.
lv_credentialproviderarn = lo_registryrecordoauthcred->get_providerarn( ).
lv_registryrecordoauthgran = lo_registryrecordoauthcred->get_granttype( ).
LOOP AT lo_registryrecordoauthcred->get_scopes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_registryrecordoauthcred->get_customparameters( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_registryrecordiamcreden = lo_registryrecordcredentia_1->get_iamcredentialprovider( ).
IF lo_registryrecordiamcreden IS NOT INITIAL.
lv_iamrolearn = lo_registryrecordiamcreden->get_rolearn( ).
lv_iamsigningservicename = lo_registryrecordiamcreden->get_service( ).
lv_iamsigningregion = lo_registryrecordiamcreden->get_region( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
lo_agentskillsdefinitionde = lo_descriptors->get_agentskillsdefinition( ).
IF lo_agentskillsdefinitionde IS NOT INITIAL.
lv_descriptordata = lo_agentskillsdefinitionde->get_data( ).
lv_dataschemaversion = lo_agentskillsdefinitionde->get_dataschemaversion( ).
lo_agentskillsadditionalda = lo_agentskillsdefinitionde->get_additionaldata( ).
IF lo_agentskillsadditionalda IS NOT INITIAL.
lo_agentskillsmddescriptor = lo_agentskillsadditionalda->get_skillmd( ).
IF lo_agentskillsmddescriptor IS NOT INITIAL.
lv_descriptordata = lo_agentskillsmddescriptor->get_data( ).
lv_dataschemaversion = lo_agentskillsmddescriptor->get_dataschemaversion( ).
lo_descriptorsource = lo_agentskillsmddescriptor->get_source( ).
IF lo_descriptorsource IS NOT INITIAL.
lo_descriptorsourcefromurl = lo_descriptorsource->get_fromurl( ).
IF lo_descriptorsourcefromurl IS NOT INITIAL.
lv_descriptorsourceurl = lo_descriptorsourcefromurl->get_url( ).
LOOP AT lo_descriptorsourcefromurl->get_credentialproviderconfs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_registryrecordcredentia = lo_row_1->get_credentialprovidertype( ).
lo_registryrecordcredentia_1 = lo_row_1->get_credentialprovider( ).
IF lo_registryrecordcredentia_1 IS NOT INITIAL.
lo_registryrecordoauthcred = lo_registryrecordcredentia_1->get_oauthcredentialprovider( ).
IF lo_registryrecordoauthcred IS NOT INITIAL.
lv_credentialproviderarn = lo_registryrecordoauthcred->get_providerarn( ).
lv_registryrecordoauthgran = lo_registryrecordoauthcred->get_granttype( ).
LOOP AT lo_registryrecordoauthcred->get_scopes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_registryrecordoauthcred->get_customparameters( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_registryrecordiamcreden = lo_registryrecordcredentia_1->get_iamcredentialprovider( ).
IF lo_registryrecordiamcreden IS NOT INITIAL.
lv_iamrolearn = lo_registryrecordiamcreden->get_rolearn( ).
lv_iamsigningservicename = lo_registryrecordiamcreden->get_service( ).
lv_iamsigningregion = lo_registryrecordiamcreden->get_region( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
lo_customdescriptor = lo_descriptors->get_custom( ).
IF lo_customdescriptor IS NOT INITIAL.
lv_descriptordata = lo_customdescriptor->get_data( ).
ENDIF.
ENDIF.
lv_registryrecordversion = lo_result->get_recordversion( ).
lv_registryrecordstatus = lo_result->get_status( ).
lv_datetimestamp = lo_result->get_createdat( ).
lv_datetimestamp = lo_result->get_updatedat( ).
lv_string = lo_result->get_statusreason( ).
ENDIF.