public OvhRouteHttp serviceName_http_route_POST ( String serviceName , OvhRouteHttpAction action , String displayName , Long frontendId , Long weight ) throws IOException { String qPath = "/ipLoadbalancing/{serviceName}/http/route" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ) ; addBody ( o , "displayName" , displayName ) ; addBody ( o , "frontendId" , frontendId ) ; addBody ( o , "weight" , weight ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhRouteHttp . class ) ; }
Add a new HTTP route to your frontend