» baiducloud_security_groups

Use this data source to query Security Group list.

» Example Usage

data "baiducloud_security_groups" "default" {}

output "security_groups" {
 value = "${data.baiducloud_security_groups.default.security_groups}"

» Argument Reference

The following arguments are supported:

  • 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: