/AWS1/IF_TBD=>LISTFLEETS()¶
About ListFleets¶
Lists fleets.
Method Signature¶
METHODS /AWS1/IF_TBD~LISTFLEETS
IMPORTING
!IV_FARMID TYPE /AWS1/TBDFARMID OPTIONAL
!IV_PRINCIPALID TYPE /AWS1/TBDIDENTITYCENTERPRINCID OPTIONAL
!IV_DISPLAYNAME TYPE /AWS1/TBDRESOURCENAME OPTIONAL
!IV_STATUS TYPE /AWS1/TBDFLEETSTATUS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/TBDSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TBDMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tbdlistfleetsresponse
RAISING
/AWS1/CX_TBDACCESSDENIEDEX
/AWS1/CX_TBDINTERNALSERVERER00
/AWS1/CX_TBDRESOURCENOTFOUNDEX
/AWS1/CX_TBDTHROTTLINGEX
/AWS1/CX_TBDVALIDATIONEX
/AWS1/CX_TBDCLIENTEXC
/AWS1/CX_TBDSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_farmid TYPE /AWS1/TBDFARMID /AWS1/TBDFARMID¶
The farm ID of the fleets.
Optional arguments:¶
iv_principalid TYPE /AWS1/TBDIDENTITYCENTERPRINCID /AWS1/TBDIDENTITYCENTERPRINCID¶
The principal ID of the members to include in the fleet.
iv_displayname TYPE /AWS1/TBDRESOURCENAME /AWS1/TBDRESOURCENAME¶
The display names of a list of fleets.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
iv_status TYPE /AWS1/TBDFLEETSTATUS /AWS1/TBDFLEETSTATUS¶
The status of the fleet.
iv_nexttoken TYPE /AWS1/TBDSTRING /AWS1/TBDSTRING¶
The token for the next set of results, or
nullto start from the beginning.
iv_maxresults TYPE /AWS1/TBDMAXRESULTS /AWS1/TBDMAXRESULTS¶
The maximum number of results to return. Use this parameter with
NextTokento get results as a set of sequential pages.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tbdlistfleetsresponse /AWS1/CL_TBDLISTFLEETSRESPONSE¶
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->listfleets(
iv_displayname = |string|
iv_farmid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_principalid = |string|
iv_status = |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_fleets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_fleetid = lo_row_1->get_fleetid( ).
lv_farmid = lo_row_1->get_farmid( ).
lv_resourcename = lo_row_1->get_displayname( ).
lv_fleetstatus = lo_row_1->get_status( ).
lv_string = lo_row_1->get_statusmessage( ).
lv_autoscalingstatus = lo_row_1->get_autoscalingstatus( ).
lv_integer = lo_row_1->get_targetworkercount( ).
lv_integer = lo_row_1->get_workercount( ).
lv_minzeromaxinteger = lo_row_1->get_minworkercount( ).
lv_minzeromaxinteger = lo_row_1->get_maxworkercount( ).
lo_fleetconfiguration = lo_row_1->get_configuration( ).
IF lo_fleetconfiguration IS NOT INITIAL.
lo_customermanagedfleetcon = lo_fleetconfiguration->get_customermanaged( ).
IF lo_customermanagedfleetcon IS NOT INITIAL.
lv_autoscalingmode = lo_customermanagedfleetcon->get_mode( ).
lo_customermanagedworkerca = lo_customermanagedfleetcon->get_workercapabilities( ).
IF lo_customermanagedworkerca IS NOT INITIAL.
lo_vcpucountrange = lo_customermanagedworkerca->get_vcpucount( ).
IF lo_vcpucountrange IS NOT INITIAL.
lv_minonemaxtenthousand = lo_vcpucountrange->get_min( ).
lv_minonemaxtenthousand = lo_vcpucountrange->get_max( ).
ENDIF.
lo_memorymibrange = lo_customermanagedworkerca->get_memorymib( ).
IF lo_memorymibrange IS NOT INITIAL.
lv_memoryamountmib = lo_memorymibrange->get_min( ).
lv_memoryamountmib = lo_memorymibrange->get_max( ).
ENDIF.
LOOP AT lo_customermanagedworkerca->get_acceleratortypes( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_acceleratortype = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_acceleratorcountrange = lo_customermanagedworkerca->get_acceleratorcount( ).
IF lo_acceleratorcountrange IS NOT INITIAL.
lv_minzeromaxinteger = lo_acceleratorcountrange->get_min( ).
lv_minzeromaxinteger = lo_acceleratorcountrange->get_max( ).
ENDIF.
lo_acceleratortotalmemorym = lo_customermanagedworkerca->get_acceleratortotalmemory00( ).
IF lo_acceleratortotalmemorym IS NOT INITIAL.
lv_minzeromaxinteger = lo_acceleratortotalmemorym->get_min( ).
lv_minzeromaxinteger = lo_acceleratortotalmemorym->get_max( ).
ENDIF.
lv_customermanagedfleetope = lo_customermanagedworkerca->get_osfamily( ).
lv_cpuarchitecturetype = lo_customermanagedworkerca->get_cpuarchitecturetype( ).
LOOP AT lo_customermanagedworkerca->get_customamounts( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_amountcapabilityname = lo_row_5->get_name( ).
lv_float = lo_row_5->get_min( ).
lv_float = lo_row_5->get_max( ).
ENDIF.
ENDLOOP.
LOOP AT lo_customermanagedworkerca->get_customattributes( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_attributecapabilityname = lo_row_7->get_name( ).
LOOP AT lo_row_7->get_values( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_attributecapabilityvalu = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
lv_storageprofileid = lo_customermanagedfleetcon->get_storageprofileid( ).
lv_tagpropagationmode = lo_customermanagedfleetcon->get_tagpropagationmode( ).
ENDIF.
lo_servicemanagedec2fleetc = lo_fleetconfiguration->get_servicemanagedec2( ).
IF lo_servicemanagedec2fleetc IS NOT INITIAL.
lo_servicemanagedec2instan = lo_servicemanagedec2fleetc->get_instancecapabilities( ).
IF lo_servicemanagedec2instan IS NOT INITIAL.
lo_vcpucountrange = lo_servicemanagedec2instan->get_vcpucount( ).
IF lo_vcpucountrange IS NOT INITIAL.
lv_minonemaxtenthousand = lo_vcpucountrange->get_min( ).
lv_minonemaxtenthousand = lo_vcpucountrange->get_max( ).
ENDIF.
lo_memorymibrange = lo_servicemanagedec2instan->get_memorymib( ).
IF lo_memorymibrange IS NOT INITIAL.
lv_memoryamountmib = lo_memorymibrange->get_min( ).
lv_memoryamountmib = lo_memorymibrange->get_max( ).
ENDIF.
lv_servicemanagedfleetoper = lo_servicemanagedec2instan->get_osfamily( ).
lv_cpuarchitecturetype = lo_servicemanagedec2instan->get_cpuarchitecturetype( ).
lo_ec2ebsvolume = lo_servicemanagedec2instan->get_rootebsvolume( ).
IF lo_ec2ebsvolume IS NOT INITIAL.
lv_integer = lo_ec2ebsvolume->get_sizegib( ).
lv_ebsiops = lo_ec2ebsvolume->get_iops( ).
lv_ebsthroughputmib = lo_ec2ebsvolume->get_throughputmib( ).
ENDIF.
lo_acceleratorcapabilities = lo_servicemanagedec2instan->get_acceleratorcapabilities( ).
IF lo_acceleratorcapabilities IS NOT INITIAL.
LOOP AT lo_acceleratorcapabilities->get_selections( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_acceleratorname = lo_row_11->get_name( ).
lv_acceleratorruntime = lo_row_11->get_runtime( ).
ENDIF.
ENDLOOP.
lo_acceleratorcountrange = lo_acceleratorcapabilities->get_count( ).
IF lo_acceleratorcountrange IS NOT INITIAL.
lv_minzeromaxinteger = lo_acceleratorcountrange->get_min( ).
lv_minzeromaxinteger = lo_acceleratorcountrange->get_max( ).
ENDIF.
ENDIF.
LOOP AT lo_servicemanagedec2instan->get_allowedinstancetypes( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_instancetype = lo_row_13->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_servicemanagedec2instan->get_excludedinstancetypes( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_instancetype = lo_row_13->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_servicemanagedec2instan->get_customamounts( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_amountcapabilityname = lo_row_5->get_name( ).
lv_float = lo_row_5->get_min( ).
lv_float = lo_row_5->get_max( ).
ENDIF.
ENDLOOP.
LOOP AT lo_servicemanagedec2instan->get_customattributes( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_attributecapabilityname = lo_row_7->get_name( ).
LOOP AT lo_row_7->get_values( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_attributecapabilityvalu = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
lo_servicemanagedec2instan_1 = lo_servicemanagedec2fleetc->get_instancemarketoptions( ).
IF lo_servicemanagedec2instan_1 IS NOT INITIAL.
lv_ec2markettype = lo_servicemanagedec2instan_1->get_type( ).
ENDIF.
lo_vpcconfiguration = lo_servicemanagedec2fleetc->get_vpcconfiguration( ).
IF lo_vpcconfiguration IS NOT INITIAL.
LOOP AT lo_vpcconfiguration->get_resourceconfarns( ) into lo_row_14.
lo_row_15 = lo_row_14.
IF lo_row_15 IS NOT INITIAL.
lv_vpcresourceconfiguratio = lo_row_15->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_storageprofileid = lo_servicemanagedec2fleetc->get_storageprofileid( ).
ENDIF.
ENDIF.
lv_createdat = lo_row_1->get_createdat( ).
lv_createdby = lo_row_1->get_createdby( ).
lv_updatedat = lo_row_1->get_updatedat( ).
lv_updatedby = lo_row_1->get_updatedby( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.