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

Types that datastores must have to match the filter (see Datastore.Summary.type). If unset or empty, datastores with any type match the filter.

Possible values are: VMFSNFSNFS41CIFSVSANVFFSVVOL

JSON Example

{
    "datacenters": [
        "string"
    ],
    "datastores": [
        "string"
    ],
    "folders": [
        "string"
    ],
    "names": [
        "string"
    ],
    "types": "enum"
}
Parameter To

List Datastore
Feedback

Was this page helpful?