alicloud_sag_qos_policy

Provides a Sag qos policy resource. You need to create a QoS policy to set priorities, rate limits, and quintuple rules for different messages.

For information about Sag Qos Policy and how to use it, see What is Qos Policy.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
provider "alicloud" {
  region = "cn-shanghai"
}
resource "alicloud_sag_qos" "default" {
  name = var.name
}

resource "alicloud_sag_qos_policy" "default" {
  qos_id            = alicloud_sag_qos.default.id
  name              = var.name
  description       = var.name
  priority          = "1"
  ip_protocol       = "ALL"
  source_cidr       = "192.168.0.0/24"
  source_port_range = "-1/-1"
  dest_cidr         = "10.10.0.0/24"
  dest_port_range   = "-1/-1"
  start_time        = replace(timestamp(), "Z", "+0800")
  end_time          = replace(timeadd(timestamp(), "24h"), "Z", "+0800")
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

The Sag Qos Policy can be imported using the id, e.g.

$ terraform import alicloud_sag_qos_policy.example qos-abc123456:qospy-abc123456