| Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
Name | Type | Description |
---|---|---|
None |
Methods
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
witnessHost P | ManagedObjectReference
to a HostSystem |
Witness host managed entity.
Since vSAN API vSAN 7.0U1 |
skipComponentsCount* P | xsd:boolean |
Skip setting in the result the number of
components for each cluster on the given
witness host. This can fail if the host is
disconnected, set to true to avoid failure
and retrieve other information in the result.
Since vSAN API vSAN 7.0U1 |
Return Value
Type | Description |
---|---|
ClusterRuntimeInfo[] | List of ClusterRuntimeInfo to present each cluster's information. |
Faults
Type | Description |
---|---|
NotSupported | Thrown if this API is not supported on current platform. |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
sharedWitnessHost P | ManagedObjectReference
to a HostSystem |
A host entity which would be used as a shared
witness host.
Since vSAN API vSAN 7.0U1 |
roboClusters P | ManagedObjectReference[]
to a ClusterComputeResource[] |
A list of ROBO clusters which would use
sharedWitnessHost as their witness.
Since vSAN API vSAN 7.0U1 |
Return Value
Type | Description |
---|---|
VSANSharedWitnessCompatibilityResult | SharedWitnessCompatibilityResult to present compatibility check result of given shared witness host and robo cluster list. |
Faults
Type | Description |
---|---|
NotSupported | Thrown if this API is not supported on current platform. |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
hosts P | ManagedObjectReference[]
to a HostSystem[] |
Since vSphere API 6.5 |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target vSAN cluster to add/replace witness host;
Since vSphere API 6.0 |
witnessHost P | 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;
Since vSphere API 6.0 |
preferredFd P | xsd:string |
The name of preferred Fault Domain;
Since vSphere API 6.0 |
diskMapping* P | 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 |
metadataMode* P | xsd:boolean |
True to indicate the host runs as metadata host instead
of normal witness host. This is currently reserved by
VMware internally to represent a different cluster type
other than stretched cluster. Leave this unset for
vSAN stretched cluster.
Since vSphere API 6.0 |
storagePoolSpec* P | VsanAddStoragePoolDiskSpec |
The specification to add disks to vSAN storage pool.
This parameter cannot be set together with diskMapping
param.
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 |
Relative to API vim.cluster.VsanVcStretchedClusterSystem#VSANVcConvertToStretchedCluster , it takes care of witness host reconfiguration, and the stretched cluster system in each cluster may be configured:
Clusters that are already working in stretched mode are not supported. If the configuration of one or more clusters fails, the remaining successful operations will not be rolled back because this is a batch operation for multiple clusters.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
configSpec P | VsanVcStretchedClusterConfigSpec |
The mapping between target witness host config and target
clusters's config(configSpec.clusters), to decide how to
configure target clusters to work in stretched mode.
Since vSAN API vSAN 7.0U1 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidArgument | |
NotEnoughLicenses | |
NotSupported | Thrown if this API is not supported on current platform. |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to be converted; It is expected
to enable vSAN, but not a vSAN stretched
cluster;
Since vSphere API 6.0 |
faultDomainConfig P | VimClusterVSANStretchedClusterFaultDomainConfig |
The mapping between Fault Domain and vSAN
hosts reside in target cluster, to decide
how to configure vSAN cluster into two
sites;
Since vSphere API 6.0 |
witnessHost P | 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;
Since vSphere API 6.0 |
preferredFd P | xsd:string |
The name of preferred Fault Domain;
Since vSphere API 6.0 |
diskMapping* P | 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 |
storagePoolSpec* P | VsanAddStoragePoolDiskSpec |
The specification to add disks to vSAN storage pool.
This parameter cannot be set together with diskMapping
param.
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
Target cluster to query.
Since vSphere API 6.0 |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to query;
Since vSphere API 6.0 |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
host P | ManagedObjectReference
to a HostSystem |
The target host to check.
Since vSphere API 6.0 |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to disable;
Since vSphere API 6.0 |
witnessHost* P | ManagedObjectReference
to a HostSystem |
Witness host to remove;
Since vSphere API 6.0 |
witnessAddress* P | 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 |
In other word, It is used to configure multiple robo clusters for a given witness host.
Each cluster in config is expected to be used in following scenario: Replace original witness host with a new one, and then the old witness host will no longer serve the target cluster. In this scenario, the preferredFdName and faultDomainConfig are optional parameters. If there is no specified preferredFdName/faultDomainConfig, target cluster will use the previous configuration to configure itself.
Relative to API vim.cluster.VsanVcStretchedClusterSystem#VSANVcAddWitnessHost, it takes care of witness host reconfiguration, and the stretched cluster system in each cluster may be reconfigured. Clusters that are working in normal mode(no-stretched) are not supported.If the configuration of one or more clusters fails, the remaining successful operations will not be rolled back because this is a batch operation for multiple clusters.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
configSpec P | VsanVcStretchedClusterConfigSpec |
The mapping between target witness host config and
target clusters's config(configSpec.clusters), to decide
how to reconfigure target stretched clusters with new
witness host.
Since vSAN API vSAN 7.0U1 |
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task | vim.Task |
Faults
Type | Description |
---|---|
InvalidArgument | |
NotEnoughLicenses | |
NotSupported | Thrown if this API is not supported on current platform. |
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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
The target cluster to query;
Since vSphere API 6.0 |
verifyAllConnected* P | 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 |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the VimClusterVsanVcStretchedClusterSystem used to make the method call. |
cluster P | ManagedObjectReference
to a ClusterComputeResource |
Target vSAN stretched cluster;
Since vSphere API 6.0 |
preferredFd P | xsd:string |
The user friendly name of preferred Fault Domain;
Since vSphere API 6.0 |
witnessHost* P | 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 |