This data source provides the Global Accelerator (GA) Forwarding Rules of the current Alibaba Cloud user.
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
}
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
.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.