ovh_publiccloud_private_network_subnet

Creates a subnet in a private network of a public cloud project.

Example Usage

resource "ovh_publiccloud_private_network_subnet" "subnet" {
   project_id = "67890"
   network_id = "0234543"
   region     = "GRA1"
   start      = "192.168.168.100"
   end        = "192.168.168.200"
   network    = "192.168.168.0/24"
   dhcp       = true
   no_gateway = false
}

Argument Reference

The following arguments are supported:

  • project_id - (Required) The id of the public cloud project. If omitted, the OVH_PROJECT_ID environment variable is used. Changing this forces a new resource to be created.

  • network_id - (Required) The id of the network. Changing this forces a new resource to be created.

  • dhcp - (Optional) Enable DHCP. Changing this forces a new resource to be created. Defaults to false. _

  • start - (Required) First ip for this region. Changing this value recreates the subnet.

  • end - (Required) Last ip for this region. Changing this value recreates the subnet.

  • network - (Required) Global network in CIDR format. Changing this value recreates the subnet

  • region - The region in which the network subnet will be created. Ex.: "GRA1". Changing this value recreates the resource.

  • no_gateway - Set to true if you don't want to set a default gateway IP. Changing this value recreates the resource. Defaults to false.

Attributes Reference

The following attributes are exported: