Skip to content

/AWS1/IF_R5G=>BATCHDELETEFIREWALLRULE()

About BatchDeleteFirewallRule

Deletes multiple DNS firewall rules in a single operation. This is more efficient than deleting rules individually.

Method Signature

METHODS /AWS1/IF_R5G~BATCHDELETEFIREWALLRULE
  IMPORTING
    !IT_FIREWALLRULES TYPE /AWS1/CL_R5GBTCDELFWRLINPITEM=>TT_BATCHDELFWALLRULEINPUTITEMS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5gbtcdelfwallruleout
  RAISING
    /AWS1/CX_R5GACCESSDENIEDEX
    /AWS1/CX_R5GINTERNALSERVEREX
    /AWS1/CX_R5GTHROTTLINGEX
    /AWS1/CX_R5GVLDTNEXCEPTION
    /AWS1/CX_R5GCLIENTEXC
    /AWS1/CX_R5GSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_firewallrules TYPE /AWS1/CL_R5GBTCDELFWRLINPITEM=>TT_BATCHDELFWALLRULEINPUTITEMS TT_BATCHDELFWALLRULEINPUTITEMS

An array of the DNS Firewall IDs to be deleted.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5gbtcdelfwallruleout /AWS1/CL_R5GBTCDELFWALLRULEOUT

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->batchdeletefirewallrule(
  it_firewallrules = VALUE /aws1/cl_r5gbtcdelfwrlinpitem=>tt_batchdelfwallruleinputitems(
    ( new /aws1/cl_r5gbtcdelfwrlinpitem( |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_failures( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_batchdeletefirewallrule = lo_row_1->get_firewallrule( ).
      IF lo_batchdeletefirewallrule IS NOT INITIAL.
        lv_clienttoken = lo_batchdeletefirewallrule->get_clienttoken( ).
        lv_resourceid = lo_batchdeletefirewallrule->get_id( ).
        lv_resourcename = lo_batchdeletefirewallrule->get_name( ).
        lv_crresourcestatus = lo_batchdeletefirewallrule->get_status( ).
      ENDIF.
      lv_integer = lo_row_1->get_code( ).
      lv_string = lo_row_1->get_message( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_successes( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_batchdeletefirewallrule = lo_row_1->get_firewallrule( ).
      IF lo_batchdeletefirewallrule IS NOT INITIAL.
        lv_clienttoken = lo_batchdeletefirewallrule->get_clienttoken( ).
        lv_resourceid = lo_batchdeletefirewallrule->get_id( ).
        lv_resourcename = lo_batchdeletefirewallrule->get_name( ).
        lv_crresourcestatus = lo_batchdeletefirewallrule->get_status( ).
      ENDIF.
      lv_integer = lo_row_1->get_code( ).
      lv_string = lo_row_1->get_message( ).
    ENDIF.
  ENDLOOP.
ENDIF.