/AWS1/IF_BUP=>DESCRIBERECOVERYPOINT()¶
About DescribeRecoveryPoint¶
Returns metadata associated with a recovery point, including ID, status, encryption, and lifecycle.
Method Signature¶
METHODS /AWS1/IF_BUP~DESCRIBERECOVERYPOINT
IMPORTING
!IV_BACKUPVAULTNAME TYPE /AWS1/BUPBACKUPVAULTNAME OPTIONAL
!IV_RECOVERYPOINTARN TYPE /AWS1/BUPARN OPTIONAL
!IV_BACKUPVAULTACCOUNTID TYPE /AWS1/BUPACCOUNTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupdescrrecpointout
RAISING
/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_backupvaultname TYPE /AWS1/BUPBACKUPVAULTNAME /AWS1/BUPBACKUPVAULTNAME¶
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
iv_recoverypointarn TYPE /AWS1/BUPARN /AWS1/BUPARN¶
An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
Optional arguments:¶
iv_backupvaultaccountid TYPE /AWS1/BUPACCOUNTID /AWS1/BUPACCOUNTID¶
The account ID of the specified backup vault.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupdescrrecpointout /AWS1/CL_BUPDESCRRECPOINTOUT¶
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->describerecoverypoint(
iv_backupvaultaccountid = |string|
iv_backupvaultname = |string|
iv_recoverypointarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_recoverypointarn( ).
lv_backupvaultname = lo_result->get_backupvaultname( ).
lv_arn = lo_result->get_backupvaultarn( ).
lv_arn = lo_result->get_sourcebackupvaultarn( ).
lv_arn = lo_result->get_resourcearn( ).
lv_resourcetype = lo_result->get_resourcetype( ).
lo_recoverypointcreator = lo_result->get_createdby( ).
IF lo_recoverypointcreator IS NOT INITIAL.
lv_string = lo_recoverypointcreator->get_backupplanid( ).
lv_arn = lo_recoverypointcreator->get_backupplanarn( ).
lv_string = lo_recoverypointcreator->get_backupplanname( ).
lv_string = lo_recoverypointcreator->get_backupplanversion( ).
lv_string = lo_recoverypointcreator->get_backupruleid( ).
lv_string = lo_recoverypointcreator->get_backuprulename( ).
lv_string = lo_recoverypointcreator->get_backuprulecron( ).
lv_string = lo_recoverypointcreator->get_backupruletimezone( ).
ENDIF.
lv_iamrolearn = lo_result->get_iamrolearn( ).
lv_recoverypointstatus = lo_result->get_status( ).
lv_string = lo_result->get_statusmessage( ).
lv_timestamp = lo_result->get_creationdate( ).
lv_timestamp = lo_result->get_initiationdate( ).
lv_timestamp = lo_result->get_completiondate( ).
lv_long = lo_result->get_backupsizeinbytes( ).
lo_calculatedlifecycle = lo_result->get_calculatedlifecycle( ).
IF lo_calculatedlifecycle IS NOT INITIAL.
lv_timestamp = lo_calculatedlifecycle->get_movetocoldstorageat( ).
lv_timestamp = lo_calculatedlifecycle->get_deleteat( ).
ENDIF.
lo_lifecycle = lo_result->get_lifecycle( ).
IF lo_lifecycle IS NOT INITIAL.
lv_long = lo_lifecycle->get_movetocoldstrgafterdays( ).
lv_long = lo_lifecycle->get_deleteafterdays( ).
lv_boolean = lo_lifecycle->get_optintoarchiveforsuppe00( ).
lv_lifecycledeleteaftereve = lo_lifecycle->get_deleteafterevent( ).
ENDIF.
lv_arn = lo_result->get_encryptionkeyarn( ).
lv_boolean2 = lo_result->get_isencrypted( ).
lv_storageclass = lo_result->get_storageclass( ).
lv_timestamp = lo_result->get_lastrestoretime( ).
lv_arn = lo_result->get_parentrecoverypointarn( ).
lv_string = lo_result->get_compositememberid( ).
lv_boolean2 = lo_result->get_isparent( ).
lv_string = lo_result->get_resourcename( ).
lv_vaulttype = lo_result->get_vaulttype( ).
lv_indexstatus = lo_result->get_indexstatus( ).
lv_string = lo_result->get_indexstatusmessage( ).
lv_encryptionkeytype = lo_result->get_encryptionkeytype( ).
LOOP AT lo_result->get_scanresults( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_malwarescanner = lo_row_1->get_malwarescanner( ).
lv_scanjobstate = lo_row_1->get_scanjobstate( ).
lv_timestamp = lo_row_1->get_lastscantimestamp( ).
LOOP AT lo_row_1->get_findings( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_scanfinding = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.