/AWS1/IF_BUP=>DESCRIBERESTOREJOB()¶
About DescribeRestoreJob¶
Returns metadata associated with a restore job that is specified by a job ID.
Method Signature¶
METHODS /AWS1/IF_BUP~DESCRIBERESTOREJOB
IMPORTING
!IV_RESTOREJOBID TYPE /AWS1/BUPRESTOREJOBID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupdescrrestorejobout
RAISING
/AWS1/CX_BUPDEPENDENCYFAILUR00
/AWS1/CX_BUPINVPARAMVALUEEX
/AWS1/CX_BUPMISSINGPARAMVALEX
/AWS1/CX_BUPRESOURCENOTFOUNDEX
/AWS1/CX_BUPSERVICEUNAVAILEX
/AWS1/CX_BUPCLIENTEXC
/AWS1/CX_BUPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_restorejobid TYPE /AWS1/BUPRESTOREJOBID /AWS1/BUPRESTOREJOBID¶
Uniquely identifies the job that restores a recovery point.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupdescrrestorejobout /AWS1/CL_BUPDESCRRESTOREJOBOUT¶
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->describerestorejob( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_accountid = lo_result->get_accountid( ).
lv_string = lo_result->get_restorejobid( ).
lv_arn = lo_result->get_recoverypointarn( ).
lv_arn = lo_result->get_sourceresourcearn( ).
lv_arn = lo_result->get_backupvaultarn( ).
lv_timestamp = lo_result->get_creationdate( ).
lv_timestamp = lo_result->get_completiondate( ).
lv_restorejobstatus = lo_result->get_status( ).
lv_string = lo_result->get_statusmessage( ).
lv_string = lo_result->get_percentdone( ).
lv_long = lo_result->get_backupsizeinbytes( ).
lv_iamrolearn = lo_result->get_iamrolearn( ).
lv_long = lo_result->get_expectedcompletiontime00( ).
lv_arn = lo_result->get_createdresourcearn( ).
lv_resourcetype = lo_result->get_resourcetype( ).
lv_timestamp = lo_result->get_recpointcreationdate( ).
lo_restorejobcreator = lo_result->get_createdby( ).
IF lo_restorejobcreator IS NOT INITIAL.
lv_arn = lo_restorejobcreator->get_restoretestingplanarn( ).
ENDIF.
lv_restorevalidationstatus = lo_result->get_validationstatus( ).
lv_string = lo_result->get_validationstatusmessage( ).
lv_restoredeletionstatus = lo_result->get_deletionstatus( ).
lv_string = lo_result->get_deletionstatusmessage( ).
lv_boolean2 = lo_result->get_isparent( ).
lv_string = lo_result->get_parentjobid( ).
ENDIF.