telefonicaopencloud_networking_subnet_v2
Use this data source to get the ID of an available TelefonicaOpenCloud subnet.
Example Usage
data "telefonicaopencloud_networking_subnet_v2" "subnet_1" { name = "subnet_1" }
Argument Reference
-
region
- (Optional) The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve subnet ids. If omitted, theregion
argument of the provider is used. -
name
- (Optional) The name of the subnet. -
dhcp_enabled
- (Optional) If the subnet has DHCP enabled. -
dhcp_disabled
- (Optional) If the subnet has DHCP disabled. -
ip_version
- (Optional) The IP version of the subnet (either 4 or 6). -
gateway_ip
- (Optional) The IP of the subnet's gateway. -
cidr
- (Optional) The CIDR of the subnet. -
subnet_id
- (Optional) The ID of the subnet. -
network_id
- (Optional) The ID of the network the subnet belongs to. -
tenant_id
- (Optional) The owner of the subnet.
Attributes Reference
id
is set to the ID of the found subnet. In addition, the following attributes are exported:
-
allocation_pools
- Allocation pools of the subnet. -
enable_dhcp
- Whether the subnet has DHCP enabled or not. -
dns_nameservers
- DNS Nameservers of the subnet. -
host_routes
- Host Routes of the subnet. -
region
- See Argument Reference above.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/telefonicaopencloud/d/networking_subnet_v2.html