/AWS1/IF_RSH=>CREATESNAPSHOTSCHEDULE()¶
About CreateSnapshotSchedule¶
Create a snapshot schedule that can be associated to a cluster and which overrides the default system backup schedule.
Method Signature¶
METHODS /AWS1/IF_RSH~CREATESNAPSHOTSCHEDULE
IMPORTING
!IT_SCHEDULEDEFINITIONS TYPE /AWS1/CL_RSHSCHEDULEDEFNLIST_W=>TT_SCHEDULEDEFINITIONLIST OPTIONAL
!IV_SCHEDULEIDENTIFIER TYPE /AWS1/RSHSTRING OPTIONAL
!IV_SCHEDULEDESCRIPTION TYPE /AWS1/RSHSTRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_RSHTAG=>TT_TAGLIST OPTIONAL
!IV_DRYRUN TYPE /AWS1/RSHBOOLEANOPTIONAL OPTIONAL
!IV_NEXTINVOCATIONS TYPE /AWS1/RSHINTEGEROPTIONAL OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rshsnapshotschedule
RAISING
/AWS1/CX_RSHINVALIDSCHDFAULT
/AWS1/CX_RSHINVALIDTAGFAULT
/AWS1/CX_RSHSCHDEFTYPEUNSUPP00
/AWS1/CX_RSHSNAPSCHALREXFAULT
/AWS1/CX_RSHSNAPSCHQUOTAEXCD00
/AWS1/CX_RSHTAGLIMITEXCDFAULT
/AWS1/CX_RSHCLIENTEXC
/AWS1/CX_RSHSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_scheduledefinitions TYPE /AWS1/CL_RSHSCHEDULEDEFNLIST_W=>TT_SCHEDULEDEFINITIONLIST TT_SCHEDULEDEFINITIONLIST¶
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".
iv_scheduleidentifier TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.
iv_scheduledescription TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The description of the snapshot schedule.
it_tags TYPE /AWS1/CL_RSHTAG=>TT_TAGLIST TT_TAGLIST¶
An optional set of tags you can use to search for the schedule.
iv_dryrun TYPE /AWS1/RSHBOOLEANOPTIONAL /AWS1/RSHBOOLEANOPTIONAL¶
iv_nextinvocations TYPE /AWS1/RSHINTEGEROPTIONAL /AWS1/RSHINTEGEROPTIONAL¶
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rshsnapshotschedule /AWS1/CL_RSHSNAPSHOTSCHEDULE¶
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->createsnapshotschedule(
it_scheduledefinitions = VALUE /aws1/cl_rshscheduledefnlist_w=>tt_scheduledefinitionlist(
( new /aws1/cl_rshscheduledefnlist_w( |string| ) )
)
it_tags = VALUE /aws1/cl_rshtag=>tt_taglist(
(
new /aws1/cl_rshtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_dryrun = ABAP_TRUE
iv_nextinvocations = 123
iv_scheduledescription = |string|
iv_scheduleidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_scheduledefinitions( ) 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_result->get_scheduleidentifier( ).
lv_string = lo_result->get_scheduledescription( ).
LOOP AT lo_result->get_tags( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_key( ).
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_nextinvocations( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_tstamp = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_integeroptional = lo_result->get_associatedclustercount( ).
LOOP AT lo_result->get_associatedclusters( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_string = lo_row_7->get_clusteridentifier( ).
lv_schedulestate = lo_row_7->get_scheduleassociationstate( ).
ENDIF.
ENDLOOP.
ENDIF.