/AWS1/IF_ECP=>DESCRIBEREGISTRIES()¶
About DescribeRegistries¶
Returns details for a public registry.
Method Signature¶
METHODS /AWS1/IF_ECP~DESCRIBEREGISTRIES
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/ECPNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ECPMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecpdescrregistriesrsp
RAISING
/AWS1/CX_ECPINVALIDPARAMETEREX
/AWS1/CX_ECPSERVEREXCEPTION
/AWS1/CX_ECPUNSUPPEDCOMMANDEX
/AWS1/CX_ECPCLIENTEXC
/AWS1/CX_ECPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/ECPNEXTTOKEN /AWS1/ECPNEXTTOKEN¶
The
nextTokenvalue that's returned from a previous paginatedDescribeRegistriesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. If there are no more results to return, this value isnull.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
iv_maxresults TYPE /AWS1/ECPMAXRESULTS /AWS1/ECPMAXRESULTS¶
The maximum number of repository results that's returned by
DescribeRegistriesin paginated output. When this parameter is used,DescribeRegistriesonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeRegistriesrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter isn't used, thenDescribeRegistriesreturns up to 100 results and anextTokenvalue, if applicable.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ecpdescrregistriesrsp /AWS1/CL_ECPDESCRREGISTRIESRSP¶
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->describeregistries(
iv_maxresults = 123
iv_nexttoken = |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_registryid = lo_row_1->get_registryid( ).
lv_arn = lo_row_1->get_registryarn( ).
lv_url = lo_row_1->get_registryuri( ).
lv_registryverified = lo_row_1->get_verified( ).
LOOP AT lo_row_1->get_aliases( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_registryaliasname = lo_row_3->get_name( ).
lv_registryaliasstatus = lo_row_3->get_status( ).
lv_primaryregistryaliasfla = lo_row_3->get_primaryregistryalias( ).
lv_defaultregistryaliasfla = lo_row_3->get_defaultregistryalias( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.