/AWS1/IF_RDS=>DELETEGLOBALCLUSTER()¶
About DeleteGlobalCluster¶
Deletes a global database cluster. The primary and secondary clusters must already be detached or destroyed first.
This action only applies to Aurora DB clusters.
Method Signature¶
METHODS /AWS1/IF_RDS~DELETEGLOBALCLUSTER
IMPORTING
!IV_GLOBALCLUSTERIDENTIFIER TYPE /AWS1/RDSGLOBALCLUSTERID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rdsdeleteglbclustrslt
RAISING
/AWS1/CX_RDSGLBCLSTNOTFNDFAULT
/AWS1/CX_RDSINVGLBCLSTSTATEF00
/AWS1/CX_RDSCLIENTEXC
/AWS1/CX_RDSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_globalclusteridentifier TYPE /AWS1/RDSGLOBALCLUSTERID /AWS1/RDSGLOBALCLUSTERID¶
The cluster identifier of the global database cluster being deleted.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rdsdeleteglbclustrslt /AWS1/CL_RDSDELETEGLBCLUSTRSLT¶
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->deleteglobalcluster( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_globalcluster = lo_result->get_globalcluster( ).
IF lo_globalcluster IS NOT INITIAL.
lv_globalclusteridentifier = lo_globalcluster->get_globalclusteridentifier( ).
lv_string = lo_globalcluster->get_globalclusterresourceid( ).
lv_string = lo_globalcluster->get_globalclusterarn( ).
lv_string = lo_globalcluster->get_status( ).
lv_string = lo_globalcluster->get_engine( ).
lv_string = lo_globalcluster->get_engineversion( ).
lv_string = lo_globalcluster->get_enginelifecyclesupport( ).
lv_string = lo_globalcluster->get_databasename( ).
lv_booleanoptional = lo_globalcluster->get_storageencrypted( ).
lv_storageencryptiontype = lo_globalcluster->get_storageencryptiontype( ).
lv_booleanoptional = lo_globalcluster->get_deletionprotection( ).
LOOP AT lo_globalcluster->get_globalclustermembers( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_dbclusterarn( ).
LOOP AT lo_row_1->get_readers( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_boolean = lo_row_1->get_iswriter( ).
lv_writeforwardingstatus = lo_row_1->get_glbwriteforwardingstatus( ).
lv_globalclustermembersync = lo_row_1->get_synchronizationstatus( ).
ENDIF.
ENDLOOP.
lv_string = lo_globalcluster->get_endpoint( ).
lo_failoverstate = lo_globalcluster->get_failoverstate( ).
IF lo_failoverstate IS NOT INITIAL.
lv_failoverstatus = lo_failoverstate->get_status( ).
lv_string = lo_failoverstate->get_fromdbclusterarn( ).
lv_string = lo_failoverstate->get_todbclusterarn( ).
lv_boolean = lo_failoverstate->get_isdatalossallowed( ).
ENDIF.
LOOP AT lo_globalcluster->get_taglist( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_key( ).
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
To delete a global DB cluster¶
The following example deletes an Aurora MySQL-compatible global DB cluster.
DATA(lo_result) = lo_client->deleteglobalcluster( |myglobalcluster| ).