
Fixes RST documents to include list mark up when appropriate. closes: https://github.com/vmware/pyvmomi/issues/76
4.0 KiB
vim.ComputeResource
Represents a set of physical compute resources for a set of virtual machines.The base type ComputeResource , when instantiated by calling AddStandaloneHost_Task , represents a single host. The subclass ClusterComputeResource represents a cluster of hosts and adds distributed management features such as availability and resource scheduling.A ComputeResource always has a root ResourcePool associated with it. Certain types of clusters such as those with VMware DRS enabled and standalone hosts (ESX Server 3) support the creation of ResourcePool hierarchies.
- extends
Attributes
- resourcePool (vim.ResourcePool):
- privilege: System.View
Reference to root resource pool.
- host ([vim.HostSystem]):
- privilege: System.View
List of hosts that are part of this compute resource. If the compute resource is a standalone type, then this list contains just one element.
- datastore ([vim.Datastore]):
- privilege: System.View
The datastore property is the subset of datastore objects in the datacenter available in this ComputeResource.This property is computed as the aggregate set of datastores available from all the hosts that are part of this compute resource.
- network ([vim.Network]):
- privilege: System.View
The subset of network objects available in the datacenter that is available in this ComputeResource.This property is computed as the aggregate set of networks available from all the hosts that are part of this compute resource.
- summary (vim.ComputeResource.Summary):
Basic runtime information about a compute resource. This information is used on summary screens and in list views.
- environmentBrowser (vim.EnvironmentBrowser):
- privilege: System.View
The environment browser object that identifies the environments that are supported on this compute resource.
- configurationEx (vim.ComputeResource.ConfigInfo):
Configuration of the compute resource; applies to both standalone hosts and clusters. For a cluster this property will return a ClusterConfigInfoEx object.
Methods
- ReconfigureComputeResource(spec, modify):
-
Change the compute resource configuration. since: VI API 2.5
- Privilege:
-
Host.Inventory.EditCluster
- Args:
-
- spec (vim.ComputeResource.ConfigSpec):
-
A set of configuration changes to apply to the compute resource. The specification can be a complete set of changes or a partial set of changes, applied incrementally. When invoking reconfigureEx on a cluster, this argument may be a ClusterConfigSpecEx object.
- modify (bool):
-
Flag to specify whether the specification ("spec") should be applied incrementally. If "modify" is false and the operation succeeds, then the configuration of the cluster matches the specification exactly; in this case any unset portions of the specification will result in unset or default portions of the configuration.
- Returns:
Raises:
- vim.fault.CannotDisableDrsOnClustersWithVApps:
-
If DRS is being disabled and the cluster contains one or more vApps.