public ScReplay createReplay(String instanceId,int expireTime) throws StorageCenterAPIException {
  Parameters params=new Parameters();
  params.add("description",NOTES_STRING);
  params.add("expireTime",expireTime);
  RestResult rr=restClient.post(String.format("StorageCenter/ScVolume/%s/CreateReplay",instanceId),params.toJson());
  if (!checkResults(rr)) {
    String msg=String.format("Error creating replay %s: %s",instanceId,rr.getErrorMsg());
    LOG.warn(msg);
    throw new StorageCenterAPIException(msg);
  }
  return gson.fromJson(rr.getResult(),ScReplay.class);
}

public ScReplay createReplay ( String instanceId , int expireTime ) throws StorageCenterAPIException { Parameters params = new Parameters ( ) ; params . add ( "description" , NOTES_STRING ) ; params . add ( "expireTime" , expireTime ) ; RestResult rr = restClient . post ( String . format ( "StorageCenter/ScVolume/%s/CreateReplay" , instanceId ) , params . toJson ( ) ) ; if ( ! checkResults ( rr ) ) { String msg = String . format ( "Error creating replay %s: %s" , instanceId , rr . getErrorMsg ( ) ) ; LOG . warn ( msg ) ; throw new StorageCenterAPIException ( msg ) ; } return gson . fromJson ( rr . getResult ( ) , ScReplay . class ) ; }
creates a replay on a volume .
