/AWS1/IF_BUP=>CREATERESTOREACCBACKUPVAULT()¶
About CreateRestoreAccessBackupVault¶
Creates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval.
Method Signature¶
METHODS /AWS1/IF_BUP~CREATERESTOREACCBACKUPVAULT
IMPORTING
!IV_SOURCEBACKUPVAULTARN TYPE /AWS1/BUPARN OPTIONAL
!IV_BACKUPVAULTNAME TYPE /AWS1/BUPBACKUPVAULTNAME OPTIONAL
!IT_BACKUPVAULTTAGS TYPE /AWS1/CL_BUPTAGS_W=>TT_TAGS OPTIONAL
!IV_CREATORREQUESTID TYPE /AWS1/BUPSTRING OPTIONAL
!IV_REQUESTERCOMMENT TYPE /AWS1/BUPREQUESTERCOMMENT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupcrerestoreaccbac01
RAISING
/AWS1/CX_BUPALREADYEXISTSEX
/AWS1/CX_BUPINVPARAMVALUEEX
/AWS1/CX_BUPINVALIDREQUESTEX
/AWS1/CX_BUPLIMITEXCEEDEDEX
/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_sourcebackupvaultarn TYPE /AWS1/BUPARN /AWS1/BUPARN¶
The ARN of the source backup vault containing the recovery points to which temporary access is requested.
Optional arguments:¶
iv_backupvaultname TYPE /AWS1/BUPBACKUPVAULTNAME /AWS1/BUPBACKUPVAULTNAME¶
The name of the backup vault to associate with an MPA approval team.
it_backupvaulttags TYPE /AWS1/CL_BUPTAGS_W=>TT_TAGS TT_TAGS¶
Optional tags to assign to the restore access backup vault.
iv_creatorrequestid TYPE /AWS1/BUPSTRING /AWS1/BUPSTRING¶
A unique string that identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
iv_requestercomment TYPE /AWS1/BUPREQUESTERCOMMENT /AWS1/BUPREQUESTERCOMMENT¶
A comment explaining the reason for requesting restore access to the backup vault.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupcrerestoreaccbac01 /AWS1/CL_BUPCRERESTOREACCBAC01¶
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->createrestoreaccbackupvault(
it_backupvaulttags = VALUE /aws1/cl_buptags_w=>tt_tags(
(
VALUE /aws1/cl_buptags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_buptags_w( |string| )
)
)
)
iv_backupvaultname = |string|
iv_creatorrequestid = |string|
iv_requestercomment = |string|
iv_sourcebackupvaultarn = |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_restoreaccbackupvaultarn( ).
lv_vaultstate = lo_result->get_vaultstate( ).
lv_backupvaultname = lo_result->get_restoreaccbackupvaultn00( ).
lv_timestamp = lo_result->get_creationdate( ).
ENDIF.