文档

alicloud_ga_forwarding_rules

更新时间:

This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user.

-> NOTE: Available in v1.120.0+.

Example Usage

Basic Usage

data "alicloud_ga_forwarding_rules" "example" {
  accelerator_id = "example_value"
  listener_id    = "example_value"
  ids            = ["example_value"]
}

output "first_ga_forwarding_rule_id" {
  value = data.alicloud_ga_forwarding_rules.example.forwarding_rules.0.id
}

Argument Reference

The following arguments are supported:

  • accelerator_id - (Required, ForceNew) The ID of the Global Accelerator instance.
  • listener_id - (Required, ForceNew) The ID of the listener.
  • ids - (Optional, ForceNew, Computed) A list of Forwarding Rule IDs.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • status - (Optional, ForceNew) The status of the acceleration region. Valid values: active, configuring.

Argument Reference

The following attributes are exported in addition to the arguments listed above:

  • forwarding_rules - A list of Ga Forwarding Rules. Each element contains the following attributes:
    • priority - Forwarding policy priority.
    • forwarding_rule_id - Forwarding Policy ID.
    • forwarding_rule_name - Forwarding policy name. The length of the name is 2-128 English or Chinese characters.
    • listener_id - The ID of the listener.
    • rule_conditions - Forward action. rule_condition_type - Forwarding condition type. path_config - Path configuration information. values - The length of the path is 1-128 characters. host_config - Domain name configuration information. values - The domain name is 3-128 characters long.
    • rule_actions - The IP protocol used by the GA instance. order - Forwarding priority. rule_action_type - Forward action type. forward_group_config - Forwarding configuration. server_group_tuples - Terminal node group configuration. endpoint_group_id - Terminal node group ID.
    • id - The resource ID in terraform of Forwarding Rule.
    • forwarding_rule_status - Forwarding Policy Status.

  • 本页导读 (0)
文档反馈