public OvhPortMapping serviceName_modem_portMappings_POST ( String serviceName , String allowedRemoteIp , String description , Long externalPortEnd , Long externalPortStart , String internalClient , Long internalPort , String name , OvhProtocolTypeEnum protocol ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/portMappings" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowedRemoteIp" , allowedRemoteIp ) ; addBody ( o , "description" , description ) ; addBody ( o , "externalPortEnd" , externalPortEnd ) ; addBody ( o , "externalPortStart" , externalPortStart ) ; addBody ( o , "internalClient" , internalClient ) ; addBody ( o , "internalPort" , internalPort ) ; addBody ( o , "name" , name ) ; addBody ( o , "protocol" , protocol ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhPortMapping . class ) ; }
Add a port mapping