TrafficMarkingPolicyTrafficMatchRule

data class TrafficMarkingPolicyTrafficMatchRule(val addressFamily: String? = null, val dstCidr: String? = null, val dstPortRanges: List<Int>? = null, val matchDscp: Int? = null, val protocol: String? = null, val srcCidr: String? = null, val srcPortRanges: List<Int>? = null, val trafficMatchRuleDescription: String? = null, val trafficMatchRuleName: String? = null)

Constructors

Link copied to clipboard
constructor(addressFamily: String? = null, dstCidr: String? = null, dstPortRanges: List<Int>? = null, matchDscp: Int? = null, protocol: String? = null, srcCidr: String? = null, srcPortRanges: List<Int>? = null, trafficMatchRuleDescription: String? = null, trafficMatchRuleName: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val addressFamily: String? = null

IP Address Family.

Link copied to clipboard
val dstCidr: String? = null

The destination network segment of the traffic message. The flow classification matches the traffic of the destination IP address in the destination network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination IP address.

Link copied to clipboard
val dstPortRanges: List<Int>? = null

The destination port of the traffic message. Valid values: -1, 1 to 65535. The flow classification rule matches the traffic of the destination port number in the destination port range. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination port number. The current parameter supports a maximum of 2 port numbers. The input format is described as follows:

Link copied to clipboard
val matchDscp: Int? = null

The DSCP value of the traffic message. Valid values: 0 to **63 * *. The flow classification rule matches the flow with the specified DSCP value. If the flow classification rule is not set, it means that the flow classification rule matches the flow with any DSCP value.>NOTE: The current DSCP value refers to the DSCP value that the traffic message has carried before entering the cross-region connection.

Link copied to clipboard
val protocol: String? = null

The protocol type of the traffic message. Stream classification rules can match traffic of multiple protocol types, such as HTTP, HTTPS, TCP, UDP, SSH, and **Telnet. For more protocol types, please log on to the Cloud Enterprise Network Management Console to view.

Link copied to clipboard
val srcCidr: String? = null

The source network segment of the traffic message. The flow classification rule matches the traffic of the source IP address in the source network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any source IP address.

Link copied to clipboard
val srcPortRanges: List<Int>? = null

The source port of the traffic message. Valid values: -1, 1 to 65535. The flow classification rule matches the traffic of the source port number in the source port range. If it is not set, it means that the flow classification rule matches the traffic of any source port number. The current parameter supports entering up to two port numbers. The input format is described as follows:

Link copied to clipboard

The description information of the stream classification rule. The description must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).

Link copied to clipboard

The name of the stream classification rule. The name must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).