Get VMware Datastore Information

This Automation Manager object retrieves information about one or more datastore(s).

Install VMware.PowerCLI

Before using this VMware Automation Manager Object, you must install the PowerShell module VMware.PowerCLI.

This VMware Automation Object runs on 64-bit PowerShell, and the module must also be added to 64-bit PowerShell.

Input Parameters

Name Type Required Description
Session ID String Yes The session ID that is generated by the VMware connection object.
This required for this object to work.
Datastore Name String No

The name of the datastore.

This field supports wildcards, so to select all datastores, use "*" as the value.

Output Parameters

Name Type Description
HardDisksArray Collection This is the list of datastores returned. It contains following host information:

ItemTypeExample
FileSystemVersionString5.61
DatacenterStringha-datacenter
DatastoreBrowserPathStringvmstores:\10.199.2.23@443\ha-datacenter\tok-esx-01:LocalStorage01
AccessibleStringTrue
TypeStringVMFS
StateStringAvailable
CapacityGBInt1388
FreeSpaceGBInt937
NameStringLocalStorage01
IdStringDatastore-58d4c510-d58f4093-d307-14feb5da0c2d
UidString/VIServer=root@10.199.2.23:443/
Datastore=Datastore-58d4c510-d58f4093-d307-14feb5da0c2d/
Records Found Number The number of datastores found.
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example
Session ID String Yes ab4c55c1273cb609678a2bb6a15104e927ac8dec, 10.199.2.23
Datastore Name String No Tok-esx-01:LocalStorage01
*