DatastoreFilterSpec

The Datastore.FilterSpec structure contains fields used to filter the results when listing datastores (see Datastore.list). If multiple fields are specified, only datastores matching all of the fields match the filter.


Properties

array of string
datacenters Optional

Datacenters that must contain the datastore for the datastore to match the filter. If unset or empty, datastores in any datacenter match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: Datacenter. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: Datacenter.


array of string
datastores Optional

Identifiers of datastores that can match the filter. If unset or empty, datastores with any identifier match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: Datastore. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: Datastore.


array of string
folders Optional

Folders that must contain the datastore for the datastore to match the filter. If unset or empty, datastores in any folder match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: Folder. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: Folder.


array of string
names Optional

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 Optional

The Datastore.Type enumerated type defines the supported types of vCenter datastores.
VMFS : VMware File System (ESX Server only).
NFS : Network file system v3 (linux & esx servers only).
NFS41 : Network file system v4.1 (linux & esx servers only).
CIFS : Common Internet File System.
VSAN : Virtual SAN (ESX Server only).
VFFS : Flash Read Cache (ESX Server only).
VVOL : vSphere Virtual Volume (ESX Server only).

Possible values are: VMFSNFSNFS41CIFSVSANVFFSVVOL

JSON Example

{
	"datacenters": [
		"string"
	],
	"datastores": [
		"string"
	],
	"folders": [
		"string"
	],
	"names": [
		"string"
	],
	"types": "VMFS"
}

Feedback

Was this page helpful?