public OvhFirewallNetworkRule ip_firewall_ipOnFirewall_rule_POST ( String ip , String ipOnFirewall , OvhFirewallActionEnum action , Long destinationPort , OvhFirewallProtocolEnum protocol , OvhFirewallSequenceRangeEnum sequence , String source , Long sourcePort , OvhFirewallOptionTCP tcpOption ) throws IOException { String qPath = "/ip/{ip}/firewall/{ipOnFirewall}/rule" ; StringBuilder sb = path ( qPath , ip , ipOnFirewall ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ) ; addBody ( o , "destinationPort" , destinationPort ) ; addBody ( o , "protocol" , protocol ) ; addBody ( o , "sequence" , sequence ) ; addBody ( o , "source" , source ) ; addBody ( o , "sourcePort" , sourcePort ) ; addBody ( o , "tcpOption" , tcpOption ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhFirewallNetworkRule . class ) ; }
AntiDDOS option . Add new rule on your IP