/AWS1/IF_DSR=>DESCRIBEREGIONS()¶
About DescribeRegions¶
Provides information about the Regions that are configured for multi-Region replication.
Method Signature¶
METHODS /AWS1/IF_DSR~DESCRIBEREGIONS
IMPORTING
!IV_DIRECTORYID TYPE /AWS1/DSRDIRECTORYID OPTIONAL
!IV_REGIONNAME TYPE /AWS1/DSRREGIONNAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DSRNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dsrdescrregionsresult
RAISING
/AWS1/CX_DSRACCESSDENIEDEX
/AWS1/CX_DSRCLIENTEXCEPTION
/AWS1/CX_DSRDIRECTORYDOESNOT00
/AWS1/CX_DSRINVALIDNEXTTOKENEX
/AWS1/CX_DSRINVALIDPARAMETEREX
/AWS1/CX_DSRSERVICEEXCEPTION
/AWS1/CX_DSRUNSUPPORTEDOPEX
/AWS1/CX_DSRCLIENTEXC
/AWS1/CX_DSRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_directoryid TYPE /AWS1/DSRDIRECTORYID /AWS1/DSRDIRECTORYID¶
The identifier of the directory.
Optional arguments:¶
iv_regionname TYPE /AWS1/DSRREGIONNAME /AWS1/DSRREGIONNAME¶
The name of the Region. For example,
us-east-1.
iv_nexttoken TYPE /AWS1/DSRNEXTTOKEN /AWS1/DSRNEXTTOKEN¶
The
DescribeRegionsResult.NextTokenvalue from a previous call to DescribeRegions. Pass null if this is the first call.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dsrdescrregionsresult /AWS1/CL_DSRDESCRREGIONSRESULT¶
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->describeregions(
iv_directoryid = |string|
iv_nexttoken = |string|
iv_regionname = |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_regionsdescription( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_directoryid = lo_row_1->get_directoryid( ).
lv_regionname = lo_row_1->get_regionname( ).
lv_regiontype = lo_row_1->get_regiontype( ).
lv_directorystage = lo_row_1->get_status( ).
lo_directoryvpcsettings = lo_row_1->get_vpcsettings( ).
IF lo_directoryvpcsettings IS NOT INITIAL.
lv_vpcid = lo_directoryvpcsettings->get_vpcid( ).
LOOP AT lo_directoryvpcsettings->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_subnetid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_desirednumberofdomainco = lo_row_1->get_desirednumofdomctllers( ).
lv_launchtime = lo_row_1->get_launchtime( ).
lv_statelastupdateddatetim = lo_row_1->get_statuslastupdddatetime( ).
lv_lastupdateddatetime = lo_row_1->get_lastupdateddatetime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.