Partager via


MSFT_NetQosPolicySettingData class

A QoS policy.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Dynamic, Provider("NetQosCim")]
class MSFT_NetQosPolicySettingData : MSFT_NetSettingData
{
  string  Name;
  string  Version;
  string  Owner;
  uint32  NetworkProfile;
  uint32  Precedence;
  uint32  TemplateMatchCondition;
  string  UserMatchCondition;
  string  AppPathNameMatchCondition;
  uint32  IPProtocolMatchCondition;
  uint16  IPPortMatchCondition;
  string  IPSrcPrefixMatchCondition;
  uint16  IPSrcPortStartMatchCondition;
  uint16  IPSrcPortEndMatchCondition;
  string  IPDstPrefixMatchCondition;
  uint16  IPDstPortStartMatchCondition;
  uint16  IPDstPortEndMatchCondition;
  string  URIMatchCondition;
  boolean URIRecursiveMatchCondition;
  uint16  NetDirectPortMatchCondition;
  sint8   PriorityValue8021Action;
  sint8   DSCPAction;
  uint8   MinBandwidthWeightAction;
  uint64  ThrottleRateAction;
};

Members

The MSFT_NetQosPolicySettingData class has these types of members:

Properties

The MSFT_NetQosPolicySettingData class has these properties.

AppPathNameMatchCondition

Data type: string

Access type: Read/write

The application path name filter condition.

DSCPAction

Data type: sint8

Access type: Read/write

Qualifiers: MinValue (-1), MaxValue (63)

The DSCP action. Set to -1 if not used.

IPDstPortEndMatchCondition

Data type: uint16

Access type: Read/write

The upper-bound of the destination port filter condition. This field complements IPDstPortStartMatchCondition.

IPDstPortStartMatchCondition

Data type: uint16

Access type: Read/write

The optional lower-bound of the destination port filter condition. If only a single port value is required, then IPDstPortStartMatchCondition and IPDstPortEndMatchCondition must match. If the destination port filter condition is not required, set both fields to zero.

IPDstPrefixMatchCondition

Data type: string

Access type: Read/write

The optional destination IP prefix filter condition. Where applicable, both the source and destination prefix families must match. Examples of valid prefixes: 192.168.1.1, 192.168.1.0/24, or fe80::1001:2046/128

IPPortMatchCondition

Data type: uint16

Access type: Read/write

The IP well-known port filter condition. This matches either the local port number or the remote port number of a supported IP connection. This type of filter is especially effective if the port number is a well-known number assigned by the IANA. If the value of this field is nonzero, then all the following fields are ignored: IPSrcPrefixMatchCondition, IPSrcPortStartMatchCondition, IPSrcPortEndMatchCondition, IPDstPrefixMatchCondition, IPDstPortMatchCondition, and IPDstPortEndMatchCondition.

IPProtocolMatchCondition

Data type: uint32

Access type: Read/write

The IP protocol filter condition. If set to 0, then all the following fields are ignored: IPPortMatchCondition, IPSrcPrefixMatchCondition, IPSrcPortStartMatchCondition, IPSrcPortEndMatchCondition, IPDstPrefixMatchCondition, IPDstPrefixMatchCondition, and IPDstPortEndMatchCondition.

N/A (0)

TCP (1)

UDP (2)

Both (3)

IPSrcPortEndMatchCondition

Data type: uint16

Access type: Read/write

The upper-bound of the source port filter condition. This field complements IPSrcPortStartMatchCondition.

IPSrcPortStartMatchCondition

Data type: uint16

Access type: Read/write

The optional lower-bound of the source port filter condition. If only a single port value is required, then IPSrcPortStartMatchCondition and IPSrcPortEndMatchCondition must match. If the source port filter condition is not required, set both fields to zero.

IPSrcPrefixMatchCondition

Data type: string

Access type: Read/write

The optional source IP prefix filter condition. Where applicable, both the source and destination prefix families must match. Examples of valid prefixes: 192.168.1.1, 192.168.1.0/24, or fe80::1001:2046/128

MinBandwidthWeightAction

Data type: uint8

Access type: Read/write

Qualifiers: MaxValue (100)

The minimum bandwidth weight action. Set to 0 if not used.

Name

Data type: string

Access type: Read-only

Policy name.

NetDirectPortMatchCondition

Data type: uint16

Access type: Read/write

The NetworkDirect port filter condition. This filter is only applicable if the Data Center Bridging server feature is installed. Otherwise, the policy is effectively no-op.

NetworkProfile

Data type: uint32

Access type: Read/write

The network profiles for which the policy applies.

Owner

Data type: string

Access type: Read-only

The owner of this policy.

Precedence

Data type: uint32

Access type: Read/write

Qualifiers: MinValue (0), MaxValue (255)

The precedence value of the policy.

PriorityValue8021Action

Data type: sint8

Access type: Read/write

Qualifiers: MinValue (-1), MaxValue (7)

The 802.1p priority action. Set to -1 if not used.

TemplateMatchCondition

Data type: uint32

Access type: Read-only

The optional match condition template that, if specified, overrides all other match conditions with predefined conditions. For example, the iSCSI template has a predefined match on TCP well-known port 3260.

None (0)

Default (1)

iSCSI (2)

FCoE (3)

SMB (4)

NFS (5)

LiveMigration (6)

ThrottleRateAction

Data type: uint64

Access type: Read/write

Qualifiers: Units ("Bytes per Second")

The bandwidth throttle rate action in bytes per second unit. Set to 0 if not used.

URIMatchCondition

Data type: string

Access type: Read/write

The optional URI filter condition. This condition may only be combined with the URIRecursiveMatchCondition, IPDstAddressMatchCondition, IPDstPortStartMatchCondition, and IPDstPortEndMatchCondition fields.

URIRecursiveMatchCondition

Data type: boolean

Access type: Read/write

This filter condition supplements URIMatchCondition. If set, the URI match happens for all resources with the base path indicated by URIMatchCondition. Otherwise, a match only happens for a resource with the exact URI.

UserMatchCondition

Data type: string

Access type: Read-only

The user SID or name filter match condition.

Version

Data type: string

Access type: Read-only

Policy version if read from GPO.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\StandardCimv2
MOF
Qoswmi.mof
DLL
QoSWmi.dll