exoscale_security_group (Data Source)
Fetch Exoscale Security Groups.
Security Groups are firewall rules. Each Security Group may be attached to one or many compute instances.
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 ID of the Security Group (required ifnameis not set).name(String) The name of the Security Group (required ifidis not set).timeouts(Block, Optional) (see below for nested schema)
Read-Only
description(String) A free-form text describing the the Security Group.external_sources(Set of String) A list of external network sources, in CIDR notation.
Nested Schema for timeouts
Optional:
read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Last updated on