/AWS1/IF_SGM=>LISTCOMPUTEQUOTAS()¶
About ListComputeQuotas¶
List the resource allocation definitions.
Method Signature¶
METHODS /AWS1/IF_SGM~LISTCOMPUTEQUOTAS
IMPORTING
!IV_CREATEDAFTER TYPE /AWS1/SGMTIMESTAMP OPTIONAL
!IV_CREATEDBEFORE TYPE /AWS1/SGMTIMESTAMP OPTIONAL
!IV_NAMECONTAINS TYPE /AWS1/SGMENTITYNAME OPTIONAL
!IV_STATUS TYPE /AWS1/SGMSCHDRRESOURCESTATUS OPTIONAL
!IV_CLUSTERARN TYPE /AWS1/SGMCLUSTERARN OPTIONAL
!IV_SORTBY TYPE /AWS1/SGMSORTQUOTABY OPTIONAL
!IV_SORTORDER TYPE /AWS1/SGMSORTORDER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sgmlstcomputequotas01
RAISING
/AWS1/CX_SGMCLIENTEXC
/AWS1/CX_SGMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_createdafter TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP¶
Filter for after this creation time. The input for this parameter is a Unix timestamp. To convert a date and time into a Unix timestamp, see EpochConverter.
iv_createdbefore TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP¶
Filter for before this creation time. The input for this parameter is a Unix timestamp. To convert a date and time into a Unix timestamp, see EpochConverter.
iv_namecontains TYPE /AWS1/SGMENTITYNAME /AWS1/SGMENTITYNAME¶
Filter for name containing this string.
iv_status TYPE /AWS1/SGMSCHDRRESOURCESTATUS /AWS1/SGMSCHDRRESOURCESTATUS¶
Filter for status.
iv_clusterarn TYPE /AWS1/SGMCLUSTERARN /AWS1/SGMCLUSTERARN¶
Filter for ARN of the cluster.
iv_sortby TYPE /AWS1/SGMSORTQUOTABY /AWS1/SGMSORTQUOTABY¶
Filter for sorting the list by a given value. For example, sort by name, creation time, or status.
iv_sortorder TYPE /AWS1/SGMSORTORDER /AWS1/SGMSORTORDER¶
The order of the list. By default, listed in
Descendingorder according to bySortBy. To change the list order, you can specifySortOrderto beAscending.
iv_nexttoken TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN¶
If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.
iv_maxresults TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS¶
The maximum number of compute allocation definitions to list.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sgmlstcomputequotas01 /AWS1/CL_SGMLSTCOMPUTEQUOTAS01¶
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->listcomputequotas(
iv_clusterarn = |string|
iv_createdafter = '20150101000000.0000000'
iv_createdbefore = '20150101000000.0000000'
iv_maxresults = 123
iv_namecontains = |string|
iv_nexttoken = |string|
iv_sortby = |string|
iv_sortorder = |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_computequotasummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_computequotaarn = lo_row_1->get_computequotaarn( ).
lv_computequotaid = lo_row_1->get_computequotaid( ).
lv_entityname = lo_row_1->get_name( ).
lv_integer = lo_row_1->get_computequotaversion( ).
lv_schedulerresourcestatus = lo_row_1->get_status( ).
lv_clusterarn = lo_row_1->get_clusterarn( ).
lo_computequotaconfig = lo_row_1->get_computequotaconfig( ).
IF lo_computequotaconfig IS NOT INITIAL.
LOOP AT lo_computequotaconfig->get_computequotaresources( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_clusterinstancetype = lo_row_3->get_instancetype( ).
lv_instancecount = lo_row_3->get_count( ).
lv_acceleratorsamount = lo_row_3->get_accelerators( ).
lv_vcpuamount = lo_row_3->get_vcpu( ).
lv_memoryingibamount = lo_row_3->get_memoryingib( ).
ENDIF.
ENDLOOP.
lo_resourcesharingconfig = lo_computequotaconfig->get_resourcesharingconfig( ).
IF lo_resourcesharingconfig IS NOT INITIAL.
lv_resourcesharingstrategy = lo_resourcesharingconfig->get_strategy( ).
lv_borrowlimit = lo_resourcesharingconfig->get_borrowlimit( ).
ENDIF.
lv_preemptteamtasks = lo_computequotaconfig->get_preemptteamtasks( ).
ENDIF.
lo_computequotatarget = lo_row_1->get_computequotatarget( ).
IF lo_computequotatarget IS NOT INITIAL.
lv_computequotatargetteamn = lo_computequotatarget->get_teamname( ).
lv_fairshareweight = lo_computequotatarget->get_fairshareweight( ).
ENDIF.
lv_activationstate = lo_row_1->get_activationstate( ).
lv_timestamp = lo_row_1->get_creationtime( ).
lv_timestamp = lo_row_1->get_lastmodifiedtime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.