DvsTrafficRule

DvsTrafficRule
DvsTrafficRule

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

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "key": "string",
    "description": "string",
    "sequence": 0,
    "qualifier": [
        {
            "_typeName": "string",
            "key": "string"
        }
    ],
    "action": {
        "_typeName": "string"
    },
    "direction": "string"
}
string
key
Optional

The key of the rule

string
description
Optional

Description of the rule

integer As int32 As int32
sequence
Optional

Sequence of this rule.

i.e, the order in which this rule appears in the ruleset.

qualifier
Optional

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

action
Optional

This class is the base class for network rule action.

string
direction
Optional

Whether this rule needs to be applied to incoming packets, to outgoing packets or both.

See DvsNetworkRuleDirectionTypeEnum for valid values.