Skip to content

/AWS1/IF_RSS=>CONVERTRECOVERYPOINTTOSNAP()

About ConvertRecoveryPointToSnapshot

Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.

Method Signature

IMPORTING

Required arguments:

iv_recoverypointid TYPE /AWS1/RSSSTRING /AWS1/RSSSTRING

The unique identifier of the recovery point.

iv_snapshotname TYPE /AWS1/RSSSTRING /AWS1/RSSSTRING

The name of the snapshot.

Optional arguments:

iv_retentionperiod TYPE /AWS1/RSSINTEGER /AWS1/RSSINTEGER

How long to retain the snapshot.

it_tags TYPE /AWS1/CL_RSSTAG=>TT_TAGLIST TT_TAGLIST

An array of Tag objects to associate with the created snapshot.

RETURNING

oo_output TYPE REF TO /aws1/cl_rssconvertrecpttosn01 /AWS1/CL_RSSCONVERTRECPTTOSN01

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->/aws1/if_rss~convertrecoverypointtosnap(
  it_tags = VALUE /aws1/cl_rsstag=>tt_taglist(
    (
      new /aws1/cl_rsstag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_recoverypointid = |string|
  iv_retentionperiod = 123
  iv_snapshotname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_snapshot = lo_result->get_snapshot( ).
  IF lo_snapshot IS NOT INITIAL.
    lv_string = lo_snapshot->get_namespacename( ).
    lv_string = lo_snapshot->get_namespacearn( ).
    lv_string = lo_snapshot->get_snapshotname( ).
    lv_timestamp = lo_snapshot->get_snapshotcreatetime( ).
    lv_string = lo_snapshot->get_adminusername( ).
    lv_snapshotstatus = lo_snapshot->get_status( ).
    lv_kmskeyid = lo_snapshot->get_kmskeyid( ).
    lv_string = lo_snapshot->get_owneraccount( ).
    lv_double = lo_snapshot->get_totalbackupsizeinmegab00( ).
    lv_double = lo_snapshot->get_actualincrementalbacku00( ).
    lv_double = lo_snapshot->get_backupprgssinmegabytes( ).
    lv_double = lo_snapshot->get_currentbackuprateinmeg00( ).
    lv_long = lo_snapshot->get_estimatedsecstocomplet00( ).
    lv_long = lo_snapshot->get_elapsedtimeinseconds( ).
    lv_integer = lo_snapshot->get_snapshotretentionperiod( ).
    lv_integer = lo_snapshot->get_snapshotremainingdays( ).
    lv_timestamp = lo_snapshot->get_snapshotretstarttime( ).
    lv_string = lo_snapshot->get_snapshotarn( ).
    LOOP AT lo_snapshot->get_acctswithrestoreaccess( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_snapshot->get_acctswithprovrestoreacc( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_string = lo_snapshot->get_adminpasswordsecretarn( ).
    lv_kmskeyid = lo_snapshot->get_adminpasswordsecretkms00( ).
  ENDIF.
ENDIF.