public void mapVolumeToSDC(String volumeId,String sdcId) throws Exception {
  log.info("mapping to sdc");
  String uri=ScaleIOConstants.getMapVolumeToSDCURI(volumeId);
  ScaleIOMapVolumeToSDC mapParm=new ScaleIOMapVolumeToSDC();
  mapParm.setSdcId(sdcId);
  mapParm.setAllowMultipleMappings("TRUE");
  post(URI.create(uri),getJsonForEntity(mapParm));
}

public void mapVolumeToSDC ( String volumeId , String sdcId ) throws Exception { log . info ( "mapping to sdc" ) ; String uri = ScaleIOConstants . getMapVolumeToSDCURI ( volumeId ) ; ScaleIOMapVolumeToSDC mapParm = new ScaleIOMapVolumeToSDC ( ) ; mapParm . setSdcId ( sdcId ) ; mapParm . setAllowMultipleMappings ( "TRUE" ) ; post ( URI . create ( uri ) , getJsonForEntity ( mapParm ) ) ; }
map volume to sdc
