| Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
Name | Type | Description |
---|---|---|
None |
Methods
Privileges | Required on |
---|---|
System.Read | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
hosts | ManagedObjectReference[]
to a HostSystem[] |
|
Return Value
Type | Description |
---|---|
VsanHostVirtualApplianceInfo[] | dictionary of hosts' MO id and if the host is a virtual appliance |
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. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
Host.Inventory.AddHostToCluster | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
The target vSAN cluster to add/replace witness host;
|
witnessHost | ManagedObjectReference
to a HostSystem |
The witness host to be added into vSAN cluster.
This host must be connected and managed by the same
vCenter server, and cannot be a part of target
cluster;
|
preferredFd | xsd:string |
The name of preferred Fault Domain;
|
diskMapping* | VsanHostDiskMapping |
The diskMapping to be created on witness host. If
disk claim is configured as auto-mode on witness host,
this parameter is not required.
Since vSphere API 6.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidArgument | |
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
NotEnoughLicenses | |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
Host.Inventory.EditCluster | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to be converted; It is expected
to enable vSAN, but not a vSAN stretched
cluster;
|
faultDomainConfig | VimClusterVSANStretchedClusterFaultDomainConfig |
The mapping between Fault Domain and vSAN
hosts reside in target cluster, to decide
how to configure vSAN cluster into two
sites;
|
witnessHost | ManagedObjectReference
to a HostSystem |
The witness host to be added into vSAN cluster.
This host must be connected and managed by the same
vCenter server, and cannot be a part of target
cluster;
|
preferredFd | xsd:string |
The name of preferred Fault Domain;
|
diskMapping* | VsanHostDiskMapping |
The diskMapping to be created on witness host. If
disk claim is configured as auto-mode on witness host,
this parameter is not required.
Since vSphere API 6.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if below issues exist:
|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
System.Read | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
Target cluster to query.
|
Return Value
Type | Description |
---|---|
VimClusterVSANPreferredFaultDomainInfo | VSANPreferredFaultDomainInfo which contains preferred Fault Domain's user friendly name and UUID. If specified cluster is not vSAN stretched cluster, both fields will be unset. |
Faults
Type | Description |
---|---|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
System.Read | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to query;
|
Return Value
Type | Description |
---|---|
VimClusterVSANWitnessHostInfo[] | VSANWitnessHostInfo[] which contains witness host's UUID, ManagedEntity instance, preferred Fault Domain's user friendly name and UUID, IP address of unicast agent, and name of the Fault Domain that witness host resides in. If specified cluster in vSAN stretched cluster, all fields above will be set to actual setting, otherwise all fields will be unset. |
Faults
Type | Description |
---|---|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
System.Read | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
host | ManagedObjectReference
to a HostSystem |
The target host to check.
|
Return Value
Type | Description |
---|---|
xsd:boolean | true is host is a witness host, false is host is not a witness host. |
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. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
Host.Inventory.RemoveHostFromCluster | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to disable;
|
witnessHost* | ManagedObjectReference
to a HostSystem |
Witness host to remove;
Since vSphere API 6.0 |
witnessAddress* | xsd:string |
The IP address of witness host used as unicast agent.
Since vSphere API 6.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if below issues exist:
|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
System.Read | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to query;
|
verifyAllConnected* | xsd:boolean |
Whether to ignore disconnected hosts. If it is set
to true, vim.fault.InvalidState will be met if any
host in target cluster is disconnected; if it is set
to false, disconnected hosts will be ignored. Default
value is false. But a cluster with disconnected hosts
cannot be converted to vSAN stretched cluster;
Since vSphere API 6.0 |
Return Value
Type | Description |
---|---|
VimClusterVSANStretchedClusterCapability[] | List of VSANStretchedClusterCapability, to present whether each host can support vSAN stretched cluster. |
Faults
Type | Description |
---|---|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server and verifyAllConnected is set to true; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Privileges | Required on |
---|---|
Host.Inventory.EditCluster | ClusterComputeResource |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster | ManagedObjectReference
to a ClusterComputeResource |
Target vSAN stretched cluster;
|
preferredFd | xsd:string |
The user friendly name of preferred Fault Domain;
|
witnessHost* | ManagedObjectReference
to a HostSystem |
The witness host to apply preferred Fault Domain setting;
if it is not specified, will take the in-use witness
host configured at cluster side.
Since vSphere API 6.0 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidState | Thrown if any host in target cluster is not connected to vCenter server; |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VsanFault | Thrown if any unexpected runtime fault is met. |
Events
Type | |
---|---|
None |
Top of page | Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |