/AWS1/IF_STG=>DESCRIBETAPERECOVERYPOINTS()¶
About DescribeTapeRecoveryPoints¶
Returns a list of virtual tape recovery points that are available for the specified tape gateway.
A recovery point is a point-in-time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway. This operation is only supported in the tape gateway type.
Method Signature¶
METHODS /AWS1/IF_STG~DESCRIBETAPERECOVERYPOINTS
IMPORTING
!IV_GATEWAYARN TYPE /AWS1/STGGATEWAYARN OPTIONAL
!IV_MARKER TYPE /AWS1/STGMARKER OPTIONAL
!IV_LIMIT TYPE /AWS1/STGPOSITIVEINTOBJECT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_stgdescrtaperecptsout
RAISING
/AWS1/CX_STGINTERNALSERVERERR
/AWS1/CX_STGINVALIDGWREQUESTEX
/AWS1/CX_STGCLIENTEXC
/AWS1/CX_STGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_gatewayarn TYPE /AWS1/STGGATEWAYARN /AWS1/STGGATEWAYARN¶
The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
Optional arguments:¶
iv_marker TYPE /AWS1/STGMARKER /AWS1/STGMARKER¶
An opaque string that indicates the position at which to begin describing the virtual tape recovery points.
iv_limit TYPE /AWS1/STGPOSITIVEINTOBJECT /AWS1/STGPOSITIVEINTOBJECT¶
Specifies that the number of virtual tape recovery points that are described be limited to the specified number.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_stgdescrtaperecptsout /AWS1/CL_STGDESCRTAPERECPTSOUT¶
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->describetaperecoverypoints(
iv_gatewayarn = |string|
iv_limit = 123
iv_marker = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_gatewayarn = lo_result->get_gatewayarn( ).
LOOP AT lo_result->get_taperecoverypointinfos( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_tapearn = lo_row_1->get_tapearn( ).
lv_time = lo_row_1->get_taperecoverypointtime( ).
lv_tapesize = lo_row_1->get_tapesizeinbytes( ).
lv_taperecoverypointstatus = lo_row_1->get_tapestatus( ).
ENDIF.
ENDLOOP.
lv_marker = lo_result->get_marker( ).
ENDIF.