# Data Object - DvsTrafficRule(vim.dvs.TrafficRule)

Property of
  DvsTrafficRuleset
Extends
  DynamicData
See also
  DvsNetworkRuleAction, DvsNetworkRuleQualifier
Since
  vSphere API 5.5

## Data Object Description

This class defines a single rule that will be applied to network traffic.

Properties

Name | Type | Description
--- | --- | ---
action* | DvsNetworkRuleAction | Action to be applied for this rule.
description* | xsd:string | Description of the rule
direction* | xsd:string | Whether this rule needs to be applied to incoming packets, to outgoing packets or both. See RuleDirectionType for valid values.
key* | xsd:string | The key of the rule
qualifier* | DvsNetworkRuleQualifier[] | List of Network rule qualifiers. 'AND' of this array of network rule qualifiers is applied as one network traffic rule. If the TrafficRule belongs to DvsFilterPolicy : There can be a maximum of 1 DvsIpNetworkRuleQualifier, 1 DvsMacNetworkRuleQualifier and 1 DvsSystemTrafficNetworkRuleQualifier for a total of 3 qualifier
sequence* | xsd:int | Sequence of this rule. i.e, the order in which this rule appears in the ruleset.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="DvsTrafficRule"> <complexContent> <extension base="pbm:DynamicData"> <sequence> <element name="key" type="xsd:string" minOccurs="0"/> <element name="description" type="xsd:string" minOccurs="0"/> <element name="sequence" type="xsd:int" minOccurs="0"/> <element name="qualifier" type="pbm:DvsNetworkRuleQualifier" minOccurs="0" maxOccurs="unbounded"/> <element name="action" type="pbm:DvsNetworkRuleAction" minOccurs="0"/> <element name="direction" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>