public OvhRemoteAccess serviceName_remoteAccesses_POST ( String serviceName , String allowedIp , Date expirationDate , Long exposedPort , String publicKey ) throws IOException { String qPath = "/overTheBox/{serviceName}/remoteAccesses" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowedIp" , allowedIp ) ; addBody ( o , "expirationDate" , expirationDate ) ; addBody ( o , "exposedPort" , exposedPort ) ; addBody ( o , "publicKey" , publicKey ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhRemoteAccess . class ) ; }
Create a new remote access for the service