Skip to content

/AWS1/IF_R5R=>BATCHUPDATEFIREWALLRULE()

About BatchUpdateFirewallRule

Updates multiple DNS Firewall rules in the specified rule group.

Method Signature

METHODS /AWS1/IF_R5R~BATCHUPDATEFIREWALLRULE
  IMPORTING
    !IT_UPDATEFIREWALLRULEENTRIES TYPE /AWS1/CL_R5RUPDFWALLRULEENTRY=>TT_UPDATEFIREWALLRULEENTRIES OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5rbtcupdfwallrulersp
  RAISING
    /AWS1/CX_R5RACCESSDENIEDEX
    /AWS1/CX_R5RINTERNALSVCERROREX
    /AWS1/CX_R5RLIMITEXCEEDEDEX
    /AWS1/CX_R5RTHROTTLINGEX
    /AWS1/CX_R5RVALIDATIONEX
    /AWS1/CX_R5RCLIENTEXC
    /AWS1/CX_R5RSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_updatefirewallruleentries TYPE /AWS1/CL_R5RUPDFWALLRULEENTRY=>TT_UPDATEFIREWALLRULEENTRIES TT_UPDATEFIREWALLRULEENTRIES

The list of firewall rules to update.

RETURNING

oo_output TYPE REF TO /aws1/cl_r5rbtcupdfwallrulersp /AWS1/CL_R5RBTCUPDFWALLRULERSP

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_updatefirewallruleentries = VALUE /aws1/cl_r5rupdfwallruleentry=>tt_updatefirewallruleentries(
    (
      new /aws1/cl_r5rupdfwallruleentry(
        io_firewallruletype = new /aws1/cl_r5rfirewallruletype(
          io_dnsthreatprotection = new /aws1/cl_r5rdnsthrprtctrltycfg(
            iv_confidencethreshold = |string|
            iv_value = |string|
          )
          io_fwalladvncdcontentcat = new /aws1/cl_r5rfwadvdcontcatcfg( |string| )
          io_fwalladvncdthreatcategory = new /aws1/cl_r5rfwadvdthreatcatcfg( |string| )
        )
        iv_action = |string|
        iv_blockoverridednstype = |string|
        iv_blockoverridedomain = |string|
        iv_blockoverridettl = 123
        iv_blockresponse = |string|
        iv_confidencethreshold = |string|
        iv_dnsthreatprotection = |string|
        iv_firewalldomainlistid = |string|
        iv_firewalldomainrediraction = |string|
        iv_firewallrulegroupid = |string|
        iv_firewallthreatprotectio00 = |string|
        iv_name = |string|
        iv_priority = 123
        iv_qtype = |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_updatedfirewallrules( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_resourceid = lo_row_1->get_firewallrulegroupid( ).
      lv_resourceid = lo_row_1->get_firewalldomainlistid( ).
      lv_resourceid = lo_row_1->get_firewallthreatprotecti00( ).
      lv_name = lo_row_1->get_name( ).
      lv_priority = lo_row_1->get_priority( ).
      lv_action = lo_row_1->get_action( ).
      lv_blockresponse = lo_row_1->get_blockresponse( ).
      lv_blockoverridedomain = lo_row_1->get_blockoverridedomain( ).
      lv_blockoverridednstype = lo_row_1->get_blockoverridednstype( ).
      lv_unsigned = lo_row_1->get_blockoverridettl( ).
      lv_creatorrequestid = lo_row_1->get_creatorrequestid( ).
      lv_rfc3339timestring = lo_row_1->get_creationtime( ).
      lv_rfc3339timestring = lo_row_1->get_modificationtime( ).
      lv_firewalldomainredirecti = lo_row_1->get_firewalldomrediraction( ).
      lv_qtype = lo_row_1->get_qtype( ).
      lv_dnsthreatprotection = lo_row_1->get_dnsthreatprotection( ).
      lv_confidencethreshold = lo_row_1->get_confidencethreshold( ).
      lo_firewallruletype = lo_row_1->get_firewallruletype( ).
      IF lo_firewallruletype IS NOT INITIAL.
        lo_firewalladvancedcontent = lo_firewallruletype->get_fwalladvncdcontentcat( ).
        IF lo_firewalladvancedcontent IS NOT INITIAL.
          lv_firewalladvancedcontent_1 = lo_firewalladvancedcontent->get_category( ).
        ENDIF.
        lo_firewalladvancedthreatc = lo_firewallruletype->get_fwalladvncdthreatcat( ).
        IF lo_firewalladvancedthreatc IS NOT INITIAL.
          lv_firewalladvancedthreatc_1 = lo_firewalladvancedthreatc->get_category( ).
        ENDIF.
        lo_dnsthreatprotectionrule = lo_firewallruletype->get_dnsthreatprotection( ).
        IF lo_dnsthreatprotectionrule IS NOT INITIAL.
          lv_dnsthreatprotectionrule_1 = lo_dnsthreatprotectionrule->get_value( ).
          lv_confidencethreshold = lo_dnsthreatprotectionrule->get_confidencethreshold( ).
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_updateerrors( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lo_updatefirewallruleentry = lo_row_3->get_firewallrule( ).
      IF lo_updatefirewallruleentry IS NOT INITIAL.
        lv_resourceid = lo_updatefirewallruleentry->get_firewallrulegroupid( ).
        lv_resourceid = lo_updatefirewallruleentry->get_firewalldomainlistid( ).
        lv_resourceid = lo_updatefirewallruleentry->get_firewallthreatprotecti00( ).
        lv_priority = lo_updatefirewallruleentry->get_priority( ).
        lv_action = lo_updatefirewallruleentry->get_action( ).
        lv_blockresponse = lo_updatefirewallruleentry->get_blockresponse( ).
        lv_blockoverridedomain = lo_updatefirewallruleentry->get_blockoverridedomain( ).
        lv_blockoverridednstype = lo_updatefirewallruleentry->get_blockoverridednstype( ).
        lv_blockoverridettl = lo_updatefirewallruleentry->get_blockoverridettl( ).
        lv_name = lo_updatefirewallruleentry->get_name( ).
        lv_firewalldomainredirecti = lo_updatefirewallruleentry->get_firewalldomrediraction( ).
        lv_qtype = lo_updatefirewallruleentry->get_qtype( ).
        lv_dnsthreatprotection = lo_updatefirewallruleentry->get_dnsthreatprotection( ).
        lv_confidencethreshold = lo_updatefirewallruleentry->get_confidencethreshold( ).
        lo_firewallruletype = lo_updatefirewallruleentry->get_firewallruletype( ).
        IF lo_firewallruletype IS NOT INITIAL.
          lo_firewalladvancedcontent = lo_firewallruletype->get_fwalladvncdcontentcat( ).
          IF lo_firewalladvancedcontent IS NOT INITIAL.
            lv_firewalladvancedcontent_1 = lo_firewalladvancedcontent->get_category( ).
          ENDIF.
          lo_firewalladvancedthreatc = lo_firewallruletype->get_fwalladvncdthreatcat( ).
          IF lo_firewalladvancedthreatc IS NOT INITIAL.
            lv_firewalladvancedthreatc_1 = lo_firewalladvancedthreatc->get_category( ).
          ENDIF.
          lo_dnsthreatprotectionrule = lo_firewallruletype->get_dnsthreatprotection( ).
          IF lo_dnsthreatprotectionrule IS NOT INITIAL.
            lv_dnsthreatprotectionrule_1 = lo_dnsthreatprotectionrule->get_value( ).
            lv_confidencethreshold = lo_dnsthreatprotectionrule->get_confidencethreshold( ).
          ENDIF.
        ENDIF.
      ENDIF.
      lv_string = lo_row_3->get_code( ).
      lv_string = lo_row_3->get_message( ).
    ENDIF.
  ENDLOOP.
ENDIF.