/AWS1/IF_ECR=>DESCRIBEREPOSITORIES()¶
About DescribeRepositories¶
Describes image repositories in a registry.
Method Signature¶
METHODS /AWS1/IF_ECR~DESCRIBEREPOSITORIES
IMPORTING
!IV_REGISTRYID TYPE /AWS1/ECRREGISTRYID OPTIONAL
!IT_REPOSITORYNAMES TYPE /AWS1/CL_ECRREPOSITORYNAMELS00=>TT_REPOSITORYNAMELIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/ECRNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/ECRMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecrdscrepositoriesrsp
RAISING
/AWS1/CX_ECRINVALIDPARAMETEREX
/AWS1/CX_ECRREPOSITORYNOTFNDEX
/AWS1/CX_ECRSERVEREXCEPTION
/AWS1/CX_ECRCLIENTEXC
/AWS1/CX_ECRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_registryid TYPE /AWS1/ECRREGISTRYID /AWS1/ECRREGISTRYID¶
The Amazon Web Services account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.
it_repositorynames TYPE /AWS1/CL_ECRREPOSITORYNAMELS00=>TT_REPOSITORYNAMELIST TT_REPOSITORYNAMELIST¶
A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.
iv_nexttoken TYPE /AWS1/ECRNEXTTOKEN /AWS1/ECRNEXTTOKEN¶
The
nextTokenvalue returned from a previous paginatedDescribeRepositoriesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. This value isnullwhen there are no more results to return. This option cannot be used when you specify repositories withrepositoryNames.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/ECRMAXRESULTS /AWS1/ECRMAXRESULTS¶
The maximum number of repository results returned by
DescribeRepositoriesin paginated output. When this parameter is used,DescribeRepositoriesonly returnsmaxResultsresults in a single page along with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherDescribeRepositoriesrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter is not used, thenDescribeRepositoriesreturns up to 100 results and anextTokenvalue, if applicable. This option cannot be used when you specify repositories withrepositoryNames.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ecrdscrepositoriesrsp /AWS1/CL_ECRDSCREPOSITORIESRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->describerepositories(
it_repositorynames = VALUE /aws1/cl_ecrrepositorynamels00=>tt_repositorynamelist(
( new /aws1/cl_ecrrepositorynamels00( |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_repositories( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_repositoryarn( ).
lv_registryid = lo_row_1->get_registryid( ).
lv_repositoryname = lo_row_1->get_repositoryname( ).
lv_url = lo_row_1->get_repositoryuri( ).
lv_creationtimestamp = lo_row_1->get_createdat( ).
lv_imagetagmutability = lo_row_1->get_imagetagmutability( ).
LOOP AT lo_row_1->get_imagetagmutabilityexcl00( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_imagetagmutabilityexclu = lo_row_3->get_filtertype( ).
lv_imagetagmutabilityexclu_1 = lo_row_3->get_filter( ).
ENDIF.
ENDLOOP.
lo_imagescanningconfigurat = lo_row_1->get_imagescanningconf( ).
IF lo_imagescanningconfigurat IS NOT INITIAL.
lv_scanonpushflag = lo_imagescanningconfigurat->get_scanonpush( ).
ENDIF.
lo_encryptionconfiguration = lo_row_1->get_encryptionconfiguration( ).
IF lo_encryptionconfiguration IS NOT INITIAL.
lv_encryptiontype = lo_encryptionconfiguration->get_encryptiontype( ).
lv_kmskey = lo_encryptionconfiguration->get_kmskey( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
To describe all repositories in the current account¶
The following example obtains a list and description of all repositories in the default registry to which the current user has access.
DATA(lo_result) = lo_client->describerepositories( ).