VMware

Datastore Namespace

The Datastore namespace provides commands for manipulating a datastore.

List of commands:



Get Command

dcli com vmware vcenter datastore get

Description

Retrieves information about the datastore indicated by datastore.

Options

Option Name Type Required Description
datastore string Yes Identifier of the datastore for which information should be retrieved. The parameter must be an identifier for the resource type: Datastore.

Example

dcli com vmware vcenter datastore get --datastore testId


List Command

dcli com vmware vcenter datastore list

Description

Returns information about at most 1000 visible (subject to permission checks) datastores in vCenter matching the Datastore.FilterSpec.

Options

Option Name Type Required Description
datastores string No Identifiers of datastores that can match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: Datastore. When commands return a value of this class as a output, the option will contain identifiers for the resource type: Datastore. If unset or empty, datastores with any identifier match the filter.
names string No Names that datastores must have to match the filter (see Datastore.Info.name). If unset or empty, datastores with any name match the filter.
types string No Types that datastores must have to match the filter (see Datastore.Summary.type). If unset or empty, datastores with any type match the filter. Valid values are: {VMFS, NFS, NFS41, CIFS, VSAN, VFFS, VVOL}
folders string No Folders that must contain the datastore for the datastore to match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: Folder. When commands return a value of this class as a output, the option will contain identifiers for the resource type: Folder. If unset or empty, datastores in any folder match the filter.
datacenters string No Datacenters that must contain the datastore for the datastore to match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: Datacenter. When commands return a value of this class as a output, the option will contain identifiers for the resource type: Datacenter. If unset or empty, datastores in any datacenter match the filter.

Example

dcli com vmware vcenter datastore list