public ScCopyMirrorMigrate createMirror(String ssn,String srcId,String dstId) throws StorageCenterAPIException {
  Parameters params=new Parameters();
  params.add("StorageCenter",ssn);
  params.add("SourceVolume",srcId);
  params.add("DestinationVolume",dstId);
  params.add("CopyReplays",false);
  RestResult rr=restClient.post("StorageCenter/ScCopyMirrorMigrate/Mirror",params.toJson());
  if (!checkResults(rr)) {
    String msg=String.format("Error creating mirror from %s to %s: %s",srcId,dstId,rr.getErrorMsg());
    LOG.warn(msg);
    throw new StorageCenterAPIException(msg);
  }
  return gson.fromJson(rr.getResult(),ScCopyMirrorMigrate.class);
}

public ScCopyMirrorMigrate createMirror ( String ssn , String srcId , String dstId ) throws StorageCenterAPIException { Parameters params = new Parameters ( ) ; params . add ( "StorageCenter" , ssn ) ; params . add ( "SourceVolume" , srcId ) ; params . add ( "DestinationVolume" , dstId ) ; params . add ( "CopyReplays" , false ) ; RestResult rr = restClient . post ( "StorageCenter/ScCopyMirrorMigrate/Mirror" , params . toJson ( ) ) ; if ( ! checkResults ( rr ) ) { String msg = String . format ( "Error creating mirror from %s to %s: %s" , srcId , dstId , rr . getErrorMsg ( ) ) ; LOG . warn ( msg ) ; throw new StorageCenterAPIException ( msg ) ; } return gson . fromJson ( rr . getResult ( ) , ScCopyMirrorMigrate . class ) ; }
create a mirror from one volume to another .
