Zum Inhalt springen
Odinex Cloud
Terraform-ProviderReferenzRessourcen

odinex_server_network

Attaches a server to a private network. The ID is <server_id>-<network_id>. Do not use network blocks on the same odinex_server at the same time.

Diese Referenz wird aus dem Schema des Terraform-Providers erzeugt; die Beschreibungen der Argumente und Attribute sind auf Englisch.

Attaches a server to a private network. The ID is <server_id>-<network_id>. Do not use network blocks on the same odinex_server at the same time.

Beispiel

resource "odinex_server_network" "web" {
  server_id  = odinex_server.web.id
  network_id = odinex_network.private.id
  ip         = "10.0.1.5"
}

Schema

Erforderlich

  • network_id (Number) ID of the network.
  • server_id (Number) ID of the server.

Optional

  • ip (String) IP of the server inside the network; assigned automatically when omitted.

Nur lesbar

  • id (String) Unique ID of the resource.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# <server_id>-<network_id>
terraform import odinex_server_network.web 42-3

Auf dieser Seite