Skip to content
Odinex Cloud
Terraform providerReferenceResources

odinex_network

Manages a private network.

Manages a private network.

Example Usage

resource "odinex_network" "private" {
  name     = "private"
  ip_range = "10.0.0.0/16"
  location = "fra1"
}

Schema

Required

  • ip_range (String) Private IPv4 range in CIDR notation, /16 to /28 (e.g. 10.0.0.0/16). Changing it recreates the network.
  • location (String) Location of the network, e.g. fra1. Changing it recreates the network.
  • name (String) Name of the network.

Optional

  • delete_protection (Boolean) Prevent the resource from being deleted. Defaults to false.
  • labels (Map of String) User-defined labels (key/value pairs). Up to 64 pairs; keys and values up to 63 characters.
  • timeouts (Block, Optional)

Read-Only

  • id (String) Unique ID of the resource.

Nested Schema for timeouts

Optional:

  • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
  • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import odinex_network.private 3

On this page