VMware

ResourcePool Namespace

The ResourcePool namespace provides commands for manipulating a vCenter Server resource pool. This namespace does not include virtual appliances in the inventory of resource pools even though part of the behavior of a virtual appliance is to act like a resource pool.

List of commands:



Get Command

dcli com vmware vcenter resourcepool get

Description

Retrieves information about the resource pool indicated by resource-pool.

Options

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

Example

dcli com vmware vcenter resourcepool get --resource-pool testId


List Command

dcli com vmware vcenter resourcepool list

Description

Returns information about at most 1000 visible (subject to permission checks) resource pools in vCenter matching the ResourcePool.FilterSpec.

Options

Option Name Type Required Description
resource‑pools string No Identifiers of resource pools 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: ResourcePool. When commands return a value of this class as a output, the option will contain identifiers for the resource type: ResourcePool. If unset or empty, resource pools with any identifier match the filter.
names string No Names that resource pools must have to match the filter (see ResourcePool.Info.name). If unset or empty, resource pools with any name match the filter.
parent‑resource‑pools string No Resource pools that must contain the resource pool for the resource pool to match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: ResourcePool. When commands return a value of this class as a output, the option will contain identifiers for the resource type: ResourcePool. If unset or empty, resource pools in any resource pool match the filter.
datacenters string No Datacenters that must contain the resource pool for the resource pool 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, resource pools in any datacenter match the filter.
hosts string No Hosts that must contain the resource pool for the resource pool to match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: HostSystem. When commands return a value of this class as a output, the option will contain identifiers for the resource type: HostSystem. If unset or empty, resource pools in any host match the filter.
clusters string No Clusters that must contain the resource pool for the resource pool to match the filter. When clients pass a value of this class as a parameter, the option must contain identifiers for the resource type: ClusterComputeResource. When commands return a value of this class as a output, the option will contain identifiers for the resource type: ClusterComputeResource. If unset or empty, resource pools in any cluster match the filter.

Example

dcli com vmware vcenter resourcepool list