The Folder namespace provides commands for manipulating a vCenter Server folder.
List of commands:
dcli com vmware vcenter folder list
Description
Returns information about at most 1000 visible (subject to permission checks) folders in vCenter matching the Folder.FilterSpec.
Options
Option Name | Type | Required | Description |
---|---|---|---|
folders |
string | No | Identifiers of folders 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: 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, folders with any identifier match the filter. |
names |
string | No | Names that folders must have to match the filter (see Folder.Summary.name). If unset or empty, folders with any name match the filter. |
type |
string | No | Type that folders must have to match the filter (see Folder.Summary.type). If unset, folders with any type match the filter. Valid values are: {DATACENTER, DATASTORE, HOST, NETWORK, VIRTUAL_MACHINE} |
parent‑folders |
string | No | Folders that must contain the folder for the folder 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, folder in any folder match the filter. |
datacenters |
string | No | Datacenters that must contain the folder for the folder 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, folder in any datacenter match the filter. |
Example
dcli com vmware vcenter folder list