/AWS1/IF_EC2=>DESCRIBECONVERSIONTASKS()¶
About DescribeConversionTasks¶
Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Method Signature¶
METHODS /AWS1/IF_EC2~DESCRIBECONVERSIONTASKS
IMPORTING
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
!IT_CONVERSIONTASKIDS TYPE /AWS1/CL_EC2CONVRSIDSTRLIST_W=>TT_CONVERSIONIDSTRINGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2dscconvrstasksrs
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
it_conversiontaskids TYPE /AWS1/CL_EC2CONVRSIDSTRLIST_W=>TT_CONVERSIONIDSTRINGLIST TT_CONVERSIONIDSTRINGLIST¶
The conversion task IDs.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2dscconvrstasksrs /AWS1/CL_EC2DSCCONVRSTASKSRS¶
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->describeconversiontasks(
it_conversiontaskids = VALUE /aws1/cl_ec2convrsidstrlist_w=>tt_conversionidstringlist(
( new /aws1/cl_ec2convrsidstrlist_w( |string| ) )
)
iv_dryrun = ABAP_TRUE
).
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_conversiontasks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_conversiontaskid( ).
lv_string = lo_row_1->get_expirationtime( ).
lo_importinstancetaskdetai = lo_row_1->get_importinstance( ).
IF lo_importinstancetaskdetai IS NOT INITIAL.
lv_string = lo_importinstancetaskdetai->get_description( ).
lv_string = lo_importinstancetaskdetai->get_instanceid( ).
lv_platformvalues = lo_importinstancetaskdetai->get_platform( ).
LOOP AT lo_importinstancetaskdetai->get_volumes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_availabilityzone( ).
lv_string = lo_row_3->get_availabilityzoneid( ).
lv_long = lo_row_3->get_bytesconverted( ).
lv_string = lo_row_3->get_description( ).
lo_diskimagedescription = lo_row_3->get_image( ).
IF lo_diskimagedescription IS NOT INITIAL.
lv_string = lo_diskimagedescription->get_checksum( ).
lv_diskimageformat = lo_diskimagedescription->get_format( ).
lv_importmanifesturl = lo_diskimagedescription->get_importmanifesturl( ).
lv_long = lo_diskimagedescription->get_size( ).
ENDIF.
lv_string = lo_row_3->get_status( ).
lv_string = lo_row_3->get_statusmessage( ).
lo_diskimagevolumedescript = lo_row_3->get_volume( ).
IF lo_diskimagevolumedescript IS NOT INITIAL.
lv_string = lo_diskimagevolumedescript->get_id( ).
lv_long = lo_diskimagevolumedescript->get_size( ).
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
lo_importvolumetaskdetails = lo_row_1->get_importvolume( ).
IF lo_importvolumetaskdetails IS NOT INITIAL.
lv_string = lo_importvolumetaskdetails->get_availabilityzone( ).
lv_string = lo_importvolumetaskdetails->get_availabilityzoneid( ).
lv_long = lo_importvolumetaskdetails->get_bytesconverted( ).
lv_string = lo_importvolumetaskdetails->get_description( ).
lo_diskimagedescription = lo_importvolumetaskdetails->get_image( ).
IF lo_diskimagedescription IS NOT INITIAL.
lv_string = lo_diskimagedescription->get_checksum( ).
lv_diskimageformat = lo_diskimagedescription->get_format( ).
lv_importmanifesturl = lo_diskimagedescription->get_importmanifesturl( ).
lv_long = lo_diskimagedescription->get_size( ).
ENDIF.
lo_diskimagevolumedescript = lo_importvolumetaskdetails->get_volume( ).
IF lo_diskimagevolumedescript IS NOT INITIAL.
lv_string = lo_diskimagevolumedescript->get_id( ).
lv_long = lo_diskimagevolumedescript->get_size( ).
ENDIF.
ENDIF.
lv_conversiontaskstate = lo_row_1->get_state( ).
lv_string = lo_row_1->get_statusmessage( ).
LOOP AT lo_row_1->get_tags( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_key( ).
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.