次の方法で共有


AddTargetPorts method of the MSFT_SMStorageGroup class

Adds target ports to a storage group.

Syntax

Uint32 AddTargetPorts(
  [in]            String                TargetPortIDs[],
  [in, optional]  String                username,
  [in, optional]  String                password,
  [out]           MSFT_SMJob        REF Job,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

TargetPortIDs [in]

The IDs of target ports to add.

username [in, optional]

The username used to authenticate with the SMI-S provider. If this value is not provided, the storage service attempts to obtain these credentials from the configuration provider.

password [in, optional]

The username used to authenticate with the SMI-S provider. If this value is not provided, the storage service attempts to obtain these credentials from the configuration provider.

Job [out]

A reference to the MSFT_SMJob instance. May be NULL if the job is completed.

Windows Server 2012: This parameter is not supported.

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)

Method Parameters Checked - Job Started (4096)

Invalid target port ID (4099)

Invalid permission (4100)

Target/initiator combination already exposed (4101)

StorageService: Error TargetPortID Required (40010)

StorageService: Not Unique InitiatorID and TargetPortID Combination (40040)

StorageService: Unable to get MaskingGroup from job (40061)

StorageService: Error Unable to add TargetPort, PortsPerView is set to OnePort (40070)

StorageService: Error Unable to add TargetPort, PortsPerView is set to Unknown (40080)

StorageService: Provider does not support masking and mapping operations (40107)

StorageService: More than one MaskingGroup of the same type are associated with the SPC on the Provider (40111)

StorageService: Unable to Find the TargetPort Object on the provider (40119)

StorageService: Operation is not supported for a provider that implements GroupMaskingAndMapping Profile (40300)

StorageService: Method invocation failed (41000)

StorageService: Error: Provider job completed with errors (43001)

StorageService CIM Error: Failed (43002)

StorageService CIM Error: Access denied (43003)

StorageService CIM Error: Invalid namespace (43004)

StorageService CIM Error: Invalid parameter (43005)

StorageService CIM Error: Invalid class (43006)

StorageService CIM Error: Not found (43007)

StorageService CIM Error: Not supported (43008)

StorageService CIM Error: Class has children (43009)

StorageService CIM Error: Class has instances (43010)

StorageService CIM Error: Invalid superclass (43011)

StorageService CIM Error: Already exists (43012)

StorageService CIM Error: No such property (43013)

StorageService CIM Error: Type mismatch (43014)

StorageService CIM Error: Query language not supported (43015)

StorageService CIM Error: Invalid query (43016)

StorageService CIM Error: Method not available (43017)

StorageService CIM Error: Method not found (43018)

StorageService CIM Error: Unexpected response (43019)

StorageService CIM Error: Invalid response destination (43020)

StorageService CIM Error: Namespace not empty (43021)

StorageService CIM Error: Invalid enumeration context (43022)

StorageService CIM Error: Invalid operation timeout (43023)

StorageService CIM Error: Pull has been abandoned (43024)

StorageService CIM Error: Pull cannot be abandoned (43025)

StorageService CIM Error: Filtered enumeration not supported (43026)

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

StorageService CIM Error: Server limits exceeded (43028)

StorageService CIM Error: Server is shutting down (43029)

StorageService CIM Error: Query feature not supported (51000)

StorageService: Generic Failure (51005)

StorageService: Invalid connection credentials (51010)

StorageService: SSL connection failure (51011)

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_SMStorageGroup