Share via


RemoveResourcesFromResourcePool method of the CIM_ResourcePoolConfigurationService class

Starts a job to remove resources from a resource pool. The updated resource pool will be a root pool with no parent pool.

Syntax

uint32 RemoveResourcesFromResourcePool(
  [in]  CIM_LogicalDevice REF HostResources[],
  [in]  CIM_ResourcePool  REF Pool,
  [out] CIM_ConcreteJob   REF Job
);

Parameters

HostResources [in]

An array of references to logical devices to remove from the resource pool.

Pool [in]

The resource pool from which to remove resources.

Job [out]

A reference to the job for the operation. When the job is finished this parameter can be set to NULL.

Return value

The possible return values are:

Job Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

Incorrect ResourceType for the Pool (7)

DMTF Reserved (8 4095)

Method Parameters Checked - Job Started (4096)

Size Not Supported (4097)

Method Reserved (4098 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_ResourcePoolConfigurationService