exoscale_security_group (Data Source)

Fetch Exoscale Security Groups data.

Corresponding resource: exoscale_security_group.

Example Usage

data "exoscale_security_group" "my_security_group" {
  name = "my-security-group"
}

output "my_security_group_id" {
  value = data.exoscale_security_group.my_security_group.id
}

Please refer to the examples directory for complete configuration examples.

Schema

Optional

  • id (String) The security group ID to match (conflicts with name)
  • name (String) The name to match (conflicts with id)

Read-Only

  • external_sources (Set of String) The list of external network sources, in CIDR notation.