/AWS1/IF_FSX=>DESCRIBEDATAREPOSITORYTASKS()¶
About DescribeDataRepositoryTasks¶
Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data repository tasks, if
one or more TaskIds values are provided in the request, or if filters are used in the request.
You can use filters to narrow the response to include just tasks for specific file systems or caches,
or tasks in a specific lifecycle state. Otherwise, it returns all data repository tasks owned
by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.
When retrieving all tasks, you can paginate the response by using the optional MaxResults
parameter to limit the number of tasks returned in a response. If more tasks remain,
a NextToken value is returned in the response. In this case, send a later
request with the NextToken request parameter set to the value of
NextToken from the last response.
Method Signature¶
METHODS /AWS1/IF_FSX~DESCRIBEDATAREPOSITORYTASKS
IMPORTING
!IT_TASKIDS TYPE /AWS1/CL_FSXTASKIDS_W=>TT_TASKIDS OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_FSXDATAREPOSITORYTS03=>TT_DATAREPOSITORYTASKFILTERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/FSXMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/FSXNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_fsxdscdatarepositor03
RAISING
/AWS1/CX_FSXBADREQUEST
/AWS1/CX_FSXDATAREPOSITORYTS00
/AWS1/CX_FSXFILESYSTEMNOTFOUND
/AWS1/CX_FSXINTERNALSERVERERR
/AWS1/CX_FSXCLIENTEXC
/AWS1/CX_FSXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_taskids TYPE /AWS1/CL_FSXTASKIDS_W=>TT_TASKIDS TT_TASKIDS¶
(Optional) IDs of the tasks whose descriptions you want to retrieve (String).
it_filters TYPE /AWS1/CL_FSXDATAREPOSITORYTS03=>TT_DATAREPOSITORYTASKFILTERS TT_DATAREPOSITORYTASKFILTERS¶
(Optional) You can use filters to narrow the
DescribeDataRepositoryTasksresponse to include just tasks for specific file systems, or tasks in a specific lifecycle state.
iv_maxresults TYPE /AWS1/FSXMAXRESULTS /AWS1/FSXMAXRESULTS¶
MaxResults
iv_nexttoken TYPE /AWS1/FSXNEXTTOKEN /AWS1/FSXNEXTTOKEN¶
NextToken
RETURNING¶
oo_output TYPE REF TO /aws1/cl_fsxdscdatarepositor03 /AWS1/CL_FSXDSCDATAREPOSITOR03¶
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->describedatarepositorytasks(
it_filters = VALUE /aws1/cl_fsxdatarepositoryts03=>tt_datarepositorytaskfilters(
(
new /aws1/cl_fsxdatarepositoryts03(
it_values = VALUE /aws1/cl_fsxdatarepositoryts04=>tt_datarepositorytaskfiltvals(
( new /aws1/cl_fsxdatarepositoryts04( |string| ) )
)
iv_name = |string|
)
)
)
it_taskids = VALUE /aws1/cl_fsxtaskids_w=>tt_taskids(
( new /aws1/cl_fsxtaskids_w( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |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_datarepositorytasks( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_taskid = lo_row_1->get_taskid( ).
lv_datarepositorytasklifec = lo_row_1->get_lifecycle( ).
lv_datarepositorytasktype = lo_row_1->get_type( ).
lv_creationtime = lo_row_1->get_creationtime( ).
lv_starttime = lo_row_1->get_starttime( ).
lv_endtime = lo_row_1->get_endtime( ).
lv_resourcearn = lo_row_1->get_resourcearn( ).
LOOP AT lo_row_1->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_tagkey = lo_row_3->get_key( ).
lv_tagvalue = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_filesystemid = lo_row_1->get_filesystemid( ).
LOOP AT lo_row_1->get_paths( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_datarepositorytaskpath = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lo_datarepositorytaskfailu = lo_row_1->get_failuredetails( ).
IF lo_datarepositorytaskfailu IS NOT INITIAL.
lv_errormessage = lo_datarepositorytaskfailu->get_message( ).
ENDIF.
lo_datarepositorytaskstatu = lo_row_1->get_status( ).
IF lo_datarepositorytaskstatu IS NOT INITIAL.
lv_totalcount = lo_datarepositorytaskstatu->get_totalcount( ).
lv_succeededcount = lo_datarepositorytaskstatu->get_succeededcount( ).
lv_failedcount = lo_datarepositorytaskstatu->get_failedcount( ).
lv_lastupdatedtime = lo_datarepositorytaskstatu->get_lastupdatedtime( ).
lv_releasedcapacity = lo_datarepositorytaskstatu->get_releasedcapacity( ).
ENDIF.
lo_completionreport = lo_row_1->get_report( ).
IF lo_completionreport IS NOT INITIAL.
lv_flag = lo_completionreport->get_enabled( ).
lv_archivepath = lo_completionreport->get_path( ).
lv_reportformat = lo_completionreport->get_format( ).
lv_reportscope = lo_completionreport->get_scope( ).
ENDIF.
lv_capacitytorelease = lo_row_1->get_capacitytorelease( ).
lv_filecacheid = lo_row_1->get_filecacheid( ).
lo_releaseconfiguration = lo_row_1->get_releaseconfiguration( ).
IF lo_releaseconfiguration IS NOT INITIAL.
lo_durationsincelastaccess = lo_releaseconfiguration->get_durationsincelastaccess( ).
IF lo_durationsincelastaccess IS NOT INITIAL.
lv_unit = lo_durationsincelastaccess->get_unit( ).
lv_value = lo_durationsincelastaccess->get_value( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.