Class VcHostDatastoreSystem

Extends com.vmware.vmo.plugin.vi4.model.VimContentManagedObject
This managed object creates and removes datastores from the host.

To a host, a datastore is a storage abstraction that is backed by one of several types of storage volumes:

Local file system
A datastore that is backed by a local file system volume uses a host native local file system such as NTFS or ext3. The datastore is created by identifying a file path for a directory in which virtual machine data will be stored. When the datastore is deleted, the mapping from the datastore to the file is deleted. The contents of the directory are not deleted.

NAS Volume
A datastore that is backed by a network-attached storage device is created by specifying the required data needed to attach the volume to the host. Destroying the datastore detaches the volume from the host.

A datastore that is backed by a VMware File System (VMFS) is created by specifying a disk with unpartitioned space, the desired disk partition format on the disk, and some VMFS attributes.

An ESX Server system automatically discovers the VMFS volume on attached Logical Unit Numbers (LUNs) on startup and after re-scanning the host bus adapter. Datastores are automatically created. The datastore label is based on the VMFS volume label. If there is a conflict with an existing datastore, it is made unique by appending a suffix. The VMFS volume label will be unchanged.

Destroying the datastore removes the partitions that compose the VMFS volume.

Datastores are never automatically removed because transient storage connection outages may occur. They must be removed from the host using this interface.
See VcDatastore


Name Type Description
capabilities VcHostDatastoreSystemCapabilities Capability vector indicating the available product features.
datastore VcDatastore[] List of datastores on this host.
id String returns the id of this ManagedObject
reference VcManagedObjectReference returns the ManagedObjectReference of this ManagedObject
sdkConnection VcSdkConnection returns the parent SdkConnection
vimHost VcSdkConnection returns the parent SdkConnection (deprecated)
vimType String returns the type of this ManagedObject


Name Returns
configureDatastorePrincipal(String userName, String password) void
createLocalDatastore(String name, String path) VcDatastore
createNasDatastore(VcHostNasVolumeSpec spec) VcDatastore
createTrigger(Number timeout, String filter, String condition, String filterToSync) Trigger
createVmfsDatastore(VcVmfsDatastoreCreateSpec spec) VcDatastore
createVvolDatastore(VcHostDatastoreSystemVvolDatastoreSpec spec) VcDatastore
expandVmfsDatastore(VcDatastore datastore, VcVmfsDatastoreExpandSpec spec) VcDatastore
extendVmfsDatastore(VcDatastore datastore, VcVmfsDatastoreExtendSpec spec) VcDatastore
queryAvailableDisksForVmfs(VcDatastore datastore) VcHostScsiDisk[]
queryUnresolvedVmfsVolumes() VcHostUnresolvedVmfsVolume[]
queryVmfsDatastoreCreateOptions(String devicePath, Number vmfsMajorVersion) VcVmfsDatastoreOption[]
queryVmfsDatastoreExpandOptions(VcDatastore datastore) VcVmfsDatastoreOption[]
queryVmfsDatastoreExtendOptions(VcDatastore datastore, String devicePath, boolean suppressExpandCandidates) VcVmfsDatastoreOption[]
removeDatastore(VcDatastore datastore) void
removeDatastoreEx_Task(VcDatastore[] datastore) VcTask
resignatureUnresolvedVmfsVolume_Task(VcHostUnresolvedVmfsResignatureSpec resolutionSpec) VcTask
updateLocalSwapDatastore(VcDatastore datastore) void

Returned by


Referenced in