public OvhGameMitigationRule ip_game_ipOnGame_rule_POST ( String ip , String ipOnGame , OvhRange < Long > ports , OvhGameMitigationRuleProtocolEnum protocol ) throws IOException { String qPath = "/ip/{ip}/game/{ipOnGame}/rule" ; StringBuilder sb = path ( qPath , ip , ipOnGame ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "ports" , ports ) ; addBody ( o , "protocol" , protocol ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhGameMitigationRule . class ) ; }
Add new rule on your IP