Skip to content

/AWS1/IF_ECR=>DESCRIBEIMAGESIGNINGSTATUS()

About DescribeImageSigningStatus

Returns the signing status for a specified image. If the image matched signing rules that reference different signing profiles, a status is returned for each profile.

For more information, see Managed signing in the Amazon Elastic Container Registry User Guide.

Method Signature

METHODS /AWS1/IF_ECR~DESCRIBEIMAGESIGNINGSTATUS
  IMPORTING
    !IV_REPOSITORYNAME TYPE /AWS1/ECRREPOSITORYNAME OPTIONAL
    !IO_IMAGEID TYPE REF TO /AWS1/CL_ECRIMAGEIDENTIFIER OPTIONAL
    !IV_REGISTRYID TYPE /AWS1/ECRREGISTRYID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecrdscimagesigstatrsp
  RAISING
    /AWS1/CX_ECRIMAGENOTFOUNDEX
    /AWS1/CX_ECRINVALIDPARAMETEREX
    /AWS1/CX_ECRREPOSITORYNOTFNDEX
    /AWS1/CX_ECRSERVEREXCEPTION
    /AWS1/CX_ECRVALIDATIONEX
    /AWS1/CX_ECRCLIENTEXC
    /AWS1/CX_ECRSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_repositoryname TYPE /AWS1/ECRREPOSITORYNAME /AWS1/ECRREPOSITORYNAME

The name of the repository that contains the image.

io_imageid TYPE REF TO /AWS1/CL_ECRIMAGEIDENTIFIER /AWS1/CL_ECRIMAGEIDENTIFIER

An object containing identifying information for an image.

Optional arguments:

iv_registryid TYPE /AWS1/ECRREGISTRYID /AWS1/ECRREGISTRYID

The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecrdscimagesigstatrsp /AWS1/CL_ECRDSCIMAGESIGSTATRSP

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->describeimagesigningstatus(
  io_imageid = new /aws1/cl_ecrimageidentifier(
    iv_imagedigest = |string|
    iv_imagetag = |string|
  )
  iv_registryid = |string|
  iv_repositoryname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_repositoryname = lo_result->get_repositoryname( ).
  lo_imageidentifier = lo_result->get_imageid( ).
  IF lo_imageidentifier IS NOT INITIAL.
    lv_imagedigest = lo_imageidentifier->get_imagedigest( ).
    lv_imagetag = lo_imageidentifier->get_imagetag( ).
  ENDIF.
  lv_registryid = lo_result->get_registryid( ).
  LOOP AT lo_result->get_signingstatuses( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_signingprofilearn = lo_row_1->get_signingprofilearn( ).
      lv_signingstatusfailurecod = lo_row_1->get_failurecode( ).
      lv_signingstatusfailurerea = lo_row_1->get_failurereason( ).
      lv_signingstatus = lo_row_1->get_status( ).
    ENDIF.
  ENDLOOP.
ENDIF.