/AWS1/IF_AZS=>LISTAUTOSHIFTS()¶
About ListAutoshifts¶
Returns the autoshifts for an Amazon Web Services Region. By default, the call returns only ACTIVE autoshifts. Optionally, you can specify the status parameter to return COMPLETED autoshifts.
Method Signature¶
METHODS /AWS1/IF_AZS~LISTAUTOSHIFTS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/AZSSTRING OPTIONAL
!IV_STATUS TYPE /AWS1/AZSAUTOSHIFTEXECSTATUS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/AZSMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_azslistautoshiftsrsp
RAISING
/AWS1/CX_AZSACCESSDENIEDEX
/AWS1/CX_AZSINTERNALSERVEREX
/AWS1/CX_AZSTHROTTLINGEX
/AWS1/CX_AZSVALIDATIONEX
/AWS1/CX_AZSCLIENTEXC
/AWS1/CX_AZSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/AZSSTRING /AWS1/AZSSTRING¶
Specifies that you want to receive the next page of results. Valid only if you received a
nextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'snextTokenresponse to request the next page of results.
iv_status TYPE /AWS1/AZSAUTOSHIFTEXECSTATUS /AWS1/AZSAUTOSHIFTEXECSTATUS¶
The status of the autoshift.
iv_maxresults TYPE /AWS1/AZSMAXRESULTS /AWS1/AZSMAXRESULTS¶
The number of objects that you want to return with this call.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_azslistautoshiftsrsp /AWS1/CL_AZSLISTAUTOSHIFTSRSP¶
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->listautoshifts(
iv_maxresults = 123
iv_nexttoken = |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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_availabilityzone = lo_row_1->get_awayfrom( ).
lv_expirytime = lo_row_1->get_endtime( ).
lv_starttime = lo_row_1->get_starttime( ).
lv_autoshiftexecutionstatu = lo_row_1->get_status( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.