Terraform providerReferenceResources
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.
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.
Example Usage
resource "odinex_server_network" "web" {
server_id = odinex_server.web.id
network_id = odinex_network.private.id
ip = "10.0.1.5"
}Schema
Required
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.
Read-Only
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