» baiducloud_route_rules

Use this data source to query route rule list.

» Example Usage

data "baiducloud_route_rules" "default" {
 vpc_id = "vpc-y4p102r3mz6m"

output "route_rules" {
 value = "${data.baiducloud_route_rules.default.route_rules}"

» Argument Reference

The following arguments are supported:

  • filter - (Optional, ForceNew) only support filter string/int/bool value
  • output_file - (Optional, ForceNew) Output file for saving result.
  • route_rule_id - (Optional) ID of the routing rule to be retrieved.
  • route_table_id - (Optional) Routing table ID for the routing rules to retrieve.
  • vpc_id - (Optional) VPC ID for the routing rules.

The filter object supports the following:

  • name - (Required) filter variable name
  • values - (Required) filter variable value list

» Attributes Reference

In addition to all arguments above, the following attributes are exported: