Skip to content
Odinex Cloud
Terraform providerReferenceResources

odinex_floating_ip_assignment

Assigns a floating IP to a server. The ID is the floating IP ID. Do not set server_id on the odinex_floating_ip at the same time.

Assigns a floating IP to a server. The ID is the floating IP ID. Do not set server_id on the odinex_floating_ip at the same time.

Example Usage

resource "odinex_floating_ip_assignment" "web" {
  floating_ip_id = odinex_floating_ip.web.id
  server_id      = odinex_server.web.id
}

Schema

Required

  • floating_ip_id (Number) ID of the floating IP.
  • server_id (Number) ID of the server.

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:

# The ID is the floating IP ID.
terraform import odinex_floating_ip_assignment.web 8

On this page