freebox_virtual_disk
(Data Source)
Get information about a virtual disk.
Example
data "freebox_virtual_disk" "example" {
path = "/Freebox/VMs/virtual-disk.qcow2"
}
output "disk_type" {
value = data.freebox_virtual_disk.example.type # "qcow2"
}
output "sizes" {
value = {
virtual: data.freebox_virtual_disk.example.virtual_size,
physical: data.freebox_virtual_disk.example.actual_size,
}
}
Schema
Required
path
(String) Path to the virtual disk
Read-Only
actual_size
(Number) Space in bytes used by the virtual image on disk. This is how much filesystem space is consumed on the box.type
(String) Type of virtual diskvirtual_size
(Number) Size in bytes of the virtual disk. This is the size the disk will appear inside the VM.