dtcloud_networks (Data Source)
Lists the networks visible to the caller.
The list endpoint reports a flatter shape than the details one: the subnet's CIDR and gateway are
folded onto the network, and IPAM and DHCP are reported as Enabled or Disabled rather than as
booleans. For DNS servers, allocation pools or the IP version, read one network with
dtcloud_network.
Example Usage
data "dtcloud_networks" "virtual" {
network_type = "Virtual"
}
Schema
Optional
name(String) Only return networks whose name matches.network_type(String) Only return networks of this type: Virtual or Physical.
Read-Only
id(String) The ID of this resource.networks(List of Object) The networks that matched. (see below for nested schema)
Nested Schema for networks
Read-Only:
cidr(String)dhcp(String)gateway(String)id(String)ipam(String)name(String)network_type(String)port_security_enabled(Boolean)subnet_id(String)
Behaviour worth knowing
- Both filters are applied by the API, so a filtered list is still a single call.