public OvhTask serviceName_node_hostname_role_POST ( String serviceName , String hostname , OvhRoleTypeEnum type ) throws IOException { String qPath = "/cluster/hadoop/{serviceName}/node/{hostname}/role" ; StringBuilder sb = path ( qPath , serviceName , hostname ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "type" , type ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Add the Role to the Node