public Task moveIntoFolder_Task(ManagedEntity[] entities) throws DuplicateName, InvalidState, InvalidFolder, RuntimeFault, RemoteException { if(entities==null) { throw new IllegalArgumentException("entities must not be null"); } return new Task( getServerConnection(), getVimService().moveIntoFolder_Task(getMOR(), MorUtil.createMORs(entities)) ); }
public Task addStandaloneHost_Task(HostConnectSpec spec, ComputeResourceConfigSpec compResSpec, boolean addConnected, String license) throws InvalidLogin, HostConnectFault, RuntimeFault, RemoteException { return new Task(getServerConnection(), getVimService().addStandaloneHost_Task(getMOR(), spec, compResSpec, addConnected, license)); }
/** * @since 4.0 */ public Task createDVS_Task(DVSCreateSpec spec) throws DvsNotAuthorized, DvsFault, DuplicateName, InvalidName, NotFound, RuntimeFault, RemoteException { ManagedObjectReference taskMor = getVimService().createDVS_Task(getMOR(), spec); return new Task(getServerConnection(), taskMor); }
public ClusterComputeResource createCluster(String name, ClusterConfigSpec spec) throws InvalidName, DuplicateName, RuntimeFault, RemoteException { return new ClusterComputeResource(getServerConnection(), getVimService().createCluster(getMOR(), name, spec) ); }
public Folder createFolder(String name) throws InvalidName, DuplicateName, RuntimeFault, RemoteException { return new Folder(getServerConnection(), getVimService().createFolder(getMOR(), name) ); }
public Datacenter createDatacenter(String name) throws InvalidName, DuplicateName, RuntimeFault, RemoteException { return new Datacenter(getServerConnection(), getVimService().createDatacenter(getMOR(), name) ); }
public Task unregisterAndDestroy_Task() throws InvalidState, ConcurrentAccess, RuntimeFault, RemoteException { return new Task( getServerConnection(), getVimService().unregisterAndDestroy_Task(getMOR()) ); } }
public ClusterComputeResource createClusterEx(String name, ClusterConfigSpecEx spec) throws InvalidName, DuplicateName, RuntimeFault, RemoteException { return new ClusterComputeResource(getServerConnection(), getVimService().createClusterEx(getMOR(), name, spec) ); }
/** * @since SDK5.0 */ public StoragePod createStoragePod(String name) throws DuplicateName, InvalidName, RuntimeFault, RemoteException { ManagedObjectReference mor = getVimService().createStoragePod(getMOR(), name); return new StoragePod(getServerConnection(), mor); }
public Task createVM_Task(VirtualMachineConfigSpec config, ResourcePool pool, HostSystem host) throws InvalidName, VmConfigFault, DuplicateName, FileFault, OutOfBounds, InsufficientResourcesFault, InvalidDatastore, RuntimeFault, RemoteException { return new Task(getServerConnection(), getVimService().createVM_Task(getMOR(), config, pool.getMOR(), host==null? null : host.getMOR()) ); }
public Task registerVM_Task(String path, String name, boolean asTemplate, ResourcePool pool, HostSystem host) throws VmConfigFault, InvalidName, DuplicateName, FileFault, OutOfBounds, InsufficientResourcesFault, InvalidDatastore, AlreadyExists, NotFound, RuntimeFault, RemoteException { return new Task( getServerConnection(), getVimService().registerVM_Task(getMOR(), path, name, asTemplate, pool==null? null : pool.getMOR(), host==null? null : host.getMOR()) ); }