subcategory |
---|
Public Cloud Network |
List public cloud project subnets of a private network.
data "ovh_cloud_project_network_private_subnets" "private" {
service_name = "XXXXXX"
network_id = "XXXXXX"
}
output "private" {
value = data.ovh_cloud_project_network_private_subnets.private
}
The following arguments are supported:
-
service_name
- (Required) The ID of the public cloud project. -
network_id
: (Required) ID of the network
The following attributes are exported:
service_name
- ID of the public cloud projectnetwork_id
- ID of the networksubnets
- List of subnetsid
- ID of the subnetcidr
- CIDR of the subnetdhcp_enabled
- Whether or not if DHCP is enabled for the subnetgateway_ip
- Gateway IP of the subnetip_pools
- List of ip pools allocated in the subnetdhcp
- Whether or not if DHCP is enabledstart
- First IP for this region (eg: 192.168.1.12)end
- Last IP for this region (eg: 192.168.1.24)region
- Region associated to the subnetnetwork
- Global network with cidr (eg: 192.168.1.0/24)