共用方式為


CreateChildResourcePool method of the CIM_ResourcePoolConfigurationService class

Starts a job to create a resource pool from a parent resource pool.

Syntax

uint32 CreateChildResourcePool(
  [in]  string               ElementName,
  [in]  string               Settings[],
  [in]  CIM_ResourcePool REF ParentPool[],
  [out] CIM_ResourcePool REF Pool,
  [out] CIM_ConcreteJob  REF Job
);

Parameters

ElementName [in]

A user relevant name for the new resource pool.

Settings [in]

An array that contains an embedded instance of CIM_SettingData that represents the settings for the parent resource pool.

ParentPool [in]

The parent resource pool.

Pool [out]

A reference to the new resource pool.

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:

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)

Insufficient Resources (8)

DMTF Reserved (9 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