Skip to content

/AWS1/IF_R5G=>BATCHUPDATEFIREWALLRULE()

About BatchUpdateFirewallRule

Updates multiple DNS firewall rules in a single operation. This is more efficient than updating rules individually.

Method Signature

METHODS /AWS1/IF_R5G~BATCHUPDATEFIREWALLRULE
  IMPORTING
    !IT_FIREWALLRULES TYPE /AWS1/CL_R5GBTCUPFWRULEINPITEM=>TT_BATCHUPDFWALLRULEINPUTITEMS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5gbtcupdfwallruleout
  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_R5GBTCUPFWRULEINPITEM=>TT_BATCHUPDFWALLRULEINPUTITEMS TT_BATCHUPDFWALLRULEINPUTITEMS

The DNS Firewall rule IDs to be updated.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5gbtcupdfwallruleout /AWS1/CL_R5GBTCUPDFWALLRULEOUT

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->batchupdatefirewallrule(
  it_firewallrules = VALUE /aws1/cl_r5gbtcupfwruleinpitem=>tt_batchupdfwallruleinputitems(
    (
      new /aws1/cl_r5gbtcupfwruleinpitem(
        iv_action = |string|
        iv_blockoverridednstype = |string|
        iv_blockoverridedomain = |string|
        iv_blockoverridettl = 123
        iv_blockresponse = |string|
        iv_confidencethreshold = |string|
        iv_description = |string|
        iv_dnsadvancedprotection = |string|
        iv_firewallruleid = |string|
        iv_name = |string|
        iv_priority = 123
      )
    )
  )
).

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_batchupdatefirewallrule = lo_row_1->get_firewallrule( ).
      IF lo_batchupdatefirewallrule IS NOT INITIAL.
        lv_firewallruleaction = lo_batchupdatefirewallrule->get_action( ).
        lv_blockoverridednsqueryty = lo_batchupdatefirewallrule->get_blockoverridednstype( ).
        lv_domain = lo_batchupdatefirewallrule->get_blockoverridedomain( ).
        lv_blockoverridettl = lo_batchupdatefirewallrule->get_blockoverridettl( ).
        lv_firewallblockresponse = lo_batchupdatefirewallrule->get_blockresponse( ).
        lv_clienttoken = lo_batchupdatefirewallrule->get_clienttoken( ).
        lv_confidencethreshold = lo_batchupdatefirewallrule->get_confidencethreshold( ).
        lv_iso8601timestring = lo_batchupdatefirewallrule->get_createdat( ).
        lv_resourcedescription = lo_batchupdatefirewallrule->get_description( ).
        lv_dnsadvancedprotection = lo_batchupdatefirewallrule->get_dnsadvancedprotection( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_firewalldomainlistid( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_id( ).
        lv_resourcename = lo_batchupdatefirewallrule->get_name( ).
        lv_firewallrulepriority = lo_batchupdatefirewallrule->get_priority( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_dnsviewid( ).
        lv_dnsquerytype = lo_batchupdatefirewallrule->get_querytype( ).
        lv_crresourcestatus = lo_batchupdatefirewallrule->get_status( ).
        lv_iso8601timestring = lo_batchupdatefirewallrule->get_updatedat( ).
      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_batchupdatefirewallrule = lo_row_1->get_firewallrule( ).
      IF lo_batchupdatefirewallrule IS NOT INITIAL.
        lv_firewallruleaction = lo_batchupdatefirewallrule->get_action( ).
        lv_blockoverridednsqueryty = lo_batchupdatefirewallrule->get_blockoverridednstype( ).
        lv_domain = lo_batchupdatefirewallrule->get_blockoverridedomain( ).
        lv_blockoverridettl = lo_batchupdatefirewallrule->get_blockoverridettl( ).
        lv_firewallblockresponse = lo_batchupdatefirewallrule->get_blockresponse( ).
        lv_clienttoken = lo_batchupdatefirewallrule->get_clienttoken( ).
        lv_confidencethreshold = lo_batchupdatefirewallrule->get_confidencethreshold( ).
        lv_iso8601timestring = lo_batchupdatefirewallrule->get_createdat( ).
        lv_resourcedescription = lo_batchupdatefirewallrule->get_description( ).
        lv_dnsadvancedprotection = lo_batchupdatefirewallrule->get_dnsadvancedprotection( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_firewalldomainlistid( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_id( ).
        lv_resourcename = lo_batchupdatefirewallrule->get_name( ).
        lv_firewallrulepriority = lo_batchupdatefirewallrule->get_priority( ).
        lv_resourceid = lo_batchupdatefirewallrule->get_dnsviewid( ).
        lv_dnsquerytype = lo_batchupdatefirewallrule->get_querytype( ).
        lv_crresourcestatus = lo_batchupdatefirewallrule->get_status( ).
        lv_iso8601timestring = lo_batchupdatefirewallrule->get_updatedat( ).
      ENDIF.
      lv_integer = lo_row_1->get_code( ).
      lv_string = lo_row_1->get_message( ).
    ENDIF.
  ENDLOOP.
ENDIF.