/AWS1/IF_BUP=>GETTIERINGCONFIGURATION()¶
About GetTieringConfiguration¶
Returns TieringConfiguration details for the specified
TieringConfigurationName. The details are the body of a tiering configuration
in JSON format, in addition to configuration metadata.
Method Signature¶
METHODS /AWS1/IF_BUP~GETTIERINGCONFIGURATION
IMPORTING
!IV_TIERINGCONFIGURATIONNAME TYPE /AWS1/BUPTIERINGCONFNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupgettierconfoutput
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_tieringconfigurationname TYPE /AWS1/BUPTIERINGCONFNAME /AWS1/BUPTIERINGCONFNAME¶
The unique name of a tiering configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupgettierconfoutput /AWS1/CL_BUPGETTIERCONFOUTPUT¶
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->gettieringconfiguration( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_tieringconfiguration = lo_result->get_tieringconfiguration( ).
IF lo_tieringconfiguration IS NOT INITIAL.
lv_tieringconfigurationnam = lo_tieringconfiguration->get_tieringconfigurationname( ).
lv_arn = lo_tieringconfiguration->get_tieringconfigurationarn( ).
lv_backupvaultnameorwildca = lo_tieringconfiguration->get_backupvaultname( ).
LOOP AT lo_tieringconfiguration->get_resourceselection( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
LOOP AT lo_row_1->get_resources( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_arn = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_tieringdownsettingsinda = lo_row_1->get_tieringdownstgsindays( ).
lv_resourcetype = lo_row_1->get_resourcetype( ).
ENDIF.
ENDLOOP.
lv_creatorrequestid = lo_tieringconfiguration->get_creatorrequestid( ).
lv_timestamp = lo_tieringconfiguration->get_creationtime( ).
lv_timestamp = lo_tieringconfiguration->get_lastupdatedtime( ).
ENDIF.
ENDIF.