alicloud_express_connect_traffic_qos

更新时间:

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

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

-> NOTE: Available since v1.224.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-shanghai"
}


data "alicloud_express_connect_physical_connections" "default" {
  name_regex = "preserved-NODELETING"
}

resource "alicloud_express_connect_traffic_qos" "createQos" {
  qos_name        = var.name
  qos_description = "terraform-example"
}

Argument Reference

The following arguments are supported:

  • qos_description - (Optional) The description of the QoS policy. The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
  • qos_name - (Optional) The name of the QoS policy. The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • status - The status of the QoS policy. Value: -> NOTE: QoS in the configuration state will restrict the creation, update, and deletion of most QoS policies, QoS queues, and QoS rules.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Traffic Qos.
  • delete - (Defaults to 5 mins) Used when delete the Traffic Qos.
  • update - (Defaults to 5 mins) Used when update the Traffic Qos.

Import

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

$ terraform import alicloud_express_connect_traffic_qos.example <id>