freebox_virtual_disk
(Resource)
Manages a virtual disk image within a Freebox
Example
resource "freebox_virtual_disk" "example" {
path = "/Freebox/VMs/disk.qcow2"
type = "qcow2"
virtual_size = 10 * 1024 * 1024 * 1024 # 10 GB
}
output "task_id" {
value = resource.freebox_virtual_disk.example.size_on_disk
}
Schema
Required
path
(String) Path to the virtual disk on the Freebox
Optional
polling
(Attributes) Polling configuration (see below for nested schema)type
(String) Type of virtual diskvirtual_size
(Number) Size in bytes of virtual disk. This is the size the disk will appear inside the VM.
Read-Only
size_on_disk
(Number) Space in bytes used by virtual image on the hard drive. This is how much filesystem space is consumed on the box.
Nested Schema for polling
Optional:
create
(Attributes) Polling configuration for create operation (see below for nested schema)delete
(Attributes) Polling configuration for delete operation (see below for nested schema)move
(Attributes) Polling configuration for move operation (see below for nested schema)
Nested Schema for polling.create
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Nested Schema for polling.delete
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Nested Schema for polling.move
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Import
# --------------------------------------------- 👇 is the path of the virtual disk
terraform import "freebox_virtual_disk.example" /Freebox/VMs/disk.qcow2