Zum Inhalt springen
Odinex Cloud
Terraform-ProviderReferenzRessourcen

odinex_volume_attachment

Attaches a volume to a server. The ID is the volume ID. Do not set server_id on the odinex_volume 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 volume to a server. The ID is the volume ID. Do not set server_id on the odinex_volume at the same time.

Beispiel

resource "odinex_volume_attachment" "data" {
  volume_id = odinex_volume.data.id
  server_id = odinex_server.web.id
}

Schema

Erforderlich

  • server_id (Number) ID of the server.
  • volume_id (Number) ID of the volume.

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 volume ID.
terraform import odinex_volume_attachment.data 12

Auf dieser Seite