/AWS1/IF_R5R=>BATCHDELETEFIREWALLRULE()¶
About BatchDeleteFirewallRule¶
Deletes multiple DNS Firewall rules from the specified rule group.
Method Signature¶
METHODS /AWS1/IF_R5R~BATCHDELETEFIREWALLRULE
IMPORTING
!IT_DELETEFIREWALLRULEENTRIES TYPE /AWS1/CL_R5RDELFWALLRULEENTRY=>TT_DELETEFIREWALLRULEENTRIES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5rbtcdelfwallrulersp
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_deletefirewallruleentries TYPE /AWS1/CL_R5RDELFWALLRULEENTRY=>TT_DELETEFIREWALLRULEENTRIES TT_DELETEFIREWALLRULEENTRIES¶
The list of firewall rules to delete.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5rbtcdelfwallrulersp /AWS1/CL_R5RBTCDELFWALLRULERSP¶
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_deletefirewallruleentries = VALUE /aws1/cl_r5rdelfwallruleentry=>tt_deletefirewallruleentries(
(
new /aws1/cl_r5rdelfwallruleentry(
iv_firewalldomainlistid = |string|
iv_firewallrulegroupid = |string|
iv_firewallthreatprotectio00 = |string|
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_deletedfirewallrules( ) 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_deleteerrors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lo_deletefirewallruleentry = lo_row_3->get_firewallrule( ).
IF lo_deletefirewallruleentry IS NOT INITIAL.
lv_resourceid = lo_deletefirewallruleentry->get_firewallrulegroupid( ).
lv_resourceid = lo_deletefirewallruleentry->get_firewalldomainlistid( ).
lv_resourceid = lo_deletefirewallruleentry->get_firewallthreatprotecti00( ).
lv_qtype = lo_deletefirewallruleentry->get_qtype( ).
ENDIF.
lv_string = lo_row_3->get_code( ).
lv_string = lo_row_3->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.