Freigeben über


CreateResourcePool method of the CIM_ResourcePoolConfigurationService class

Starts a job to create a root resource pool. The resource pool will be scoped to the same system as this service.

Syntax

uint32 CreateResourcePool(
  [in]  string                ElementName,
  [in]  CIM_LogicalDevice REF HostResources[],
  [in]  string                ResourceType,
  [out] CIM_ResourcePool  REF Pool,
  [out] CIM_ConcreteJob   REF Job
);

Parameters

ElementName [in]

A user relevant name for the new resource pool.

HostResources [in]

Array of references to zero or more logical devices that are used to create the resource pool, or modify the source extents. All elements in the array must be of the same type.

ResourceType [in]

The type of resources that the new resource pool will manage. If the HostResources property contains elements, this property must mach that type.

Pool [out]

If this method returns successfully, this parameter contains a reference to the new resource pool. If this method returns a job, this parameter may be NULL, in which case, the client must use the job to find the new resource pool after the job completes.

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 values are:

Job Completed with No Error

0

The job completed successfully.

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