Service - HostOrCluster

Class
VMware.Hv.HostOrCluster
See also
DatacenterId, HostOrClusterTreeNode
Since
Horizon View 6.0


Service Description

The HostOrCluster service.

Methods

Methods defined in this Service
HostOrCluster_GetHostOrClusterTree

HostOrCluster_GetHostOrClusterTree

Gets the HostOrClusterTree from VC for use in selecting the host or cluster for full or linked clone desktop creation. The returned root folder of the tree represents the top level datacenter which may contain hosts, clusters, or further nested containers.

The datacenter id may be obtained from the Desktop's BaseImageVm, BaseImageSnapshot, or VmTemplate.

Privileges

Privilege Description
GLOBAL_CONFIG_VIEW privilege is required to get the HostOrClusterTree root.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the HostOrCluster used to make the method call.
datacenterDatacenterId

datacenter id at the root of the tree

Return Value

Type Description
HostOrClusterTreeNodefolder tree root node representing the datacenter that stores the VM template

Faults

Type Description
EntityNotFoundThrown if any specified entity cannot be found.
InsufficientPermissionThrown if the user does not have sufficient permission to perform the operation.
InvalidArgumentThrown if any specified argument is invalid.
InvalidTypeThrown if the type of any specified argument is invalid.
UnexpectedFaultThrown if an unexpected error occurs while performing the operation.

Show WSDL type definition