|
| Local Properties | Local Methods | |
| Managed Object Types | Data Object Types | All Properties | All Methods |
Use the Folder.CreateClusterEx method to create an instance of this object.
Properties
| Name | Type | Description |
|---|---|---|
| actionHistory* | ClusterActionHistory[] |
The set of actions that have been performed recently.
Since VI API 2.5 |
| configuration | ClusterConfigInfo |
Deprecated.
As of VI API 2.5, use ConfigurationEx,
which is a ClusterConfigInfoEx data object..
Configuration of the cluster.
|
| drsFault* P | ClusterDrsFaults[] |
A collection of the DRS faults generated in the last DRS invocation.
Each element of the collection is the set of faults generated in one
recommendation.
DRS faults are generated when DRS tries to make recommendations
for rule enforcement, power management, etc., and indexed in a tree
structure with reason for recommendations and VM to migrate (optional)
as the index keys.
In releases after vSphere API 5.0, vSphere Servers might not
generate property collector update notifications for this property.
To obtain the latest value of the property, you can use
PropertyCollector methods RetrievePropertiesEx or WaitForUpdatesEx.
If you use the PropertyCollector.WaitForUpdatesEx method, specify
an empty string for the version parameter. Any other version value will not
produce any property values as no updates are generated.
Since vSphere API 4.0 |
| drsRecommendation* | ClusterDrsRecommendation[] |
Deprecated.
As of VI API 2.5, use
Recommendation.
vSphere 6.5 is the last version where this property is populated.
Later versions of vSphere no longer populate this property.
deprecated As of VI API 2.5, use
Recommendation.
vSphere 6.5 is the last version where this property is populated.
Later versions of vSphere no longer populate this property.
|
| hciConfig* | ClusterComputeResourceHCIConfigInfo |
This is applicable to clusters which are configured using the HCI
workflow and contains data related to the workflow and specification.
Since vSphere API 6.7.1 |
| migrationHistory* | ClusterDrsMigration[] |
The set of migration decisions that have recently been performed.
This list is populated only when DRS is in automatic mode.
|
| recommendation* P | ClusterRecommendation[] |
List of recommended actions for the cluster. It is
possible that the current set of recommendations may be empty,
either due to not having any running dynamic recommendation
generation module, or since there may be no recommended actions
at this time.
Since VI API 2.5 |
| summaryEx | ClusterComputeResourceSummary |
Deprecated.
Do not use this property.
The cluster summary. The same information could be obtained via
Summary
deprecated Do not use this property.
The cluster summary. The same information could be obtained via
Summary
Since vSphere API 7.0.1.1 |
| Properties inherited from ComputeResource | ||
| configManagerEnabled, configurationEx, datastore, environmentBrowser, host, lifecycleManaged, network, resourcePool, summary | ||
| Properties inherited from ManagedEntity | ||
| alarmActionsEnabled, configIssue, configStatus, customValue, declaredAlarmState, disabledMethod, effectiveRole, name, overallStatus, parent, permission, recentTask, tag, triggeredAlarmState | ||
| Properties inherited from ExtensibleManagedObject | ||
| availableField, value | ||
Methods
| Methods defined in this Managed Object |
|---|
| AbandonHciWorkflow, AddHost_Task, ApplyRecommendation, CancelRecommendation, ClusterEnterMaintenanceMode, ConfigureHCI_Task, EvcManager, ExtendHCI_Task, FindRulesForVm, GetResourceUsage, GetSystemVMsRestrictedDatastores, MoveHostInto_Task, MoveInto_Task, PlaceVm, RecommendHostsForVm, ReconfigureCluster_Task, RefreshRecommendation, RetrieveDasAdvancedRuntimeInfo, SetCryptoMode, StampAllRulesWithUuid_Task, ValidateHCIConfiguration |
| Methods inherited from ComputeResource |
| ReconfigureComputeResource_Task |
| Methods inherited from ManagedEntity |
| Destroy_Task, Reload, Rename_Task |
| Methods inherited from ExtensibleManagedObject |
| setCustomValue |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| InvalidState | |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
If the cluster does not support nested resource pools, then the stand-alone host resource hierarchy is discarded and all virtual machines on the host are put under the cluster's root resource pool.
In addition to the Host.Inventory.AddHostToCluster and Resource.AssignVMToPool privileges, it requires System.View privilege on the VM folder that the VMs of the host will be placed on.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| spec P | HostConnectSpec |
Specifies the parameters needed to add a single host.
Since 2.0 |
| asConnected P | xsd:boolean |
Flag to specify whether or not the host should be connected
immediately after it is added. The host will not be added if
a connection attempt is made and fails.
Since 2.0 |
| resourcePool* P | ManagedObjectReference
to a ResourcePool |
the resource pool for the root resource pool from the host.
Since 2.0 |
| license* P | xsd:string |
Provide a licenseKey or licenseKeyType. See LicenseManager
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. The result property in the Task contains the newly added HostSystem upon success. |
Faults
| Type | Description |
|---|---|
| AgentInstallFailed | Thrown if there is an error installing the VirtualCenter agent on the host. |
| AlreadyBeingManaged | Thrown if the host is already being managed by a VirtualCenter server. |
| AlreadyConnected | Thrown if asConnected is true and the host is already connected to VirtualCenter. |
| DuplicateName | Thrown if another host in the same cluster has the name. |
| HostConnectFault | Thrown if an error occurred when connecting to a host. Typically, a more specific subclass, such as AlreadyBeingManaged, is thrown. |
| InvalidLogin | Thrown if "asConnected" is specified but authentication with the new host fails. |
| NoHost | Thrown if the host cannot be contacted. |
| NotSupportedHost | Thrown if the host is running a software version that does not support clustering features. It may still be possible to add the host as a stand-alone host. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SSLVerifyFault | Thrown if the host certificate could not be authenticated |
| TooManyHosts | Thrown if no additional hosts can be added to the cluster. |
Events
| Type | |
|---|---|
| None | |
resource.applyRecommendation privilege is required if the recommendation is DRS migration or power management recommendations.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| key P | xsd:string |
The key field of the DrsRecommendation or Recommendation.
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| key P | xsd:string |
The key field of the Recommendation.
Since vSphere API 4.1 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| host P | ManagedObjectReference[]
to a HostSystem[] |
The array of hosts to put into maintenance mode.
Since vSphere API 5.0 |
| option* P | OptionValue[] |
An array of OptionValue
options for this query. The specified options override the
advanced options in ClusterDrsConfigInfo.
Since vSphere API 5.0 |
Return Value
| Type | Description |
|---|---|
| ClusterEnterMaintenanceResult | A ClusterEnterMaintenanceResult object, which consists of an array of recommendations for hosts that can be evacuated and an array of faults for hosts that cannot be evacuated. |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| clusterSpec P | ClusterComputeResourceHCIConfigSpec |
Specification to configure the cluster,
see ClusterComputeResourceHCIConfigSpec
for details. The DistributedVirtualSwitch and
DistributedVirtualPortgroup objects contained
within the specification must be in the same datacenter as the
cluster. Specify HCIConfigSpec#vSanConfigSpec only when
vSan is enabled on the cluster.
Since vSphere API 6.7.1 |
| hostInputs* P | ClusterComputeResourceHostConfigurationInput[] |
Inputs to configure each host in the cluster,
see ClusterComputeResourceHostConfigurationInput
for details. Hosts in this list should be part of the cluster and
should be in maintenance mode for them to be configured per
specification. If this parameter is not specified, the API
operates on all the hosts in the cluster. Hosts which were not
configured due to not being in maintenance
mode will be returned in ClusterConfigResult#failedHosts.
Since vSphere API 6.7.1 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. The result property in the Task contains a ClusterConfigResult object, which upon completion will contain a list of hosts which were successfully configured and a list of hosts which could not be configured. |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a ClusterEVCManager |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| hostInputs* P | ClusterComputeResourceHostConfigurationInput[] |
Inputs to configure specified set of hosts in the
cluster. See
ClusterComputeResourceHostConfigurationInput
for details. Hosts in this list should be part of the cluster and
should be in maintenance mode for them to be configured per
specification. Hosts which were not configured due to not
being in maintenance mode will be returned in
ClusterConfigResult#failedHosts. Specify
HostConfigurationInput#hostVmkNics only if dvsSetting
is set.
Since vSphere API 6.7.1 |
| vSanConfigSpec* P | SDDCBase |
Specification to configure vSAN on specified set of
hosts. See vim.vsan.ReconfigSpec for details. This parameter
should be specified only when vSan is enabled on the cluster.
Since vSphere API 6.7.1 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. The result property in the Task contains a ClusterConfigResult object, which upon successful completion would contain the list of hosts which couldn't be configured and a list of hosts which were successfully configured. This API can be called only after the cluster is configured using ConfigureHCI_Task and requires HCIConfigInfo#workflowState to be "done". |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| vm P | ManagedObjectReference
to a VirtualMachine |
The vm whose rules need to be looked up.
Since vSphere API 6.0 |
Return Value
| Type | Description |
|---|---|
| ClusterRuleInfo[] |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ClusterResourceUsageSummary | An instance of ResourceUsageSummary with following information:
|
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference[]
to a Datastore[] | A list of restricted datastores. |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
If the host is a stand-alone host, the stand-alone ComputeResource is removed as part of this operation.
All virtual machines associated with the host, regardless of whether or not they are running, are moved with the host into the cluster. If there are virtual machines that should not be moved, then migrate those virtual machines off the host before initiating this operation.
If the host is a stand-alone host, the cluster supports nested resource pools, and the user specifies the optional resourcePool argument, then the stand-alone host's root resource pool becomes the specified resource pool and the stand-alone host resource hierarchy is imported into the new nested resource pool. If the cluster does not support nested resource pools or the resourcePool argument is not specified, then the stand-alone host resource hierarchy is ignored.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| host P | ManagedObjectReference
to a HostSystem |
The list of hosts to move into the cluster.
Since 2.0 |
| resourcePool* P | ManagedObjectReference
to a ResourcePool |
The resource pool to match the root resource pool of
stand-alone hosts. This argument has no effect if the host is part of a
cluster.
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| InvalidState | Thrown if a host is already part of a cluster and is not in maintenance mode. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| TooManyHosts | Thrown if no additional hosts can be added to the cluster. |
Events
| Type | |
|---|---|
| None | |
If the host is part of a stand-alone ComputeResource, then the stand-alone ComputeResource is removed as part of this operation.
All virtual machines associated with a host, regardless of whether or not they are running, are moved with the host into the cluster. If there are virtual machines that should not be moved, then migrate those virtual machines off the host before initiating this operation.
For stand-alone hosts, the host resource pool hierarchy is discarded in this call. To preserve a host resource pools from a stand-alone host, call moveHostInt, specifying an optional resource pool. This operation is transactional only with respect to each individual host. Hosts in the set are moved sequentially and are committed, one at a time. If a failure is detected, then the method terminates with an exception. Since hosts are moved one at a time, if this operation fails while in the process of moving multiple hosts, some hosts are left unmoved.
In addition to the privileges mentioned, the user must also hold Host.Inventory.EditCluster on the host's source ComputeResource object.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| host P | ManagedObjectReference[]
to a HostSystem[] |
The list of hosts to move into the cluster.
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| DuplicateName | Thrown if the host is already in the cluster |
| InvalidState | Thrown if a host is already part of a cluster and is not in maintenance mode. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| TooManyHosts | Thrown if no additional hosts can be added to the cluster. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| placementSpec P | PlacementSpec |
Specification for placing a virtual machine
and its virtual disks
Since vSphere API 6.0 |
Return Value
| Type | Description |
|---|---|
| PlacementResult |
Faults
| Type | Description |
|---|---|
| InvalidState | Thrown if invoked on a DRS disabled cluster. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Gets a recommendation for where to power on, resume, revert from powered-off state to powered on state, or to migrate a specific virtual machine. If no host is found, an empty list is returned.
The type of operation is implied by the state of the virtual machine. Returned hosts are intended for power-on or resume if the virtual machine is powered-off or suspended. However, if the virtual machine is powered-on, the request is assumed to be for migrating a virtual machine into a DRS enabled cluster. In that case, the ResourcePool argument should be specified and the ResourcePool and the virtual machine cannot be in the same cluster.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| vm P | ManagedObjectReference
to a VirtualMachine |
Specifies the virtual machine for which the user is requesting a
recommendations.
Since 2.0 |
| pool* P | ManagedObjectReference
to a ResourcePool |
Specifies the ResourcePool into which the virtual machine is to be
migrated. If the virtual machine is powered-on, this argument must be
specified and it is relevant only when the virtual machine is
powered-on. This ResourcePool cannot be in the same cluster as the
virtual machine.
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| ClusterHostRecommendation[] | An array of HostRecommendation ordered by their rating. |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| spec P | ClusterConfigSpec |
A set of configuration changes to apply to the cluster. The
specification can be a complete set of changes or a partial set of
changes, applied incrementally.
Since 2.0 |
| modify P | xsd:boolean |
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.
Since 2.0 |
Return Value
| Type | Description |
|---|---|
| pbm.Task | This method returns a Task object with which to monitor the operation. |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
The recommendations generated is stored at Recommendation.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ClusterDasAdvancedRuntimeInfo |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| cryptoMode P | xsd:string |
The new proposed encryption mode. It can be
null, "onDemand", or "forceEnable".
Since vSphere API 7.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| InvalidArgument | Thrown if cryptoMode is anything other than null, "onDemand", or "forceEnable". |
| InvalidRequest | Thrown if feature state swith VMcrypt3_Enhancement is not enabled. |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
Return Value
| Type | Description |
|---|---|
| pbm.Task |
Faults
| Type | Description |
|---|---|
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the ClusterComputeResource used to make the method call. |
| hciConfigSpec* P | ClusterComputeResourceHCIConfigSpec |
The ClusterComputeResourceHCIConfigSpec
to be used for validating the hosts. If not specified, the
existing ClusterComputeResourceHCIConfigInfo of the
cluster will be used. Note:- This param must be omitted for post-configure validation. Since vSphere API 6.7.1 |
| hosts* P | ManagedObjectReference[]
to a HostSystem[] |
The set of hosts to be validated. If not specified, the set
of existing hosts in the cluster will be used. Note:- This param must be omitted for post-configure validation. Since vSphere API 6.7.1 |
Return Value
| Type | Description |
|---|---|
| ClusterComputeResourceValidationResultBase[] | A list of configuration errors. A non-empty list indicates validation has failed. |
Faults
| Type | Description |
|---|---|
| InvalidState | |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
| Top of page | Local Properties | Local Methods | |
| Managed Object Types | Data Object Types | All Properties | All Methods |