1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. expressconnect
  5. TrafficQosRule
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.expressconnect.TrafficQosRule

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Express Connect Traffic Qos Rule resource. Express Connect Traffic QoS Rule.

    For information about Express Connect Traffic Qos Rule and how to use it, see What is Traffic Qos Rule.

    NOTE: Available since v1.224.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.expressconnect.getPhysicalConnections({
        nameRegex: "preserved-NODELETING",
    });
    const createQos = new alicloud.expressconnect.TrafficQos("createQos", {
        qosName: name,
        qosDescription: "terraform-example",
    });
    const associateQos = new alicloud.expressconnect.TrafficQosAssociation("associateQos", {
        instanceId: _default.then(_default => _default.ids?.[1]),
        qosId: createQos.id,
        instanceType: "PHYSICALCONNECTION",
    });
    const createQosQueue = new alicloud.expressconnect.TrafficQosQueue("createQosQueue", {
        qosId: createQos.id,
        bandwidthPercent: "60",
        queueDescription: "terraform-example",
        queueName: name,
        queueType: "Medium",
    });
    const defaultTrafficQosRule = new alicloud.expressconnect.TrafficQosRule("default", {
        ruleDescription: "terraform-example",
        priority: 1,
        protocol: "ALL",
        srcPortRange: "-1/-1",
        dstIpv6Cidr: "2001:db8:1234:5678::/64",
        srcIpv6Cidr: "2001:db8:1234:5678::/64",
        dstPortRange: "-1/-1",
        remarkingDscp: -1,
        queueId: createQosQueue.queueId,
        qosId: createQos.id,
        matchDscp: -1,
        ruleName: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.expressconnect.get_physical_connections(name_regex="preserved-NODELETING")
    create_qos = alicloud.expressconnect.TrafficQos("createQos",
        qos_name=name,
        qos_description="terraform-example")
    associate_qos = alicloud.expressconnect.TrafficQosAssociation("associateQos",
        instance_id=default.ids[1],
        qos_id=create_qos.id,
        instance_type="PHYSICALCONNECTION")
    create_qos_queue = alicloud.expressconnect.TrafficQosQueue("createQosQueue",
        qos_id=create_qos.id,
        bandwidth_percent="60",
        queue_description="terraform-example",
        queue_name=name,
        queue_type="Medium")
    default_traffic_qos_rule = alicloud.expressconnect.TrafficQosRule("default",
        rule_description="terraform-example",
        priority=1,
        protocol="ALL",
        src_port_range="-1/-1",
        dst_ipv6_cidr="2001:db8:1234:5678::/64",
        src_ipv6_cidr="2001:db8:1234:5678::/64",
        dst_port_range="-1/-1",
        remarking_dscp=-1,
        queue_id=create_qos_queue.queue_id,
        qos_id=create_qos.id,
        match_dscp=-1,
        rule_name=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
    			NameRegex: pulumi.StringRef("preserved-NODELETING"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		createQos, err := expressconnect.NewTrafficQos(ctx, "createQos", &expressconnect.TrafficQosArgs{
    			QosName:        pulumi.String(name),
    			QosDescription: pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = expressconnect.NewTrafficQosAssociation(ctx, "associateQos", &expressconnect.TrafficQosAssociationArgs{
    			InstanceId:   pulumi.String(_default.Ids[1]),
    			QosId:        createQos.ID(),
    			InstanceType: pulumi.String("PHYSICALCONNECTION"),
    		})
    		if err != nil {
    			return err
    		}
    		createQosQueue, err := expressconnect.NewTrafficQosQueue(ctx, "createQosQueue", &expressconnect.TrafficQosQueueArgs{
    			QosId:            createQos.ID(),
    			BandwidthPercent: pulumi.String("60"),
    			QueueDescription: pulumi.String("terraform-example"),
    			QueueName:        pulumi.String(name),
    			QueueType:        pulumi.String("Medium"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = expressconnect.NewTrafficQosRule(ctx, "default", &expressconnect.TrafficQosRuleArgs{
    			RuleDescription: pulumi.String("terraform-example"),
    			Priority:        pulumi.Int(1),
    			Protocol:        pulumi.String("ALL"),
    			SrcPortRange:    pulumi.String("-1/-1"),
    			DstIpv6Cidr:     pulumi.String("2001:db8:1234:5678::/64"),
    			SrcIpv6Cidr:     pulumi.String("2001:db8:1234:5678::/64"),
    			DstPortRange:    pulumi.String("-1/-1"),
    			RemarkingDscp:   pulumi.Int(-1),
    			QueueId:         createQosQueue.QueueId,
    			QosId:           createQos.ID(),
    			MatchDscp:       pulumi.Int(-1),
    			RuleName:        pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
        {
            NameRegex = "preserved-NODELETING",
        });
    
        var createQos = new AliCloud.ExpressConnect.TrafficQos("createQos", new()
        {
            QosName = name,
            QosDescription = "terraform-example",
        });
    
        var associateQos = new AliCloud.ExpressConnect.TrafficQosAssociation("associateQos", new()
        {
            InstanceId = @default.Apply(@default => @default.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Ids[1])),
            QosId = createQos.Id,
            InstanceType = "PHYSICALCONNECTION",
        });
    
        var createQosQueue = new AliCloud.ExpressConnect.TrafficQosQueue("createQosQueue", new()
        {
            QosId = createQos.Id,
            BandwidthPercent = "60",
            QueueDescription = "terraform-example",
            QueueName = name,
            QueueType = "Medium",
        });
    
        var defaultTrafficQosRule = new AliCloud.ExpressConnect.TrafficQosRule("default", new()
        {
            RuleDescription = "terraform-example",
            Priority = 1,
            Protocol = "ALL",
            SrcPortRange = "-1/-1",
            DstIpv6Cidr = "2001:db8:1234:5678::/64",
            SrcIpv6Cidr = "2001:db8:1234:5678::/64",
            DstPortRange = "-1/-1",
            RemarkingDscp = -1,
            QueueId = createQosQueue.QueueId,
            QosId = createQos.Id,
            MatchDscp = -1,
            RuleName = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
    import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
    import com.pulumi.alicloud.expressconnect.TrafficQos;
    import com.pulumi.alicloud.expressconnect.TrafficQosArgs;
    import com.pulumi.alicloud.expressconnect.TrafficQosAssociation;
    import com.pulumi.alicloud.expressconnect.TrafficQosAssociationArgs;
    import com.pulumi.alicloud.expressconnect.TrafficQosQueue;
    import com.pulumi.alicloud.expressconnect.TrafficQosQueueArgs;
    import com.pulumi.alicloud.expressconnect.TrafficQosRule;
    import com.pulumi.alicloud.expressconnect.TrafficQosRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
                .nameRegex("preserved-NODELETING")
                .build());
    
            var createQos = new TrafficQos("createQos", TrafficQosArgs.builder()
                .qosName(name)
                .qosDescription("terraform-example")
                .build());
    
            var associateQos = new TrafficQosAssociation("associateQos", TrafficQosAssociationArgs.builder()
                .instanceId(default_.ids()[1])
                .qosId(createQos.id())
                .instanceType("PHYSICALCONNECTION")
                .build());
    
            var createQosQueue = new TrafficQosQueue("createQosQueue", TrafficQosQueueArgs.builder()
                .qosId(createQos.id())
                .bandwidthPercent("60")
                .queueDescription("terraform-example")
                .queueName(name)
                .queueType("Medium")
                .build());
    
            var defaultTrafficQosRule = new TrafficQosRule("defaultTrafficQosRule", TrafficQosRuleArgs.builder()
                .ruleDescription("terraform-example")
                .priority("1")
                .protocol("ALL")
                .srcPortRange("-1/-1")
                .dstIpv6Cidr("2001:db8:1234:5678::/64")
                .srcIpv6Cidr("2001:db8:1234:5678::/64")
                .dstPortRange("-1/-1")
                .remarkingDscp("-1")
                .queueId(createQosQueue.queueId())
                .qosId(createQos.id())
                .matchDscp("-1")
                .ruleName(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      createQos:
        type: alicloud:expressconnect:TrafficQos
        properties:
          qosName: ${name}
          qosDescription: terraform-example
      associateQos:
        type: alicloud:expressconnect:TrafficQosAssociation
        properties:
          instanceId: ${default.ids[1]}
          qosId: ${createQos.id}
          instanceType: PHYSICALCONNECTION
      createQosQueue:
        type: alicloud:expressconnect:TrafficQosQueue
        properties:
          qosId: ${createQos.id}
          bandwidthPercent: '60'
          queueDescription: terraform-example
          queueName: ${name}
          queueType: Medium
      defaultTrafficQosRule:
        type: alicloud:expressconnect:TrafficQosRule
        name: default
        properties:
          ruleDescription: terraform-example
          priority: '1'
          protocol: ALL
          srcPortRange: -1/-1
          dstIpv6Cidr: 2001:db8:1234:5678::/64
          srcIpv6Cidr: 2001:db8:1234:5678::/64
          dstPortRange: -1/-1
          remarkingDscp: '-1'
          queueId: ${createQosQueue.queueId}
          qosId: ${createQos.id}
          matchDscp: '-1'
          ruleName: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:expressconnect:getPhysicalConnections
          Arguments:
            nameRegex: preserved-NODELETING
    

    Create TrafficQosRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TrafficQosRule(name: string, args: TrafficQosRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TrafficQosRule(resource_name: str,
                       args: TrafficQosRuleArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrafficQosRule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       priority: Optional[int] = None,
                       queue_id: Optional[str] = None,
                       qos_id: Optional[str] = None,
                       protocol: Optional[str] = None,
                       match_dscp: Optional[int] = None,
                       dst_cidr: Optional[str] = None,
                       dst_port_range: Optional[str] = None,
                       dst_ipv6_cidr: Optional[str] = None,
                       remarking_dscp: Optional[int] = None,
                       rule_description: Optional[str] = None,
                       rule_name: Optional[str] = None,
                       src_cidr: Optional[str] = None,
                       src_ipv6_cidr: Optional[str] = None,
                       src_port_range: Optional[str] = None)
    func NewTrafficQosRule(ctx *Context, name string, args TrafficQosRuleArgs, opts ...ResourceOption) (*TrafficQosRule, error)
    public TrafficQosRule(string name, TrafficQosRuleArgs args, CustomResourceOptions? opts = null)
    public TrafficQosRule(String name, TrafficQosRuleArgs args)
    public TrafficQosRule(String name, TrafficQosRuleArgs args, CustomResourceOptions options)
    
    type: alicloud:expressconnect:TrafficQosRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TrafficQosRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TrafficQosRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TrafficQosRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrafficQosRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrafficQosRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var trafficQosRuleResource = new AliCloud.ExpressConnect.TrafficQosRule("trafficQosRuleResource", new()
    {
        Priority = 0,
        QueueId = "string",
        QosId = "string",
        Protocol = "string",
        MatchDscp = 0,
        DstCidr = "string",
        DstPortRange = "string",
        DstIpv6Cidr = "string",
        RemarkingDscp = 0,
        RuleDescription = "string",
        RuleName = "string",
        SrcCidr = "string",
        SrcIpv6Cidr = "string",
        SrcPortRange = "string",
    });
    
    example, err := expressconnect.NewTrafficQosRule(ctx, "trafficQosRuleResource", &expressconnect.TrafficQosRuleArgs{
    	Priority:        pulumi.Int(0),
    	QueueId:         pulumi.String("string"),
    	QosId:           pulumi.String("string"),
    	Protocol:        pulumi.String("string"),
    	MatchDscp:       pulumi.Int(0),
    	DstCidr:         pulumi.String("string"),
    	DstPortRange:    pulumi.String("string"),
    	DstIpv6Cidr:     pulumi.String("string"),
    	RemarkingDscp:   pulumi.Int(0),
    	RuleDescription: pulumi.String("string"),
    	RuleName:        pulumi.String("string"),
    	SrcCidr:         pulumi.String("string"),
    	SrcIpv6Cidr:     pulumi.String("string"),
    	SrcPortRange:    pulumi.String("string"),
    })
    
    var trafficQosRuleResource = new TrafficQosRule("trafficQosRuleResource", TrafficQosRuleArgs.builder()
        .priority(0)
        .queueId("string")
        .qosId("string")
        .protocol("string")
        .matchDscp(0)
        .dstCidr("string")
        .dstPortRange("string")
        .dstIpv6Cidr("string")
        .remarkingDscp(0)
        .ruleDescription("string")
        .ruleName("string")
        .srcCidr("string")
        .srcIpv6Cidr("string")
        .srcPortRange("string")
        .build());
    
    traffic_qos_rule_resource = alicloud.expressconnect.TrafficQosRule("trafficQosRuleResource",
        priority=0,
        queue_id="string",
        qos_id="string",
        protocol="string",
        match_dscp=0,
        dst_cidr="string",
        dst_port_range="string",
        dst_ipv6_cidr="string",
        remarking_dscp=0,
        rule_description="string",
        rule_name="string",
        src_cidr="string",
        src_ipv6_cidr="string",
        src_port_range="string")
    
    const trafficQosRuleResource = new alicloud.expressconnect.TrafficQosRule("trafficQosRuleResource", {
        priority: 0,
        queueId: "string",
        qosId: "string",
        protocol: "string",
        matchDscp: 0,
        dstCidr: "string",
        dstPortRange: "string",
        dstIpv6Cidr: "string",
        remarkingDscp: 0,
        ruleDescription: "string",
        ruleName: "string",
        srcCidr: "string",
        srcIpv6Cidr: "string",
        srcPortRange: "string",
    });
    
    type: alicloud:expressconnect:TrafficQosRule
    properties:
        dstCidr: string
        dstIpv6Cidr: string
        dstPortRange: string
        matchDscp: 0
        priority: 0
        protocol: string
        qosId: string
        queueId: string
        remarkingDscp: 0
        ruleDescription: string
        ruleName: string
        srcCidr: string
        srcIpv6Cidr: string
        srcPortRange: string
    

    TrafficQosRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The TrafficQosRule resource accepts the following input properties:

    Priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    Protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    QosId string
    The QoS policy ID.
    QueueId string
    The QoS queue ID.
    DstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    DstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    DstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    MatchDscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    RemarkingDscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    RuleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    RuleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    SrcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    SrcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    SrcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    Priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    Protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    QosId string
    The QoS policy ID.
    QueueId string
    The QoS queue ID.
    DstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    DstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    DstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    MatchDscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    RemarkingDscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    RuleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    RuleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    SrcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    SrcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    SrcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    priority Integer
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol String
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId String
    The QoS policy ID.
    queueId String
    The QoS queue ID.
    dstCidr String

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr String

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange String
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp Integer
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    remarkingDscp Integer
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription String
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleName String
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr String

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr String

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange String
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    priority number
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId string
    The QoS policy ID.
    queueId string
    The QoS queue ID.
    dstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp number
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    remarkingDscp number
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol str
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qos_id str
    The QoS policy ID.
    queue_id str
    The QoS queue ID.
    dst_cidr str

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dst_ipv6_cidr str

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dst_port_range str
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    match_dscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    remarking_dscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    rule_description str
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    rule_name str
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    src_cidr str

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    src_ipv6_cidr str

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    src_port_range str
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    priority Number
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol String
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId String
    The QoS policy ID.
    queueId String
    The QoS queue ID.
    dstCidr String

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr String

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange String
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp Number
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    remarkingDscp Number
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription String
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleName String
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr String

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr String

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange String
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TrafficQosRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    The ID of the QoS rule.
    Status string
    The status of the QoS rule. Value:
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    The ID of the QoS rule.
    Status string
    The status of the QoS rule. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    The ID of the QoS rule.
    status String
    The status of the QoS rule. Value:
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    The ID of the QoS rule.
    status string
    The status of the QoS rule. Value:
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    The ID of the QoS rule.
    status str
    The status of the QoS rule. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    The ID of the QoS rule.
    status String
    The status of the QoS rule. Value:

    Look up Existing TrafficQosRule Resource

    Get an existing TrafficQosRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TrafficQosRuleState, opts?: CustomResourceOptions): TrafficQosRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dst_cidr: Optional[str] = None,
            dst_ipv6_cidr: Optional[str] = None,
            dst_port_range: Optional[str] = None,
            match_dscp: Optional[int] = None,
            priority: Optional[int] = None,
            protocol: Optional[str] = None,
            qos_id: Optional[str] = None,
            queue_id: Optional[str] = None,
            remarking_dscp: Optional[int] = None,
            rule_description: Optional[str] = None,
            rule_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            src_cidr: Optional[str] = None,
            src_ipv6_cidr: Optional[str] = None,
            src_port_range: Optional[str] = None,
            status: Optional[str] = None) -> TrafficQosRule
    func GetTrafficQosRule(ctx *Context, name string, id IDInput, state *TrafficQosRuleState, opts ...ResourceOption) (*TrafficQosRule, error)
    public static TrafficQosRule Get(string name, Input<string> id, TrafficQosRuleState? state, CustomResourceOptions? opts = null)
    public static TrafficQosRule get(String name, Output<String> id, TrafficQosRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    DstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    DstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    MatchDscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    Priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    Protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    QosId string
    The QoS policy ID.
    QueueId string
    The QoS queue ID.
    RemarkingDscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    RuleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    RuleId string
    The ID of the QoS rule.
    RuleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    SrcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    SrcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    SrcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    Status string
    The status of the QoS rule. Value:
    DstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    DstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    DstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    MatchDscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    Priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    Protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    QosId string
    The QoS policy ID.
    QueueId string
    The QoS queue ID.
    RemarkingDscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    RuleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    RuleId string
    The ID of the QoS rule.
    RuleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    SrcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    SrcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    SrcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    Status string
    The status of the QoS rule. Value:
    dstCidr String

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr String

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange String
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp Integer
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    priority Integer
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol String
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId String
    The QoS policy ID.
    queueId String
    The QoS queue ID.
    remarkingDscp Integer
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription String
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleId String
    The ID of the QoS rule.
    ruleName String
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr String

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr String

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange String
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    status String
    The status of the QoS rule. Value:
    dstCidr string

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr string

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange string
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp number
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    priority number
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol string
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId string
    The QoS policy ID.
    queueId string
    The QoS queue ID.
    remarkingDscp number
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription string
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleId string
    The ID of the QoS rule.
    ruleName string
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr string

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr string

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange string
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    status string
    The status of the QoS rule. Value:
    dst_cidr str

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dst_ipv6_cidr str

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dst_port_range str
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    match_dscp int
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    priority int
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol str
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qos_id str
    The QoS policy ID.
    queue_id str
    The QoS queue ID.
    remarking_dscp int
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    rule_description str
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    rule_id str
    The ID of the QoS rule.
    rule_name str
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    src_cidr str

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    src_ipv6_cidr str

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    src_port_range str
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    status str
    The status of the QoS rule. Value:
    dstCidr String

    The traffic of the QoS rule matches the Destination IPv4 network segment.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    dstIpv6Cidr String

    The QoS rule traffic matches the Destination IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    dstPortRange String
    QoS rule traffic matches the destination port number range. Value range: 0 to 65535. If not, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:

    • ALL:-1/-1, not editable.
    • ICMP(IPv4):-1/-1, non-editable.
    • ICMPv6(IPv6):-1/-1, non-editable.
    • TCP:-1/-1, editable.
    • UDP:-1/-1, editable.
    • GRE:-1/-1, not editable.
    • SSH:22/22, not editable.
    • Telnet:23/23, not editable.
    • HTTP:80/80, non-editable.
    • HTTPS:443/443, which cannot be edited.
    • MS SQL:1443/1443, which cannot be edited.
    • Oracle:1521/1521, non-editable.
    • MySql:3306/3306, non-editable.
    • RDP:3389/3389, non-editable.
    • PostgreSQL:5432/5432, non-editable.
    • Redis:6379/6379, non-editable.
    matchDscp Number
    The DSCP value of the traffic matched by the QoS rule. Value range: 0 to 63. If not, the value is - 1.
    priority Number
    QoS rule priority. Value range: 1 to 9000. The larger the number, the higher the priority. The priority of a QoS rule cannot be repeated in the same QoS policy.
    protocol String
    QoS rule protocol type, value:

    • ALL
    • ICMP(IPv4)
    • *ICMPv6(IPv6) *
    • TCP
    • UDP
    • GRE
    • SSH
    • Telnet
    • HTTP
    • HTTPS
    • MS SQL
    • Oracle
    • MySql
    • RDP
    • PostgreSQL
    • Redis.
    qosId String
    The QoS policy ID.
    queueId String
    The QoS queue ID.
    remarkingDscp Number
    Modify The DSCP value in the flow. Value range: 0 to 63. If the value is not modified, the value is - 1.
    ruleDescription String
    The description of the QoS rule. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
    ruleId String
    The ID of the QoS rule.
    ruleName String
    The name of the QoS rule. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
    srcCidr String

    The QoS rule traffic matches the source IPv4 CIDR block.

    NOTE: If this parameter is not supported, enter SrcIPv6Cidr or **DstIPv6Cidr * *.

    srcIpv6Cidr String

    The QoS rule traffic matches the source IPv6 network segment.

    NOTE: If this parameter is not supported, enter SrcCidr or **DstCidr * *.

    srcPortRange String
    The source port number of the QoS rule traffic matching. The value range is 0 to 65535. If the traffic does not match, the value is - 1. Currently, only a single port number is supported, and the start and end of the port number must be the same.
    status String
    The status of the QoS rule. Value:

    Import

    Express Connect Traffic Qos Rule can be imported using the id, e.g.

    $ pulumi import alicloud:expressconnect/trafficQosRule:TrafficQosRule example <qos_id>:<queue_id>:<rule_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi