A Quick Mode SA.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class MSFT_NetQuickModeSA : CIM_IPsecSAEndpoint
{
string LocalEndpoint;
string RemoteEndpoint;
uint16 LocalPort;
uint16 RemotePort;
uint64 TrafficLuid;
UINT8 IpProtocol;
string InterfaceAlias;
uint64 RealIfProfileId;
uint16 LocalUdpEncapsulationPort;
uint16 RemoteUdpEncapsulationPort;
uint32 Flags;
string TransportLayerFilterName;
uint64 MmSaId;
uint32 FirstTransformType;
uint32 FirstIntegrityAlgorithm;
uint32 FirstCipherAlgorithm;
uint32 SecondTransformType;
uint32 SecondIntegrityAlgorithm;
uint32 SecondCipherAlgorithm;
uint32 SecondSPI;
string PeerV4PrivateAddress;
uint32 PfsGroupId;
uint64 QuickModeFilterId;
uint64 LifetimePackets;
uint32 NdAllowClearTimeoutSeconds;
uint32 NapContext;
uint32 QmSaId;
uint64 VirtualIfTunnelId;
uint64 TrafficSelectorId;
string MmTargetName;
string EmTargetName;
uint64 ExplicitCredentials;
uint16 DFHandling;
uint16 EncapsulationMode;
boolean InboundDirection;
boolean PFSInUse;
uint32 SPI;
uint64 IdleDurationSeconds;
uint64 LifetimeKilobytes;
uint64 LifetimeSeconds;
boolean PacketLoggingActive;
uint8 RefreshThresholdSecondsPercentage;
uint8 RefreshThresholdKbytesPercentage;
string NameFormat;
string OtherTypeDescription;
uint16 ProtocolIFType;
uint16 ProtocolType;
string SystemCreationClassName;
string SystemName;
string CreationClassName;
string Name;
uint16 AvailableRequestedStates[];
uint16 EnabledDefault;
uint16 EnabledState;
string OtherEnabledState;
uint16 RequestedState;
datetime TimeOfLastStateChange;
uint16 TransitioningToState;
datetime InstallDate;
uint16 OperationalStatus[];
string StatusDescriptions[];
string Status;
uint16 HealthState;
uint16 CommunicationStatus;
uint16 DetailedStatus;
uint16 OperatingStatus;
uint16 PrimaryStatus;
string InstanceID;
string Caption;
string Description;
string ElementName;
};
Members
The MSFT_NetQuickModeSA class has these types of members:
Properties
The MSFT_NetQuickModeSA class has these properties.
AvailableRequestedStates
Data type: uint16 array
Access type: Read-only
This field is ignored.
Caption
Data type: string
Access type: Read-only
Used in CimInstance.ToString(). A short string for describing this instance when debugging.
CommunicationStatus
Data type: uint16
Access type: Read-only
This field is ignored.
CreationClassName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
Description
Data type: string
Access type: Read-only
This field is ignored.
DetailedStatus
Data type: uint16
Access type: Read-only
This field is ignored.
DFHandling
Data type: uint16
Access type: Read-only
This field is ignored.
ElementName
Data type: string
Access type: Read-only
This field is ignored.
EmTargetName
Data type: string
Access type: Read-only
Extended Mode target SPN
EnabledDefault
Data type: uint16
Access type: Read-only
This field is ignored.
EnabledState
Data type: uint16
Access type: Read-only
This field is ignored.
EncapsulationMode
Data type: uint16
Access type: Read-only
This field is ignored.
ExplicitCredentials
Data type: uint64
Access type: Read-only
Optional handle to explicit credentials
FirstCipherAlgorithm
Data type: uint32
Access type: Read-only
The cipher algorithm for the first operation
None (0)
DES (2)
3DES (6)
AES-128 (65001)
AES-192 (65002)
AES-256 (65003)
AES-GCM-128 (65004)
AES-GCM-192 (65005)
AES-GCM-256 (65006 )
FirstIntegrityAlgorithm
Data type: uint32
Access type: Read-only
The integrity algorithm for the first operation
None (0)
MD5 (2)
SHA-1 (3)
SHA-256 (65001)
AES-GMAC-128 (65003)
AES-GMAC-192 (65004)
AES-GMAC-256 (65005 )
FirstTransformType
Data type: uint32
Access type: Read-only
First Transform type
Flags
Data type: uint32
Access type: Read-only
SA Flags
HealthState
Data type: uint16
Access type: Read-only
This field is ignored.
IdleDurationSeconds
Data type: uint64
Access type: Read-only
This field is ignored.
InboundDirection
Data type: boolean
Access type: Read-only
This field is ignored.
InstallDate
Data type: datetime
Access type: Read-only
This field is ignored.
InstanceID
Data type: string
Access type: Read-only
A string that uniquely identifies this instance within the PolicyStore.
InterfaceAlias
Data type: string
Access type: Read-only
Local interface alias
IpProtocol
Data type: UINT8
Access type: Read-only
IP protocol for this traffic. Only specified if the traffic is more general than the matching filter
LifetimeKilobytes
Data type: uint64
Access type: Read-only
This field is ignored.
LifetimePackets
Data type: uint64
Access type: Read-only
Liftime by number of packets
LifetimeSeconds
Data type: uint64
Access type: Read-only
This field is ignored.
LocalEndpoint
Data type: string
Access type: Read-only
The address of the local endpoint the SA applies to.
LocalPort
Data type: uint16
Access type: Read-only
The local machine port the SA applies to, or 0 for all ports.
LocalUdpEncapsulationPort
Data type: uint16
Access type: Read-only
Local Udp encapsulation port for NAT traversal
MmSaId
Data type: uint64
Access type: Read-only
Id of the associated Main Mode
MmTargetName
Data type: string
Access type: Read-only
Main Mode target SPN
Name
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
NameFormat
Data type: string
Access type: Read-only
This field is ignored.
NapContext
Data type: uint32
Access type: Read-only
Network Access Protection context
NdAllowClearTimeoutSeconds
Data type: uint32
Access type: Read-only
Timeout after which the IPsec SA should stop accepting packets coming in the clear in negotiation discovery mode
OperatingStatus
Data type: uint16
Access type: Read-only
This field is ignored.
OperationalStatus
Data type: uint16 array
Access type: Read-only
This field is ignored.
OtherEnabledState
Data type: string
Access type: Read-only
This field is ignored.
OtherTypeDescription
Data type: string
Access type: Read-only
This field is ignored.
PacketLoggingActive
Data type: boolean
Access type: Read-only
This field is ignored.
PeerV4PrivateAddress
Data type: string
Access type: Read-only
Private address of peer behind NAT
PfsGroupId
Data type: uint32
Access type: Read-only
Perfect forward secrecy group id
None (0)
DH Group 1 (1)
DH Group 2 (2)
DH Group 14 (14)
DH Group 19 (19)
DH Group 20 (20)
DH Group 24 (24)
Same as Main Mode (65535 )
PFSInUse
Data type: boolean
Access type: Read-only
This field is ignored.
PrimaryStatus
Data type: uint16
Access type: Read-only
This field is ignored.
ProtocolIFType
Data type: uint16
Access type: Read-only
This field is ignored.
ProtocolType
Data type: uint16
Access type: Read-only
This field is ignored.
QmSaId
Data type: uint32
Access type: Read-only
Identifier for tiebraking simultaneous SAs
QuickModeFilterId
Data type: uint64
Access type: Read-only
LUID of the FWPS_LAYER_IPSEC_XX layer FWPS filter corresponding to this SA
RealIfProfileId
Data type: uint64
Access type: Read-only
The profile ID corresponding to the actual interface that the traffic is going out on or coming in from the wire.
RefreshThresholdKbytesPercentage
Data type: uint8
Access type: Read/write
Qualifiers: MinValue (0), MaxValue (100), Override ("RefreshThresholdKbytesPercentage")
This property is ignored.
RefreshThresholdSecondsPercentage
Data type: uint8
Access type: Read/write
Qualifiers: MinValue (0), MaxValue (100), Override ("RefreshThresholdSecondsPercentage")
This property is ignored.
RemoteEndpoint
Data type: string
Access type: Read-only
The address of the remote endpoint the SA applies to.
RemotePort
Data type: uint16
Access type: Read-only
The remote machine port the SA applies to, or 0 for all ports.
RemoteUdpEncapsulationPort
Data type: uint16
Access type: Read-only
Remote Udp encapsulation port for NAT traversal
RequestedState
Data type: uint16
Access type: Read-only
This field is ignored.
SecondCipherAlgorithm
Data type: uint32
Access type: Read-only
The cipher algorithm for the second operation
None (0)
DES (2)
3DES (6)
AES-128 (65001)
AES-192 (65002)
AES-256 (65003)
AES-GCM-128 (65004)
AES-GCM-192 (65005)
AES-GCM-256 (65006 )
SecondIntegrityAlgorithm
Data type: uint32
Access type: Read-only
The integrity algorithm for the second operation
None (0)
MD5 (2)
SHA-1 (3)
SHA-256 (65001)
AES-GMAC-128 (65003)
AES-GMAC-192 (65004)
AES-GMAC-256 (65005 )
SecondSPI
Data type: uint32
Access type: Read-only
The spi for the first operation
SecondTransformType
Data type: uint32
Access type: Read-only
Second Transform type
SPI
Data type: uint32
Access type: Read-only
This field is ignored.
Status
Data type: string
Access type: Read-only
This field is ignored.
StatusDescriptions
Data type: string array
Access type: Read-only
This field is ignored.
SystemCreationClassName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
SystemName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
TimeOfLastStateChange
Data type: datetime
Access type: Read-only
This field is ignored.
TrafficLuid
Data type: uint64
Access type: Read-only
If traffic type is transport mode, this is the LUID of the FWPS transport layer filter corresponding to this traffic. If traffic type is tunnel mode, this is the LUID of the associated QM policy. In tunnel mode, this represents the QM traffic selectors for the tunnel
TrafficSelectorId
Data type: uint64
Access type: Read-only
ID/Handle to Virtual-IF traffic selector(s)
TransitioningToState
Data type: uint16
Access type: Read-only
This field is ignored.
TransportLayerFilterName
Data type: string
Access type: Read-only
Name of the matching transport filter
VirtualIfTunnelId
Data type: uint64
Access type: Read-only
ID/Handle to Virtual-IF tunnel state
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 |
| Minimum supported server | Windows Server 2012 |
| Namespace | Root\StandardCimv2 |
| MOF | WFasCim.mof |
| DLL | WFasCim.dll |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors (upstream author metadata: windowssdkdev). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
