MSIscsiInitiator_TargetClass class
This MSIscsiInitiator_TargetClass provides information about connected iSCSI targets as well the ability to login to a specified target.
Syntax
class MSIscsiInitiator_TargetClass
{
string TargetName;
string DiscoveryMechanism;
string InitiatorName;
uint32 ProtocolType;
string TargetAlias;
MSIscsiInitiator_PortalGroup PortalGroups[];
MSIscsiInitiator_TargetMappings Mappings;
uint32 TargetFlags;
MSIscsiInitiator_TargetLoginOptions LoginOptions;
};
Members
The MSIscsiInitiator_TargetClass class has these types of members:
Methods
The MSIscsiInitiator_TargetClass class has these methods.
Method | Description |
---|---|
Login | Login to the target. |
Properties
The MSIscsiInitiator_TargetClass class has these properties.
-
DiscoveryMechanism
-
-
Data type: string
-
Access type: Read-only
Indicates the available discovery mechanism for the target.
-
-
InitiatorName
-
-
Data type: string
-
Access type: Read-only
Indicates the name of the iSCSI initiator the target is connected to.
-
-
LoginOptions
-
-
Data type: MSIscsiInitiator_TargetLoginOptions
-
Access type: Read-only
An array of MSIscsiInitiator_TargetLoginOptions structures which contain information about target login options.
-
-
Mappings
-
-
Data type: MSIscsiInitiator_TargetMappings
-
Access type: Read-only
An array of MSIscsiInitiator_TargetMappings structures which contain information about LUN mapping.
-
-
PortalGroups
-
-
Data type: MSIscsiInitiator_PortalGroup array
-
Access type: Read-only
An array of MSIscsiInitiator_PortalGroup structures containing information about an initiator portal group.
-
-
ProtocolType
-
-
Data type: uint32
-
Access type: Read-only
Indicates the potocol used to establish the connection between the target and initiator.
-
-
TargetAlias
-
-
Data type: string
-
Access type: Read-only
The name or description that is assigned to the target device by its host operating system. You can use this name in user interfaces, but it is not unique, you should not use it in authentication decisions.
-
-
TargetFlags
-
-
Data type: uint32
-
Access type: Read-only
A bitmap of flags that affect how, and under what circumstances, a target is discovered and enumerated.
Flag Meaning ISCSI_TARGET_FLAG_HIDE_STATIC_TARGET The target is added to the list of static targets. However, ReportIscsiTargets does not report the target, unless it was also discovered dynamically by the iSCSI initiator, the Internet Storage Name Service (iSNS), or a SendTargets request. ISCSI_TARGET_FLAG_MERGE_TARGET_INFORMATION The iSCSI initiator service merges the information (if any) that it already has for this static target with the information that the caller passes to AddIscsiStaticTarget.
If this flag is not set, the iSCSI initiator service overwrites the stored information with the information that the caller passes in. -
-
TargetName
-
-
Data type: string
-
Access type: Read-only
The name assigned to the iSCSI target.
-
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Namespace |
Root\WMI |
MOF |
|
See also