public ScPhysicalServer createServer(String ssn,String hostName,boolean isIscsi,String osId) throws StorageCenterAPIException {
  Parameters params=new Parameters();
  params.add("Name",hostName);
  params.add("StorageCenter",ssn);
  params.add("Notes",NOTES_STRING);
  params.add("OperatingSystem",osId);
  RestResult rr=restClient.post("StorageCenter/ScPhysicalServer",params.toJson());
  if (!checkResults(rr)) {
    String error=String.format("Error creating server '%s': %s",hostName,rr.getErrorMsg());
    throw new StorageCenterAPIException(error);
  }
  return gson.fromJson(rr.getResult(),ScPhysicalServer.class);
}

public ScPhysicalServer createServer ( String ssn , String hostName , boolean isIscsi , String osId ) throws StorageCenterAPIException { Parameters params = new Parameters ( ) ; params . add ( "Name" , hostName ) ; params . add ( "StorageCenter" , ssn ) ; params . add ( "Notes" , NOTES_STRING ) ; params . add ( "OperatingSystem" , osId ) ; RestResult rr = restClient . post ( "StorageCenter/ScPhysicalServer" , params . toJson ( ) ) ; if ( ! checkResults ( rr ) ) { String error = String . format ( "Error creating server '%s': %s" , hostName , rr . getErrorMsg ( ) ) ; throw new StorageCenterAPIException ( error ) ; } return gson . fromJson ( rr . getResult ( ) , ScPhysicalServer . class ) ; }
create a new server definition .
