terraform / 0.11.7 / providers / ovh / r / publiccloud_private_network.html /

ovh_publiccloud_private_network

Creates a private network in a public cloud project.

Example Usage

resource "ovh_publiccloud_private_network" "net" {
   project_id = "67890"
   name       = "admin_network"
   regions    = ["GRA1", "BHS1"]
}

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.

  • name - (Required) The name of the network.

  • vlan_id - a vlan id to associate with the network. Changing this value recreates the resource. Defaults to 0.

  • regions - an array of valid OVH public cloud region ID in which the network will be available. Ex.: "GRA1". Defaults to all public cloud regions.

Attributes Reference

The following attributes are exported:

  • project_id - See Argument Reference above.
  • name - See Argument Reference above.
  • vlan_id - See Argument Reference above.
  • regions - See Argument Reference above.
  • regions_status - A map representing the status of the network per region.
  • regions_status/region - The id of the region.
  • regions_status/status - The status of the network in the region.
  • status - the status of the network. should be normally set to 'ACTIVE'.
  • type - the type of the network. Either 'private' or 'public'.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/ovh/r/publiccloud_private_network.html