public OvhVpn serviceName_vpn_POST ( String serviceName , String clientIp , String clientPrivNet , String psk , String serverPrivNet ) throws IOException { String qPath = "/router/{serviceName}/vpn" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "clientIp" , clientIp ) ; addBody ( o , "clientPrivNet" , clientPrivNet ) ; addBody ( o , "psk" , psk ) ; addBody ( o , "serverPrivNet" , serverPrivNet ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhVpn . class ) ; }
Add a VPN to your router