Cluster Compute Resource Move Host Into Task
Moves an existing host into a cluster.
The host must be part of the same datacenter, and if the host is part of a cluster, the host must be in maintenance mode.
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.
Required privileges: Host.Inventory.EditCluster
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case ClusterComputeResource/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
{
"host": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"resourcePool": {
"_typeName": "string",
"type": "string",
"value": "string"
}
}
Reference to an instance of the ResourcePool managed object.
This method returns a Task object with which to monitor the operation.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
NotSupportedHost: if the host is running a software version that does not support clustering.
TooManyHosts: if no additional hosts can be added to the cluster.
InvalidArgument: if the host is not a part of the same datacenter as the cluster or if the specified resource pool is not part of the cluster or if the source and destination clusters are the same.
InvalidState: if a host is already part of a cluster and is not in maintenance mode.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}