» baiducloud_security_group_rules

Use this data source to query Security Group list.

» Example Usage

data "baiducloud_security_group_rules" "default" {}

output "security_group_rules" {
 value = "${data.baiducloud_security_group_rules.default.rules}"

» Argument Reference

The following arguments are supported:

  • security_group_id - (Required) Security Group ID
  • filter - (Optional, ForceNew) only support filter string/int/bool value
  • instance_id - (Optional) Security Group attached instance ID
  • output_file - (Optional, ForceNew) Security Group search result output file
  • vpc_id - (Optional) Security Group attached vpc id

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: