Service - Datastore

Class
VMware.Hv.Datastore
See also
DatastoreClusterInfo, DatastoreInfo, DatastoreRequirementSpec, DatastoreSpaceRequirement, DatastoreSpec, HostOrClusterId
Since
Horizon View 6.0


Service Description

The object for fetching Datastores from VirtualCenter.

Methods

Methods defined in this Service
Datastore_GetDatastoreRequirements, Datastore_ListDatastoreClustersByHostOrCluster, Datastore_ListDatastoresByDesktopOrFarm, Datastore_ListDatastoresByHostOrCluster

Datastore_GetDatastoreRequirements

DatastoreSpaceRequirement can be in following combinations. Datastore type returned will be:

Privileges

Privilege Description
VC_CONFIG_VIEW privilege is required for computing the space requirements.
POOL_VIEW privilege is required for accessing Desktop or Farm mentioned via desktopId or farmId.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Datastore used to make the method call.
specDatastoreRequirementSpec

DatastoreRequirementSpec

Return Value

Type Description
DatastoreSpaceRequirement[]Array of DatastoreSpaceRequirement

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



Datastore_ListDatastoreClustersByHostOrCluster

Gets a list of datastore clusters from VC for the given host or cluster that may be suitable for use in full clone desktop creation. Requires at least one of the listed privileges.

Privileges

Privilege Description
GLOBAL_CONFIG_VIEW privilege is required to get the list of DatastoreClusterInfo.
VC_CONFIG_VIEW privilege is required to get the list of DatastoreClusterInfo.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Datastore used to make the method call.
hostOrClusterHostOrClusterId

host or cluster to list datastore clusters for

Return Value

Type Description
DatastoreClusterInfo[]Array of DatastoreClusterInfo

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



Datastore_ListDatastoresByDesktopOrFarm

Gets a list of datastores from VC for the given host or cluster that may be suitable for use during desktop/farm updates. Skips the VMs calculation for the following cases: Requires at least one of the listed privileges.

Privileges

Privilege Description
GLOBAL_CONFIG_VIEW privilege is required to get the list of DatastoreInfo.
VC_CONFIG_VIEW privilege is required to get the list of DatastoreInfo.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Datastore used to make the method call.
specDatastoreSpec



Return Value

Type Description
DatastoreInfo[]Array of DatastoreInfo

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



Datastore_ListDatastoresByHostOrCluster

Gets a list of datastores from VC for the given host or cluster that may be suitable for use in full or linked clone desktop creation. Requires at least one of the listed privileges.

Privileges

Privilege Description
GLOBAL_CONFIG_VIEW privilege is required to get the list of DatastoreInfo.
VC_CONFIG_VIEW privilege is required to get the list of DatastoreClusterInfo.

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the Datastore used to make the method call.
hostOrClusterHostOrClusterId

host or cluster to list datastores for

Return Value

Type Description
DatastoreInfo[]Array of DatastoreInfo

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