Share via


GetStorageGroupObjectIdFromJob method of the MSFT_SMSystem class

Returns a Storage Group Object Id based on a Job reference

Syntax

uint32 GetStorageGroupObjectIdFromJob(
  [in]            MSFT_SMJob        REF Job,
  [out]           String                StorageGroupObjectId,
  [in, optional]  String                username,
  [in, optional]  String                password,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

Job [in]

Reference to the MSFT_SMJob instance.

StorageGroupObjectId [out]

Storage Group ObjectId.

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.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

Not Found (6)

StorageService: Success, with Multiple StorageGroups (SPCs) found. First One Returned (40045)

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 R2
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMSystem