public OvhTask serviceName_whitelist_POST ( String serviceName , String ip , String name , Boolean service , Boolean sftp ) throws IOException { String qPath = "/hosting/privateDatabase/{serviceName}/whitelist" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "ip" , ip ) ; addBody ( o , "name" , name ) ; addBody ( o , "service" , service ) ; addBody ( o , "sftp" , sftp ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Create a new IP whitelist