/AWS1/IF_R5R=>BATCHCREATEFIREWALLRULE()¶
About BatchCreateFirewallRule¶
Creates multiple DNS Firewall rules in the specified rule group.
Method Signature¶
METHODS /AWS1/IF_R5R~BATCHCREATEFIREWALLRULE
IMPORTING
!IT_CREATEFIREWALLRULEENTRIES TYPE /AWS1/CL_R5RCREFWALLRULEENTRY=>TT_CREATEFIREWALLRULEENTRIES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5rbtccrefwallrulersp
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_createfirewallruleentries TYPE /AWS1/CL_R5RCREFWALLRULEENTRY=>TT_CREATEFIREWALLRULEENTRIES TT_CREATEFIREWALLRULEENTRIES¶
The list of firewall rules to create.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5rbtccrefwallrulersp /AWS1/CL_R5RBTCCREFWALLRULERSP¶
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->batchcreatefirewallrule(
it_createfirewallruleentries = VALUE /aws1/cl_r5rcrefwallruleentry=>tt_createfirewallruleentries(
(
new /aws1/cl_r5rcrefwallruleentry(
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_creatorrequestid = |string|
iv_dnsthreatprotection = |string|
iv_firewalldomainlistid = |string|
iv_firewalldomainrediraction = |string|
iv_firewallrulegroupid = |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_createdfirewallrules( ) 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_createerrors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lo_createfirewallruleentry = lo_row_3->get_firewallrule( ).
IF lo_createfirewallruleentry IS NOT INITIAL.
lv_creatorrequestid = lo_createfirewallruleentry->get_creatorrequestid( ).
lv_resourceid = lo_createfirewallruleentry->get_firewallrulegroupid( ).
lv_resourceid = lo_createfirewallruleentry->get_firewalldomainlistid( ).
lv_priority = lo_createfirewallruleentry->get_priority( ).
lv_action = lo_createfirewallruleentry->get_action( ).
lv_blockresponse = lo_createfirewallruleentry->get_blockresponse( ).
lv_blockoverridedomain = lo_createfirewallruleentry->get_blockoverridedomain( ).
lv_blockoverridednstype = lo_createfirewallruleentry->get_blockoverridednstype( ).
lv_blockoverridettl = lo_createfirewallruleentry->get_blockoverridettl( ).
lv_name = lo_createfirewallruleentry->get_name( ).
lv_firewalldomainredirecti = lo_createfirewallruleentry->get_firewalldomrediraction( ).
lv_qtype = lo_createfirewallruleentry->get_qtype( ).
lv_dnsthreatprotection = lo_createfirewallruleentry->get_dnsthreatprotection( ).
lv_confidencethreshold = lo_createfirewallruleentry->get_confidencethreshold( ).
lo_firewallruletype = lo_createfirewallruleentry->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.