Partager via


GetSizesInfo method of the MSFT_SMPool class

Returns the possible sizes of child storage volumes that can be created or modified by using capacity from this storage pool.

Syntax

uint32 GetSizesInfo(
  [in, optional]  String                username,
  [in, optional]  String                password,
  [in]            String                PoolSettingObjectId,
  [out, optional] uint64                SupportedSizes[],
  [out, optional] uint64                MinimumVolumeSize,
  [out, optional] uint64                MaximumVolumeSize,
  [out, optional] uint64                VolumeSizeDivisor,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

username [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

password [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

PoolSettingObjectId [in]

An ObjectId of a pool setting. This is the service level that the StoragePool is expected to provide. If NULL, the storage service will try to locate a default setting.

SupportedSizes [out, optional]

All the possible sizes of a storage volume.

MinimumVolumeSize [out, optional]

The minimum size an element can take as a result of either a creation or modification operation.

MaximumVolumeSize [out, optional]

The maximum size an element can take as a result of either a creation or modification operation.

VolumeSizeDivisor [out, optional]

A volume/pool size must be a multiple of this value which is specified in bytes.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

Method completed OK (0)

Related Provider Methods not supported (1)

StorageService: Method invocation failed (40300)

StorageService: Failed to get supported size (40311)

StorageService: Failed to get supported size range (40312)

StorageService CIM Error: Failed (43001)

StorageService CIM Error: Access denied (43002)

StorageService CIM Error: Invalid namespace (43003)

StorageService CIM Error: Invalid parameter (43004)

StorageService CIM Error: Invalid class (43005)

StorageService CIM Error: Not found (43006)

StorageService CIM Error: Not supported (43007)

StorageService CIM Error: Class has children (43008)

StorageService CIM Error: Class has instances (43009)

StorageService CIM Error: Invalid superclass (43010)

StorageService CIM Error: Already exists (43011)

StorageService CIM Error: No such property (43012)

StorageService CIM Error: Type mismatch (43013)

StorageService CIM Error: Query language not supported (43014)

StorageService CIM Error: Invalid query (43015)

StorageService CIM Error: Method not available (43016)

StorageService CIM Error: Method not found (43017)

StorageService CIM Error: Unexpected response (43018)

StorageService CIM Error: Invalid response destination (43019)

StorageService CIM Error: Namespace not empty (43020)

StorageService CIM Error: Invalid enumeration context (43021)

StorageService CIM Error: Invalid operation timeout (43022)

StorageService CIM Error: Pull has been abandoned (43023)

StorageService CIM Error: Pull cannot be abandoned (43024)

StorageService CIM Error: Filtered enumeration not supported (43025)

StorageService CIM Error: Continuation on error not supported (43026)

StorageService CIM Error: Server limits exceeded (43027)

StorageService CIM Error: Server is shutting down (43028)

StorageService CIM Error: Query feature not supported (43029)

StorageService: Generic Failure (51000)

StorageService: Invalid connection credentials (51005)

StorageService: SSL connection failure (51010)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMPool