/AWS1/IF_SGM=>DESCRIBEIMAGEVERSION()¶
About DescribeImageVersion¶
Describes a version of a SageMaker AI image.
Method Signature¶
METHODS /AWS1/IF_SGM~DESCRIBEIMAGEVERSION
IMPORTING
!IV_IMAGENAME TYPE /AWS1/SGMIMAGENAME OPTIONAL
!IV_VERSION TYPE /AWS1/SGMIMAGEVERSIONNUMBER OPTIONAL
!IV_ALIAS TYPE /AWS1/SGMSMIMAGEVERSIONALIAS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmdescrimagevrsrsp
RAISING
/AWS1/CX_SGMRESOURCENOTFOUND
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_imagename TYPE /AWS1/SGMIMAGENAME /AWS1/SGMIMAGENAME¶
The name of the image.
Optional arguments:¶
iv_version TYPE /AWS1/SGMIMAGEVERSIONNUMBER /AWS1/SGMIMAGEVERSIONNUMBER¶
The version of the image. If not specified, the latest version is described.
iv_alias TYPE /AWS1/SGMSMIMAGEVERSIONALIAS /AWS1/SGMSMIMAGEVERSIONALIAS¶
The alias of the image version.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmdescrimagevrsrsp /AWS1/CL_SGMDESCRIMAGEVRSRSP¶
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->describeimageversion(
iv_alias = |string|
iv_imagename = |string|
iv_version = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_imagebaseimage = lo_result->get_baseimage( ).
lv_imagecontainerimage = lo_result->get_containerimage( ).
lv_timestamp = lo_result->get_creationtime( ).
lv_failurereason = lo_result->get_failurereason( ).
lv_imagearn = lo_result->get_imagearn( ).
lv_imageversionarn = lo_result->get_imageversionarn( ).
lv_imageversionstatus = lo_result->get_imageversionstatus( ).
lv_timestamp = lo_result->get_lastmodifiedtime( ).
lv_imageversionnumber = lo_result->get_version( ).
lv_vendorguidance = lo_result->get_vendorguidance( ).
lv_jobtype = lo_result->get_jobtype( ).
lv_mlframework = lo_result->get_mlframework( ).
lv_programminglang = lo_result->get_programminglang( ).
lv_processor = lo_result->get_processor( ).
lv_horovod = lo_result->get_horovod( ).
lv_releasenotes = lo_result->get_releasenotes( ).
ENDIF.