Zum Inhalt springen
Odinex Cloud
Terraform-ProviderReferenzRessourcen

odinex_elastic_ip_assignment

Assigns an Elastic IP to a server without public IPs. The ID is the Elastic IP ID. Do not set server_id on the odinex_elastic_ip at the same time.

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

Assigns an Elastic IP to a server without public IPs. The ID is the Elastic IP ID. Do not set server_id on the odinex_elastic_ip at the same time.

Beispiel

resource "odinex_elastic_ip_assignment" "app" {
  elastic_ip_id = odinex_elastic_ip.app.id
  server_id     = odinex_server.app.id
}

Schema

Erforderlich

  • elastic_ip_id (Number) ID of the Elastic IP.
  • server_id (Number) ID of the server.

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:

# The ID is the Elastic IP ID.
terraform import odinex_elastic_ip_assignment.app 9

Auf dieser Seite