/AWS1/IF_EVS=>GETVERSIONS()¶
About GetVersions¶
Returns information about VCF versions, ESX versions and EC2 instance types provided by Amazon EVS. For each VCF version, the response also includes the default ESX version and provided EC2 instance types.
Method Signature¶
METHODS /AWS1/IF_EVS~GETVERSIONS
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_evsgetvrsnresponse
RAISING
/AWS1/CX_EVSINTERNALSERVEREX
/AWS1/CX_EVSTHROTTLINGEX
/AWS1/CX_EVSCLIENTEXC
/AWS1/CX_EVSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_evsgetvrsnresponse /AWS1/CL_EVSGETVRSNRESPONSE¶
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->getversions( ).
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_vcfversions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_vcfversion = lo_row_1->get_vcfversion( ).
lv_string = lo_row_1->get_status( ).
lv_string = lo_row_1->get_defaultesxversion( ).
LOOP AT lo_row_1->get_instancetypes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_instancetype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_instancetypeesxversions( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_instancetype = lo_row_5->get_instancetype( ).
LOOP AT lo_row_5->get_esxversions( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.